Class CmsXmlContentUgcApi

  • All Implemented Interfaces:

    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.

        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.

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

        public void initFormForSession​(java.lang.String sessionId,
                                       I_CmsClientCmsUgcSessionCallback onSuccess,
                                       I_CmsErrorCallback onError)
        Loads a pre-created session.

        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