Class CmsUgcActionElement

    • Constructor Detail

      • CmsUgcActionElement

        public CmsUgcActionElement​(javax.servlet.jsp.PageContext pageContext,
                                   javax.servlet.http.HttpServletRequest request,
                                   javax.servlet.http.HttpServletResponse response)
        Creates a new instance.

        pageContext - the JSP page context
        request - the current request
        response - the current response
    • Method Detail

      • createSessionForResource

        public java.lang.String createSessionForResource​(java.lang.String configPath,
                                                         java.lang.String fileName)
                                                  throws CmsUgcException
        Creates a new form session to edit the file with the given name using the given form configuration.
        configPath - the site path of the form configuration
        fileName - the name (not path) of the XML content to edit
        the id of the newly created form session
        CmsUgcException - if something goes wrong