Class AbstractDiffPagesAction

    • Constructor Detail

      • AbstractDiffPagesAction

        public AbstractDiffPagesAction()
    • Method Detail

      • setPageManager

        public void setPageManager​(PageManager pageManager)
      • isRevertPermitted

        public boolean isRevertPermitted()
        Required when an error occurs.
      • getOriginalPage

        public abstract AbstractPage getOriginalPage()
      • getDiff

        public String getDiff()
      • execute

        public String execute()
                       throws Exception
        Specified by:
        execute in interface com.opensymphony.xwork2.Action
        Overrides:
        execute in class com.opensymphony.xwork2.ActionSupport
        Throws:
        Exception
      • isLatestVersionRequired

        public boolean isLatestVersionRequired()
        Description copied from interface: PageAware
        If the action can only work on the most recent version of a page, this will cause the interceptor to silently replace the version that it looks up with the most recent version, if necessary.
        Specified by:
        isLatestVersionRequired in interface PageAware
        Overrides:
        isLatestVersionRequired in class AbstractPageAwareAction
        Returns:
        true if the action requires the most recent version of a page
      • getPageIdOfVersionAfter

        public long getPageIdOfVersionAfter​(AbstractPage page)
      • getPageIdOfVersionBefore

        public long getPageIdOfVersionBefore​(AbstractPage page)
      • hasPreviousVersion

        public boolean hasPreviousVersion​(AbstractPage page)
      • hasNextVersion

        public boolean hasNextVersion​(AbstractPage page)
      • setHtmlDiffer

        public void setHtmlDiffer​(Differ differ)