Interface RelatedPageRejectionService
- All Known Implementing Classes:
DefaultRelatedPageRejectionService
public interface RelatedPageRejectionService
Interface that provides methods to reject pages related to the
ItemModel.-
Method Summary
Modifier and TypeMethodDescriptionbooleanVerifies whether the approval status was manually changed or not.voidrejectAllRelatedPages(ItemModel itemModel) Deprecated, for removal: This API element is subject to removal in a future version.default voidrejectAllRelatedPages(ItemModel itemModel, InterceptorContext interceptorContext) Rejects pages related to the given item.rejectPage(AbstractPageModel page) Rejects the page by updating the approval status.
-
Method Details
-
rejectAllRelatedPages
Deprecated, for removal: This API element is subject to removal in a future version.since 2105, please userejectAllRelatedPages(ItemModel, InterceptorContext)instead.Rejects pages related to the given item.- Parameters:
itemModel- theItemModelthat potentially has related pages to be rejected.
-
rejectAllRelatedPages
Rejects pages related to the given item.- Parameters:
itemModel- theItemModelthat potentially has related pages to be rejected.interceptorContext- theInterceptorContextthe interceptor context.
-
rejectPage
Rejects the page by updating the approval status. TheCmsApprovalStatus#CHECKstatus is used to denote the rejection.- Parameters:
page- the page to reject.- Returns:
- page model with updated approval status.
-
hasUserChangedApprovalStatus
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:
TRUEif approval status was manually changed,FALSEotherwise.
-
rejectAllRelatedPages(ItemModel, InterceptorContext)instead.