Class VersionHandler

All Implemented Interfaces:
JcmsConstants, JaliosConstants

public class VersionHandler extends JcmsFormHandler
  • Constructor Details

    • VersionHandler

      public VersionHandler()
  • Method Details

    • init

      protected void init()
      Description copied from class: JcmsFormHandler
      Method to implement if you need to initialize your handler from parameter received, prior to all security validation.

      You must absolutely not perform any action which modify data or site configuration.

      Therefore it is strongly recommend NOT TO implement this method, or use very wisely.

      Overrides:
      init in class JcmsFormHandler
    • 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
    • canShowVersion

      public static boolean canShowVersion(Member mbr, Publication pub)
      Check if the specified member can show version history for the specified publication.
      Parameters:
      mbr - the member for which verification is performed (null accepted)
      pub - the publication for which a version history would be displayed (null accepted)
      Returns:
      true if the given member can access version history for the specified publication
      Since:
      10.0.8 / JCMS-10746
    • getWFNote

      public WFNote getWFNote(Publication oldPub)
    • showVersion

      public boolean showVersion()
    • showDiff

      public boolean showDiff()
    • getLastPub

      public Publication getLastPub()
    • getVersionList

      public List<Publication> getVersionList()
    • getReverseVersionList

      public List<Publication> getReverseVersionList()
    • getSelectedVersion

      public Publication getSelectedVersion()
    • getSelectedVersionIndex

      public int getSelectedVersionIndex()
    • isSelectedVersion

      public boolean isSelectedVersion(int vid)
    • getOldVersion

      public Publication getOldVersion()
    • getNewVersion

      public Publication getNewVersion()
    • isDeletedPub

      public boolean isDeletedPub()
    • getOpenTab

      public int getOpenTab()
    • setId

      public void setId(String id)
    • setOpRevert

      public void setOpRevert(String v)
    • setOpDelete

      public void setOpDelete(String v)
    • setVid

      public void setVid(String v)
    • setVids

      public void setVids(String[] v)