Interface RelatedPageRejectionService
-
- All Known Implementing Classes:
DefaultRelatedPageRejectionService
public interface RelatedPageRejectionServiceInterface that provides methods to reject pages related to theItemModel.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanhasUserChangedApprovalStatus(AbstractPageModel page)Verifies whether the approval status was manually changed or not.voidrejectAllRelatedPages(ItemModel itemModel)Rejects pages related to the given item.AbstractPageModelrejectPage(AbstractPageModel page)Rejects the page by updating the approval status.
-
-
-
Method Detail
-
rejectAllRelatedPages
void rejectAllRelatedPages(ItemModel itemModel)
Rejects pages related to the given item.- Parameters:
itemModel- theItemModelthat potentially has related pages to be rejected.
-
rejectPage
AbstractPageModel rejectPage(AbstractPageModel page)
Rejects the page by updating the approval status. TheCmsApprovalStatus#CHECKstatus 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:
TRUEif approval status was manually changed,FALSEotherwise.
-
-