public class DefaultCMSNavigationDao extends AbstractItemDao implements CMSNavigationDao
CMSNavigationDao interface.| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
CATALOG_VERSION_QUERY_PARAM |
protected static java.lang.String |
CATALOG_VERSIONS_QUERY_PARAM |
flexibleSearchService, modelService| Constructor and Description |
|---|
DefaultCMSNavigationDao() |
| Modifier and Type | Method and Description |
|---|---|
CMSNavigationNodeModel |
findNavigationNodeById(java.lang.String id,
java.util.Collection<CatalogVersionModel> catalogVersions)
Find navigation node by id and catalog versions.
|
java.util.List<CMSNavigationNodeModel> |
findNavigationNodesByContentPage(ContentPageModel page,
java.util.Collection<CatalogVersionModel> catalogVersions)
Find navigation nodes by content page and catalog versions.
|
java.util.List<CMSNavigationNodeModel> |
findNavigationNodesById(java.lang.String id,
java.util.Collection<CatalogVersionModel> catalogVersions)
Find navigation nodes by id and catalog versions.
|
java.util.List<CMSNavigationNodeModel> |
findRootNavigationNodes(java.util.Collection<CatalogVersionModel> catalogVersions)
Find root navigation nodes by catalog versions.
|
CMSNavigationNodeModel |
findSuperRootNavigationNode(CatalogVersionModel catalogVersion)
Finds the super navigation root by catalog version.
|
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelServiceprotected static final java.lang.String CATALOG_VERSIONS_QUERY_PARAM
protected static final java.lang.String CATALOG_VERSION_QUERY_PARAM
public CMSNavigationNodeModel findNavigationNodeById(java.lang.String id, java.util.Collection<CatalogVersionModel> catalogVersions)
findNavigationNodeById in interface CMSNavigationDaoid - the id of CMSNavigationNodeModel object to findcatalogVersions - the collection of catalog versionsCMSNavigationNodeModel object or null when not foundpublic java.util.List<CMSNavigationNodeModel> findNavigationNodesByContentPage(ContentPageModel page, java.util.Collection<CatalogVersionModel> catalogVersions)
findNavigationNodesByContentPage in interface CMSNavigationDaopage - the pagecatalogVersions - the collection catalog versionsCMSNavigationNodeModel objects or empty list when not foundpublic java.util.List<CMSNavigationNodeModel> findNavigationNodesById(java.lang.String id, java.util.Collection<CatalogVersionModel> catalogVersions)
findNavigationNodesById in interface CMSNavigationDaoid - the id of CMSNavigationNodeModel object to findcatalogVersions - the collection of catalog versionsCMSNavigationNodeModel objects or empty list when not foundpublic java.util.List<CMSNavigationNodeModel> findRootNavigationNodes(java.util.Collection<CatalogVersionModel> catalogVersions)
CMSNavigationDaofindRootNavigationNodes in interface CMSNavigationDaocatalogVersions - the catalog versionsCMSNavigationNodeModel objects or empty list when not found.public CMSNavigationNodeModel findSuperRootNavigationNode(CatalogVersionModel catalogVersion)
CMSNavigationDaoCMSNavigationNodeModel are hierarchical structure where the super root is on its top.
Beside that the super root is only used as a placeholder for root navigation nodes.findSuperRootNavigationNode in interface CMSNavigationDaocatalogVersion - the catalog versionCopyright © 2018 SAP SE. All Rights Reserved.