Interface PageVariationResolver<T extends AbstractPageModel>

Type Parameters:
T - the type parameter which extends the AbstractPageModel type
All Known Implementing Classes:
ContentPageVariationResolver, DefaultPageVariationResolver, EmailPageVariationResolver

public interface PageVariationResolver<T extends AbstractPageModel>
Provide methods for retrieving default and variation page information for a given page type and/or for a given CMS page model.
  • Method Details

    • findPagesByType

      List<T> findPagesByType(String typeCode, boolean isDefaultPage)
      Find all default or variation pages for a given page type.
      Parameters:
      typeCode - the page type
      isDefaultPage - true to retrieve default pages; false to retrieve variation pages
      Returns:
      all default or variation pages
    • findDefaultPages

      List<T> findDefaultPages(T pageModel)
      Find default page for a given page.
      Parameters:
      pageModel - the page
      Returns:
      default page (the collection should contain at most one item);
      empty if the given page is a default page;
      never null
    • findVariationPages

      List<T> findVariationPages(T pageModel)
      Find variation pages for a given page.
      Parameters:
      pageModel - the page
      Returns:
      variation pages associated to the given page;
      empty if the given page is a variation page;
      never null
    • isDefaultPage

      boolean isDefaultPage(T pageModel)
      Determines if a given page is a default page or a variation page.
      Parameters:
      pageModel - the page
      Returns:
      true if the given page is a default page; false otherwise
    • findDisplayConditions

      List<OptionData> findDisplayConditions(String typeCode)
      Finds all display conditions available for a given page type. It is used to determine if a fallback and/or variation page can be created.
      Parameters:
      typeCode - the page type
      Returns:
      all display conditions