Interface PageVariationResolver<T extends AbstractPageModel>
- Type Parameters:
T- the type parameter which extends theAbstractPageModeltype
- 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 Summary
Modifier and TypeMethodDescriptionfindDefaultPages(T pageModel) Find default page for a given page.findDisplayConditions(String typeCode) Finds all display conditions available for a given page type.findPagesByType(String typeCode, boolean isDefaultPage) Find all default or variation pages for a given page type.findVariationPages(T pageModel) Find variation pages for a given page.booleanisDefaultPage(T pageModel) Determines if a given page is a default page or a variation page.
-
Method Details
-
findPagesByType
Find all default or variation pages for a given page type.- Parameters:
typeCode- the page typeisDefaultPage- true to retrieve default pages; false to retrieve variation pages- Returns:
- all default or variation pages
-
findDefaultPages
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
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
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
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
-