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 |
protected static java.lang.String |
ENTRY_QUERY_PARAM |
protected static java.lang.String |
PAGE_QUERY_PARAM |
flexibleSearchService, modelService| Constructor and Description |
|---|
DefaultCMSNavigationDao() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<CMSNavigationEntryModel> |
findNavigationEntriesByPage(AbstractPageModel page)
Finds all
CMSNavigationEntryModel whose item attribute is of type AbstractPageModel
associated with a AbstractPageModel. |
CMSNavigationEntryModel |
findNavigationEntryByUid(java.lang.String uid,
CatalogVersionModel catalogVersion)
Finds a
CMSNavigationEntryModel by uid for a CatalogVersionModel |
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
protected static final java.lang.String PAGE_QUERY_PARAM
protected static final java.lang.String ENTRY_QUERY_PARAM
public 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 versionpublic java.util.List<CMSNavigationEntryModel> findNavigationEntriesByPage(AbstractPageModel page)
CMSNavigationDaoCMSNavigationEntryModel whose item attribute is of type AbstractPageModel
associated with a AbstractPageModel.findNavigationEntriesByPage in interface CMSNavigationDaopage - the pageCMSNavigationEntryModel, or an empty List CMSNavigationEntryModel if
not foundpublic CMSNavigationEntryModel findNavigationEntryByUid(java.lang.String uid, CatalogVersionModel catalogVersion)
CMSNavigationDaoCMSNavigationEntryModel by uid for a CatalogVersionModelfindNavigationEntryByUid in interface CMSNavigationDaouid - the entry uidcatalogVersion - the catalog versionCMSNavigationEntryModelCopyright © 2018 SAP SE. All Rights Reserved.