Interface RelatedPageRejectionService

    • Method Detail

      • rejectAllRelatedPages

        void rejectAllRelatedPages​(ItemModel itemModel)
        Rejects pages related to the given item.
        Parameters:
        itemModel - the ItemModel that potentially has related pages to be rejected.
      • rejectPage

        AbstractPageModel rejectPage​(AbstractPageModel page)
        Rejects the page by updating the approval status. The CmsApprovalStatus#CHECK status is used to denote the rejection.
        Parameters:
        page - the page to reject.
      • hasUserChangedApprovalStatus

        boolean hasUserChangedApprovalStatus​(AbstractPageModel page)
        Verifies whether the approval status was manually changed or not. For example, if the user changed the approval status from CHECK to APPROVED, the service should never change the approval status back to CHECK.
        Parameters:
        pageModel - the page to verify
        Returns:
        TRUE if approval status was manually changed, FALSE otherwise.