Interface PageRestrictionFacade
- All Known Implementing Classes:
DefaultPageRestrictionFacade
public interface PageRestrictionFacade
Facade for managing page-restriction relations.
-
Method Summary
Modifier and TypeMethodDescriptionGet a list of restrictions for all pages.getRestrictionsByPage(String pageId) Get a list of restrictions for a given page.voidupdateRestrictionRelationsByPage(String pageId, List<PageRestrictionData> pageRestrictionsListData) Updates the list of restrictions associated with the pageId based according to the provided pageRestrictionsListData
-
Method Details
-
getRestrictionsByPage
Get a list of restrictions for a given page.- Parameters:
pageId- the id of the page to which the restrictions are applied- Returns:
- list of page id - restriction id pairs; never null
- Throws:
CMSItemNotFoundException- when the page cannot be found
-
updateRestrictionRelationsByPage
void updateRestrictionRelationsByPage(String pageId, List<PageRestrictionData> pageRestrictionsListData) throws CMSItemNotFoundException Updates the list of restrictions associated with the pageId based according to the provided pageRestrictionsListData- Parameters:
pageId- the id of the page to which the restrictions are appliedpageRestrictionsListData- the list of page-restriction relation- Throws:
CMSItemNotFoundException- when cannot find a page based on the provided pageId
-
getAllPagesRestrictions
List<PageRestrictionData> getAllPagesRestrictions()Get a list of restrictions for all pages.- Returns:
- a list of restrictions for all pages.
-