Class EditFormHandler

All Implemented Interfaces:
JcmsConstants, JaliosConstants

public abstract class EditFormHandler extends EditPublicationHandler
This form handler processes Form forms.
Author:
Olivier Dedieu
See Also:
  • Field Details

    • submitRemoteAddr

      public String submitRemoteAddr
  • Constructor Details

    • EditFormHandler

      public EditFormHandler()
  • Method Details

    • processAction

      public boolean processAction() throws 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:
      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
    • internalPerformCreate

      public boolean internalPerformCreate() throws IOException
      Overrides:
      internalPerformCreate in class EditPublicationHandler
      Throws:
      IOException
      Since:
      jcms-4.0
    • getCookieName

      public 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