Class DefaultCMSItemDao
- java.lang.Object
-
- de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
-
- de.hybris.platform.cms2.servicelayer.daos.impl.DefaultCMSItemDao
-
- All Implemented Interfaces:
CMSItemDao,Dao
public class DefaultCMSItemDao extends AbstractItemDao implements CMSItemDao
The Interface CMSItemDao for findingCMSItemModelobjects generically.- Spring Bean ID:
- cmsItemDao
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
flexibleSearchService, modelService
-
-
Constructor Summary
Constructors Constructor Description DefaultCMSItemDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchResult<CMSItemModel>findByTypeCodeAndName(CatalogVersionModel catalogVersion, java.lang.String typeCode, java.lang.String name)Find all CMS Items on a given catalog and typeCode matching the provided name.CMSItemModelfindByUid(java.lang.String uid, CatalogVersionModel catalogVersion)Finds theCMSItemModeluniquely identified by its uid and catalogVersion-
Methods inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelService
-
-
-
-
Method Detail
-
findByUid
public CMSItemModel findByUid(java.lang.String uid, CatalogVersionModel catalogVersion)
Finds theCMSItemModeluniquely identified by its uid and catalogVersion- Specified by:
findByUidin interfaceCMSItemDao- Parameters:
uid- theCMSItemModeluidcatalogVersion- theCatalogVersionModelto which the item belongs to- Returns:
- the concrete class instance of
CMSItemModel
-
findByTypeCodeAndName
public SearchResult<CMSItemModel> findByTypeCodeAndName(CatalogVersionModel catalogVersion, java.lang.String typeCode, java.lang.String name)
Description copied from interface:CMSItemDaoFind all CMS Items on a given catalog and typeCode matching the provided name. The name comparison is not case sensitive.- Specified by:
findByTypeCodeAndNamein interfaceCMSItemDao- Parameters:
catalogVersion- the catalogVersion to count the cms items fromtypeCode- the type code we want to count from.name- the name of the cms item, never null.- Returns:
- a list of cms items with the same name for a given catalog version and type code.
-
-