Interface UniqueIdentifierConverter<T extends ItemModel>
-
- Type Parameters:
T- type parameter which extends theItemModeltype
- All Known Implementing Classes:
DefaultCatalogVersionModelUniqueIdentifierConverter,DefaultCategoryModelUniqueIdentifierConverter,DefaultCmsItemModelUniqueIdentifierConverter,DefaultCMSNavigationEntryModelUniqueIdentifierConverter,DefaultCMSPageTypeModelUniqueIdentifierConverter,DefaultMediaContainerModelUniqueIdentifierConverter,DefaultMediaModelUniqueIdentifierConverter,DefaultProductModelUniqueIdentifierConverter,DefaultUserGroupModelUniqueIdentifierConverter
public interface UniqueIdentifierConverter<T extends ItemModel>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Tconvert(ItemData itemData)ItemDataconvert(T itemModel)Convert an ItemModel object to the correspondingItemDatainstance.java.lang.StringgetItemType()Returns the item typeItemModel#getItemTypewhere the converter should be applied to.
-
-
-
Method Detail
-
getItemType
java.lang.String getItemType()
Returns the item typeItemModel#getItemTypewhere the converter should be applied to.- Returns:
- item type
-
convert
ItemData convert(T itemModel)
Convert an ItemModel object to the correspondingItemDatainstance.- Parameters:
itemModel- - the item model entity that will be converted.- Returns:
- an instance of the
ItemDataclass that corresponds to the givenItemModelgetItemType(). - Throws:
java.lang.IllegalArgumentException- whenitemModelis null.
-
convert
T convert(ItemData itemData)
- Parameters:
itemData- - the item data instance that will be used in the conversion.- Returns:
- the
ItemModelentity that corresponds to the givenItemDatagetItemType().
-
-