Class CmsXmlContentUgcApi

  • All Implemented Interfaces:
    org.timepedia.exporter.client.Exportable

    public class CmsXmlContentUgcApi
    extends java.lang.Object
    implements org.timepedia.exporter.client.Exportable
    Root access point for the Javascript form editing API exported with gwt-exporter. Can be used to acquire new form editing sessions.

    • Field Detail

      • SERVICE

        public static final org.opencms.ugc.shared.rpc.I_CmsUgcEditServiceAsync SERVICE
        Service instance.
      • SERVICE_URL

        public static final java.lang.String SERVICE_URL
        The service URL.
    • Constructor Detail

    • Method Detail

      • handleError

        public void handleError​(java.lang.Throwable e,
                                I_CmsErrorCallback callback)
        Passes an exception to the given error handling callback and optionally outputs some debug info.

        Parameters:
        e - the exception
        callback - the error handling callback
      • initFormForSession

        public void initFormForSession​(java.lang.String sessionId,
                                       com.google.gwt.dom.client.Element formElement,
                                       I_CmsClientCmsUgcSessionCallback onSuccess,
                                       I_CmsErrorCallback onError)
        Loads a pre-created session.

        Parameters:
        sessionId - the session id
        formElement - the form element
        onSuccess - the callback to call in case of success
        onError - the callback to call in case of an error