Interface RelatedPageRejectionService

All Known Implementing Classes:
DefaultRelatedPageRejectionService

public interface RelatedPageRejectionService
Interface that provides methods to reject pages related to the ItemModel.
  • Method Details

    • rejectAllRelatedPages

      @Deprecated(since="2105", forRemoval=true) void rejectAllRelatedPages(ItemModel itemModel)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Rejects pages related to the given item.
      Parameters:
      itemModel - the ItemModel that potentially has related pages to be rejected.
    • rejectAllRelatedPages

      default void rejectAllRelatedPages(ItemModel itemModel, InterceptorContext interceptorContext)
      Rejects pages related to the given item.
      Parameters:
      itemModel - the ItemModel that potentially has related pages to be rejected.
      interceptorContext - the InterceptorContext the interceptor context.
    • rejectPage

      Rejects the page by updating the approval status. The CmsApprovalStatus#CHECK status is used to denote the rejection.
      Parameters:
      page - the page to reject.
      Returns:
      page model with updated approval status.
    • 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:
      page - the page to verify
      Returns:
      TRUE if approval status was manually changed, FALSE otherwise.