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
Modifier and TypeMethodDescriptionConvert an ItemModel object to the correspondingItemDatainstance.Returns the item typeItemModel#getItemTypewhere the converter should be applied to.
-
Method Details
-
getItemType
String getItemType()Returns the item typeItemModel#getItemTypewhere the converter should be applied to.- Returns:
- item type
-
convert
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:
IllegalArgumentException- whenitemModelis null.
-
convert
- Parameters:
itemData- - the item data instance that will be used in the conversion.- Returns:
- the
ItemModelentity that corresponds to the givenItemDatagetItemType().
-