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 ofCMSNavigationDaointerface.
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringCATALOG_VERSION_QUERY_PARAMprotected static java.lang.StringCATALOG_VERSIONS_QUERY_PARAMprotected static java.lang.StringENTRY_QUERY_PARAMprotected static java.lang.StringPAGE_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 allCMSNavigationEntryModelwhose item attribute is of typeAbstractPageModelassociated with aAbstractPageModel.CMSNavigationEntryModelfindNavigationEntryByUid(java.lang.String uid, CatalogVersionModel catalogVersion)Finds aCMSNavigationEntryModelby uid for aCatalogVersionModeljava.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.CMSNavigationNodeModelfindSuperRootNavigationNode(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:
findNavigationNodesByContentPagein interfaceCMSNavigationDao- Parameters:
page- the pagecatalogVersions- the collection catalog versions- Returns:
- the list of found
CMSNavigationNodeModelobjects 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:
findNavigationNodesByIdin interfaceCMSNavigationDao- Parameters:
id- the id ofCMSNavigationNodeModelobject to findcatalogVersions- the collection of catalog versions- Returns:
- the list of found
CMSNavigationNodeModelobjects or empty list when not found
-
findRootNavigationNodes
public java.util.List<CMSNavigationNodeModel> findRootNavigationNodes(java.util.Collection<CatalogVersionModel> catalogVersions)
Description copied from interface:CMSNavigationDaoFind root navigation nodes by catalog versions.- Specified by:
findRootNavigationNodesin interfaceCMSNavigationDao- Parameters:
catalogVersions- the catalog versions- Returns:
- the list of found
CMSNavigationNodeModelobjects or empty list when not found.
-
findSuperRootNavigationNode
public CMSNavigationNodeModel findSuperRootNavigationNode(CatalogVersionModel catalogVersion)
Description copied from interface:CMSNavigationDaoFinds the super navigation root by catalog version. Note:CMSNavigationNodeModelare 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:
findSuperRootNavigationNodein 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:CMSNavigationDaoFinds allCMSNavigationEntryModelwhose item attribute is of typeAbstractPageModelassociated with aAbstractPageModel.- Specified by:
findNavigationEntriesByPagein interfaceCMSNavigationDao- Parameters:
page- the page- Returns:
- a List of
CMSNavigationEntryModel, or an empty ListCMSNavigationEntryModelif not found
-
findNavigationEntryByUid
public CMSNavigationEntryModel findNavigationEntryByUid(java.lang.String uid, CatalogVersionModel catalogVersion)
Description copied from interface:CMSNavigationDaoFinds aCMSNavigationEntryModelby uid for aCatalogVersionModel- Specified by:
findNavigationEntryByUidin interfaceCMSNavigationDao- Parameters:
uid- the entry uidcatalogVersion- the catalog version- Returns:
- a
CMSNavigationEntryModel
-
-