Class ValidateStateChangePublicationHandler

All Implemented Interfaces:
JcmsConstants, JaliosConstants

public class ValidateStateChangePublicationHandler extends EditPublicationHandler
  • Constructor Details

    • ValidateStateChangePublicationHandler

      public ValidateStateChangePublicationHandler()
  • 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
    • setInternalClass

      public void setInternalClass(Class<? extends Publication> internalClass)
    • getInternalClass

      public Class<? extends Publication> getInternalClass()
    • getPublicationClass

      public Class<? extends Publication> getPublicationClass()
      Overrides:
      getPublicationClass in class EditPublicationHandler
    • getControllerContext

      protected HashMap<String,Object> getControllerContext()
      Description copied from class: JcmsFormHandler
      Build a controller context. I.E. add request, response and loggedMember.
      Overrides:
      getControllerContext in class EditPublicationHandler
      Returns:
      the HashMap which contains the context
    • showWFRole

      public boolean showWFRole()
      Overrides:
      showWFRole in class EditPublicationHandler
    • showModalEditionChange

      public boolean showModalEditionChange()
      Description copied from class: EditPublicationHandler
      Check if the "Advanced edition" or "Simple edition" button should be displayed in modal footer.

      The default implementation of this method is to check for request attribute EditPublicationHandler.SHOW_MODAL_EDITION_CHANGE. If the attribute is not set, the button is displayed only when editing an existing publication (i.e. EditPublicationHandler.getPublication() is not null), and hidden when creating a new one.

      You can set the attribute to a custom value or provide a custom FormHandler to override this behavior.

      See jcore/modalPubFormHandler.jspf for use of this method.

      Overrides:
      showModalEditionChange in class EditPublicationHandler
      Returns:
      true to display the button, false to hide it