Interface PageAware

    • Method Detail

      • getPage

        AbstractPage getPage()
        Returns:
        page the page that the action worked on
      • setPage

        void setPage​(AbstractPage page)
        IOC method for setting the page on the action. This is called from the interceptor
        Parameters:
        page - the page that the action will be working on.
      • isPageRequired

        boolean isPageRequired()
        If the action requires that the page be set before being run, then it should return true to this method. If the action requires a page, but no page is available, then the interceptor will automatically redirect to the 'pagenotfound' result
        Returns:
        true if the action requires a page in order to execute
      • isLatestVersionRequired

        boolean isLatestVersionRequired()
        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.
        Returns:
        true if the action requires the most recent version of a page
      • isViewPermissionRequired

        boolean isViewPermissionRequired()
        Returns:
        true if the action requires a check on the view page level permissions on this page
      • isEditPermissionRequired

        default boolean isEditPermissionRequired()
        Since:
        6.2.0