public interface CMSAdminItemService
CMSItemModel.| Modifier and Type | Method and Description |
|---|---|
<T extends CMSItemModel> |
createItem(java.lang.Class<T> modelClass)
Will create a new instance of the given modelClass and set up what is necessary for the save
|
java.util.Optional<CMSItemModel> |
findByItemData(CMSItemData itemData)
Finds the
CMSItemModel uniquely identified by its uid and the catalogVersion defined by the
CMSItemData |
SearchResult<CMSItemModel> |
findByTypeCodeAndName(CatalogVersionModel catalogVersion,
java.lang.String typeCode,
java.lang.String name)
Count the number of CMS Items on a given catalog, typeCode and name.
|
CMSItemModel |
findByUid(java.lang.String uid)
Finds the
CMSItemModel uniquely identified by its uid and the catalogVersion currently in session |
CMSItemModel |
findByUid(java.lang.String uid,
CatalogVersionModel catalogVersion)
Finds the
CMSItemModel uniquely identified by its uid and catalogVersion |
CMSItemModel findByUid(java.lang.String uid, CatalogVersionModel catalogVersion) throws CMSItemNotFoundException
CMSItemModel uniquely identified by its uid and catalogVersionuid - the CMSItemModel uidcatalogVersion - the CatalogVersionModel to which the item belongs toCMSItemModelCMSItemNotFoundException - when the cms item is not foundCMSItemModel findByUid(java.lang.String uid) throws CMSItemNotFoundException
CMSItemModel uniquely identified by its uid and the catalogVersion currently in sessionuid - the CMSItemModel uidCMSItemModelCMSItemNotFoundException - when the cms item is not foundjava.util.Optional<CMSItemModel> findByItemData(CMSItemData itemData)
CMSItemModel uniquely identified by its uid and the catalogVersion defined by the
CMSItemDataitemData - the CMSItemData containing the uid and catalogVersionOptional containing the concrete class instance of CMSItemModel, otherwise
Optional#empty()<T extends CMSItemModel> T createItem(java.lang.Class<T> modelClass)
modelClass - a class (extending ItemModel) to instantiateSearchResult<CMSItemModel> findByTypeCodeAndName(CatalogVersionModel catalogVersion, java.lang.String typeCode, java.lang.String name)
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.Copyright © 2018 SAP SE. All Rights Reserved.