Class EditFormHandler

    • Field Detail

      • submitRemoteAddr

        public java.lang.String submitRemoteAddr
    • Constructor Detail

      • EditFormHandler

        public EditFormHandler()
    • Method Detail

      • processAction

        public boolean processAction()
                              throws java.io.IOException
        Description copied from class: JcmsFormHandler
        Method to be implemented to check/validate action to be performed and process them.

        Default implementation is to return false. No need to call super method.

        This method may NOT be invoked at all if security validation are not met.

        You must ensure your handler and JSP can work properly without any code invoked in this method.

        Overrides:
        processAction in class EditPublicationHandler
        Returns:
        false if no redirection is needed, true otherwise
        Throws:
        java.io.IOException - IO Exception
      • setFields

        public void setFields​(Publication pub)
        Description copied from class: EditPublicationHandler
        Set the common (Publication) fields. This method is also a hook for sub-classed to fill some field (or do anything else) before a create or an update.
        Overrides:
        setFields in class EditPublicationHandler
        Parameters:
        pub - the publication to set the fields
        Since:
        jcms-4.0
      • setRequest

        public void setRequest​(javax.servlet.http.HttpServletRequest request)
        Description copied from class: JcmsContext
        Setter for the request. Will initialize all the variable of the JcmsContext if available in the request. (Therefore, it must be called after all the treatements done in doInitPage)
        Overrides:
        setRequest in class JcmsContext
        Parameters:
        request - the HttpServletRequest from twhich to retrieve all jcms context information.
        Since:
        jcms-4.0
      • getCookieName

        public java.lang.String getCookieName()
        Returns:
        the cookieName for this class (Form type)
        Since:
        jcms-4.0
      • isOneSubmit

        public boolean isOneSubmit()
        Returns:
        true if only one submission is authorized (Form type)
        Since:
        jcms-4.0
      • isNotifySubmit

        public boolean isNotifySubmit()
        Returns:
        true if a notification is sent (Form type)
        Since:
        jcms-4.0
      • isSubmitted

        public boolean isSubmitted()
        Returns:
        true if the user has already submit this form (Form type)
        Since:
        jcms-4.0
      • isForm

        public boolean isForm()
        Overrides:
        isForm in class EditPublicationHandler
        Returns:
        true if this handler is dedicated to Form sub-class processing. Overrided by EditFormHandler.
        Since:
        jcms-4.0