Class DefaultCMSNavigationDao
- java.lang.Object
-
- de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
-
- de.hybris.platform.cms2.servicelayer.daos.impl.DefaultCMSNavigationDao
-
- All Implemented Interfaces:
CMSNavigationDao
,Dao
public class DefaultCMSNavigationDao extends AbstractItemDao implements CMSNavigationDao
Default implementation ofCMSNavigationDao
interface.
-
-
Field Summary
Fields Modifier and Type Field 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
-
Fields inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
flexibleSearchService, modelService
-
-
Constructor Summary
Constructors Constructor Description DefaultCMSNavigationDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<CMSNavigationEntryModel>
findNavigationEntriesByPage(AbstractPageModel page)
Finds allCMSNavigationEntryModel
whose item attribute is of typeAbstractPageModel
associated with aAbstractPageModel
.CMSNavigationEntryModel
findNavigationEntryByUid(java.lang.String uid, CatalogVersionModel catalogVersion)
Finds aCMSNavigationEntryModel
by uid for aCatalogVersionModel
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.-
Methods inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelService
-
-
-
-
Field Detail
-
CATALOG_VERSIONS_QUERY_PARAM
protected static final java.lang.String CATALOG_VERSIONS_QUERY_PARAM
- See Also:
- Constant Field Values
-
CATALOG_VERSION_QUERY_PARAM
protected static final java.lang.String CATALOG_VERSION_QUERY_PARAM
- See Also:
- Constant Field Values
-
PAGE_QUERY_PARAM
protected static final java.lang.String PAGE_QUERY_PARAM
- See Also:
- Constant Field Values
-
ENTRY_QUERY_PARAM
protected static final java.lang.String ENTRY_QUERY_PARAM
- See Also:
- Constant Field Values
-
-
Method Detail
-
findNavigationNodesByContentPage
public java.util.List<CMSNavigationNodeModel> findNavigationNodesByContentPage(ContentPageModel page, java.util.Collection<CatalogVersionModel> catalogVersions)
Find navigation nodes by content page and catalog versions.- Specified by:
findNavigationNodesByContentPage
in interfaceCMSNavigationDao
- Parameters:
page
- the pagecatalogVersions
- the collection catalog versions- Returns:
- the list of found
CMSNavigationNodeModel
objects or empty list when not found
-
findNavigationNodesById
public java.util.List<CMSNavigationNodeModel> findNavigationNodesById(java.lang.String id, java.util.Collection<CatalogVersionModel> catalogVersions)
Find navigation nodes by id and catalog versions.- Specified by:
findNavigationNodesById
in interfaceCMSNavigationDao
- Parameters:
id
- the id ofCMSNavigationNodeModel
object to findcatalogVersions
- the collection of catalog versions- Returns:
- the list of found
CMSNavigationNodeModel
objects or empty list when not found
-
findRootNavigationNodes
public java.util.List<CMSNavigationNodeModel> findRootNavigationNodes(java.util.Collection<CatalogVersionModel> catalogVersions)
Description copied from interface:CMSNavigationDao
Find root navigation nodes by catalog versions.- Specified by:
findRootNavigationNodes
in interfaceCMSNavigationDao
- Parameters:
catalogVersions
- the catalog versions- Returns:
- the list of found
CMSNavigationNodeModel
objects or empty list when not found.
-
findSuperRootNavigationNode
public CMSNavigationNodeModel findSuperRootNavigationNode(CatalogVersionModel catalogVersion)
Description copied from interface:CMSNavigationDao
Finds the super navigation root by catalog version. Note:CMSNavigationNodeModel
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.- Specified by:
findSuperRootNavigationNode
in interfaceCMSNavigationDao
- Parameters:
catalogVersion
- the catalog version- Returns:
- the super root for given catalog version, or null if not exist
-
findNavigationEntriesByPage
public java.util.List<CMSNavigationEntryModel> findNavigationEntriesByPage(AbstractPageModel page)
Description copied from interface:CMSNavigationDao
Finds allCMSNavigationEntryModel
whose item attribute is of typeAbstractPageModel
associated with aAbstractPageModel
.- Specified by:
findNavigationEntriesByPage
in interfaceCMSNavigationDao
- Parameters:
page
- the page- Returns:
- a List of
CMSNavigationEntryModel
, or an empty ListCMSNavigationEntryModel
if not found
-
findNavigationEntryByUid
public CMSNavigationEntryModel findNavigationEntryByUid(java.lang.String uid, CatalogVersionModel catalogVersion)
Description copied from interface:CMSNavigationDao
Finds aCMSNavigationEntryModel
by uid for aCatalogVersionModel
- Specified by:
findNavigationEntryByUid
in interfaceCMSNavigationDao
- Parameters:
uid
- the entry uidcatalogVersion
- the catalog version- Returns:
- a
CMSNavigationEntryModel
-
-