public class DefaultCMSItemDao extends AbstractItemDao implements CMSItemDao
CMSItemModel objects generically.flexibleSearchService, modelService| Constructor and Description |
|---|
DefaultCMSItemDao() |
| Modifier and Type | Method and 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.
|
CMSItemModel |
findByUid(java.lang.String uid,
CatalogVersionModel catalogVersion)
Finds the
CMSItemModel uniquely identified by its uid and catalogVersion |
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelServicepublic CMSItemModel findByUid(java.lang.String uid, CatalogVersionModel catalogVersion)
CMSItemModel uniquely identified by its uid and catalogVersionfindByUid in interface CMSItemDaouid - the CMSItemModel uidcatalogVersion - the CatalogVersionModel to which the item belongs toCMSItemModelpublic SearchResult<CMSItemModel> findByTypeCodeAndName(CatalogVersionModel catalogVersion, java.lang.String typeCode, java.lang.String name)
CMSItemDaofindByTypeCodeAndName in interface CMSItemDaocatalogVersion - 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.Copyright © 2018 SAP SE. All Rights Reserved.