public interface CatalogLevelService
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<ContentCatalogModel> |
getAllSubCatalogs(ContentCatalogModel catalog)
Finds all child catalogs associated to the given content catalog
|
java.util.Collection<ContentCatalogModel> |
getAllSuperCatalogs(ContentCatalogModel catalog,
CMSSiteModel cmsSiteModel)
Find all super catalogs associated to the given content catalog.
|
int |
getCatalogLevel(ContentCatalogModel catalog)
Determines the level of the given content catalog in the catalog hierarchy
|
java.util.List<CatalogVersionModel> |
getLevelCatalogVersions(AbstractPageModel page,
java.util.List<ContentCatalogModel> catalogs)
Finds all catalog versions hierarchy related to a given page for a given list of catalogs.
|
java.util.List<ContentSlotModel> |
getSortedMultiCountryContentSlots(java.util.List<ContentSlotModel> contentSlots)
Orders the given content slots according to the catalog level where the slots are defined.
|
boolean |
isBottomLevel(ContentCatalogModel catalog)
Determines if the given content catalog is a leaf level catalog
|
boolean |
isIntermediateLevel(ContentCatalogModel catalog)
Determines if the given content catalog is an intermediate level catalog, such that it has a parent and at least
one child catalog associations
|
boolean |
isTopLevel(ContentCatalogModel catalog)
Determines if the given content catalog is a root level catalog
|
java.util.List<CatalogVersionModel> getLevelCatalogVersions(AbstractPageModel page, java.util.List<ContentCatalogModel> catalogs)
page - - the page to find the catalog versions hierarchycatalogs - - list of content catalogs in the catalog hierarchyjava.util.List<ContentSlotModel> getSortedMultiCountryContentSlots(java.util.List<ContentSlotModel> contentSlots)
CMSItemCatalogLevelComparator to determine the ordering.contentSlots - - the content slots to be sortedint getCatalogLevel(ContentCatalogModel catalog)
catalog - - the content catalog to be evaluatedboolean isIntermediateLevel(ContentCatalogModel catalog)
catalog - - the content catalog to be evaluatedboolean isBottomLevel(ContentCatalogModel catalog)
catalog - - the content catalog to be evaluatedboolean isTopLevel(ContentCatalogModel catalog)
catalog - - the content catalog to be evaluatedjava.util.Collection<ContentCatalogModel> getAllSubCatalogs(ContentCatalogModel catalog)
catalog - - the content catalogjava.util.Collection<ContentCatalogModel> getAllSuperCatalogs(ContentCatalogModel catalog, CMSSiteModel cmsSiteModel)
catalog - - the content catalog to be evaluatedcmsSiteModel - - the site modelCopyright © 2018 SAP SE. All Rights Reserved.