Class FormPublishHelper

    • Constructor Detail

      • FormPublishHelper

        public FormPublishHelper()
    • Method Detail

      • persistForm

        public static FormVersion persistForm​(javax.servlet.http.HttpServletRequest req,
                                              javax.servlet.http.HttpServletResponse resp,
                                              Projekt project)
                                       throws Exception
        Processes a form publish request, i.e. saves the persist JSON.
        Parameters:
        req - Currently active HTTP request.
        resp - Currently active HTTP response.
        project - Project with a form version to update.
        Returns:
        The new form version that was created or updated.
        Throws:
        Exception - When the data could not be persisted due to any reason, such as missing permissions or database errors.