Class PublicationActionHandler

All Implemented Interfaces:
JcmsConstants, JaliosConstants

public class PublicationActionHandler extends JcmsJsonActionHandler
Action handler for most common actions on a publication (Vote, follow ...)
Since:
jcms-11.0.0
  • Constructor Details

    • PublicationActionHandler

      public PublicationActionHandler()
  • 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 JcmsFormHandler
      Returns:
      false if no redirection is needed, true otherwise
      Throws:
      IOException - IO Exception
    • getAvailableActionPublication

      public Publication getAvailableActionPublication()
    • setActionPublication

      public void setActionPublication(String actionPublication)
    • isOpVote

      public boolean isOpVote()
    • setOpVote

      public void setOpVote(boolean opVote)
    • isOpFollow

      public boolean isOpFollow()
    • setOpFollow

      public void setOpFollow(boolean opFollow)