Interface PageVariationResolver<T extends AbstractPageModel>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.List<T> findDefaultPages​(T pageModel)
      Find default page for a given page.
      java.util.List<OptionData> findDisplayConditions​(java.lang.String typeCode)
      Finds all display conditions available for a given page type.
      java.util.List<T> findPagesByType​(java.lang.String typeCode, boolean isDefaultPage)
      Find all default or variation pages for a given page type.
      java.util.List<T> findVariationPages​(T pageModel)
      Find variation pages for a given page.
      boolean isDefaultPage​(T pageModel)
      Determines if a given page is a default page or a variation page.
    • Method Detail

      • findPagesByType

        java.util.List<T> findPagesByType​(java.lang.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

        java.util.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

        java.util.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

        java.util.List<OptionData> findDisplayConditions​(java.lang.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