Interface RelatedItemsOnPageService
- All Known Implementing Classes:
DefaultRelatedItemsOnPageService
public interface RelatedItemsOnPageService
An interface for retrieving cms items related to a page.
-
Method Summary
Modifier and TypeMethodDescriptiondefault Set<CMSItemModel>getChildComponentsAndRelatedRestrictions(Set<AbstractCMSComponentModel> cmsComponentModels, CatalogVersionModel catalogVersionModel) Returns a list of child components, restrictions of cmsComponentModels and them child componentsCMSItemModelgetRelatedItems(AbstractPageModel pageModel) Returns a list of all relatedCMSItemModelitems on a page.
-
Method Details
-
getRelatedItems
Returns a list of all relatedCMSItemModelitems on a page.- Parameters:
pageModel- theAbstractPageModelthat is used to retrieve relatedCMSItemModel.- Returns:
- the set of
CMSItemModel
-
getChildComponentsAndRelatedRestrictions
default Set<CMSItemModel> getChildComponentsAndRelatedRestrictions(Set<AbstractCMSComponentModel> cmsComponentModels, CatalogVersionModel catalogVersionModel) Returns a list of child components, restrictions of cmsComponentModels and them child componentsCMSItemModel- Parameters:
cmsComponentModels- theAbstractCMSComponentModelthat is used to retrievecatalogVersionModel- theCatalogVersionModelthat is used to retrieve- Returns:
- the set of
CMSItemModel
-