Class AddArticleHandler

  • All Implemented Interfaces:
    JcmsConstants, JaliosConstants

    public class AddArticleHandler
    extends EditPublicationHandler
    Add article handler for the topbar publish modal.

    It redirects to the generated edit article display.

    Since:
    jcms-9.0.2
    Version:
    $Revision: 107554 $
    Author:
    Sylvain Devaux
    • Field Detail

      • opAdd

        protected boolean opAdd
    • Constructor Detail

      • AddArticleHandler

        public AddArticleHandler()
    • 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
      • validateAdd

        public boolean validateAdd()
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • performAdd

        public boolean performAdd()
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • setOpAdd

        public void setOpAdd​(boolean v)