Interface PageRestrictionFacade

All Known Implementing Classes:
DefaultPageRestrictionFacade

public interface PageRestrictionFacade
Facade for managing page-restriction relations.
  • Method Details

    • getRestrictionsByPage

      List<PageRestrictionData> getRestrictionsByPage(String pageId) throws CMSItemNotFoundException
      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 applied
      pageRestrictionsListData - 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.