public interface UniqueItemIdentifierService
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<ItemData> |
getItemData(ItemModel itemModel)
Method to get the unique identifier and other information (not the PK) about an Item Model.
|
java.util.Optional<ItemModel> |
getItemModel(ItemData itemData)
|
<T> java.util.Optional<T> |
getItemModel(java.lang.String key,
java.lang.Class<T> classType)
Method to get the model item by the given key
UniqueItemIdentifierService. |
java.util.Optional<ItemData> getItemData(ItemModel itemModel)
CMSItemModel.getUid() and name, but for other Items,
this could be different.itemModel - the item model used to get the unique identifier.java.util.Optional<ItemModel> getItemModel(ItemData itemData)
itemData - the container of item unique identifier and its type<T> java.util.Optional<T> getItemModel(java.lang.String key,
java.lang.Class<T> classType)
throws UnknownIdentifierException
UniqueItemIdentifierService.key - the key of the item modelclassType - the class of the item modelUnknownIdentifierException - if the model doesn't existCopyright © 2018 SAP SE. All Rights Reserved.