public class DefaultCmsItemModelUniqueIdentifierConverter extends java.lang.Object implements UniqueIdentifierConverter<CMSItemModel>
CMSItemModel| Constructor and Description |
|---|
DefaultCmsItemModelUniqueIdentifierConverter() |
| Modifier and Type | Method and Description |
|---|---|
ItemData |
convert(CMSItemModel cmsItemModel)
Convert an ItemModel object to the corresponding
ItemData instance. |
CMSItemModel |
convert(ItemData itemData)
|
protected CMSItemModel |
findItemByComposedKey(EncodedItemComposedKey itemComposedKey,
CatalogVersionModel catalogVersion) |
protected CMSItemModel |
findItemById(ItemData itemData) |
protected CatalogVersionService |
getCatalogVersionService() |
protected CMSAdminItemService |
getCmsAdminItemService() |
protected <any> |
getEncodedItemComposedKeyObjectFactory() |
protected <any> |
getItemDataDataFactory() |
java.lang.String |
getItemType()
Returns the item type
ItemModel#getItemType where the converter should be applied to. |
protected java.lang.String |
getUniqueIdentifier(CMSItemModel cmsItemModel)
Returns the unique identifier using the encoded compose key class.
|
void |
setCatalogVersionService(CatalogVersionService catalogVersionService) |
void |
setCmsAdminItemService(CMSAdminItemService cmsAdminItemService) |
void |
setEncodedItemComposedKeyObjectFactory(<any> encodedItemComposedKeyObjectFactory) |
void |
setItemDataDataFactory(<any> itemDataDataFactory) |
public DefaultCmsItemModelUniqueIdentifierConverter()
public java.lang.String getItemType()
UniqueIdentifierConverterItemModel#getItemType where the converter should be applied to.getItemType in interface UniqueIdentifierConverter<CMSItemModel>public ItemData convert(CMSItemModel cmsItemModel)
UniqueIdentifierConverterItemData instance.convert in interface UniqueIdentifierConverter<CMSItemModel>cmsItemModel - - the item model entity that will be converted.ItemData class that corresponds to the given ItemModel
UniqueIdentifierConverter.getItemType().UniqueIdentifierConverter#getItemType()}.public CMSItemModel convert(ItemData itemData)
UniqueIdentifierConverterconvert in interface UniqueIdentifierConverter<CMSItemModel>itemData - - the item data instance that will be used in the conversion.ItemModel entity that corresponds to the given ItemData
UniqueIdentifierConverter.getItemType().UniqueIdentifierConverter#getItemType()}.protected CMSItemModel findItemByComposedKey(EncodedItemComposedKey itemComposedKey, CatalogVersionModel catalogVersion)
protected CMSItemModel findItemById(ItemData itemData)
protected java.lang.String getUniqueIdentifier(CMSItemModel cmsItemModel)
EncodedItemComposedKey.cmsItemModel - the cms item model we want to extract the unique identifier.EncodedItemComposedKeypublic void setCmsAdminItemService(CMSAdminItemService cmsAdminItemService)
protected CMSAdminItemService getCmsAdminItemService()
protected CatalogVersionService getCatalogVersionService()
public void setCatalogVersionService(CatalogVersionService catalogVersionService)
protected <any> getItemDataDataFactory()
public void setItemDataDataFactory(<any> itemDataDataFactory)
protected <any> getEncodedItemComposedKeyObjectFactory()
public void setEncodedItemComposedKeyObjectFactory(<any> encodedItemComposedKeyObjectFactory)
Copyright © 2018 SAP SE. All Rights Reserved.