Class DefaultCatalogVersionModelUniqueIdentifierConverter
java.lang.Object
de.hybris.platform.cmsfacades.uniqueidentifier.functions.DefaultCatalogVersionModelUniqueIdentifierConverter
- All Implemented Interfaces:
UniqueIdentifierConverter<CatalogVersionModel>
public class DefaultCatalogVersionModelUniqueIdentifierConverter
extends Object
implements UniqueIdentifierConverter<CatalogVersionModel>
Default implementation for conversion of
CatalogVersionModel-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvert(CatalogVersionModel catalogVersion) Convert an ItemModel object to the correspondingItemDatainstance.protected org.springframework.beans.factory.ObjectFactory<ItemData>Returns the item typeItemModel#getItemTypewhere the converter should be applied to.voidsetCatalogVersionService(CatalogVersionService catalogVersionService) voidsetItemDataDataFactory(org.springframework.beans.factory.ObjectFactory<ItemData> itemDataDataFactory)
-
Field Details
-
SEPARATOR
- See Also:
-
-
Constructor Details
-
DefaultCatalogVersionModelUniqueIdentifierConverter
public DefaultCatalogVersionModelUniqueIdentifierConverter()
-
-
Method Details
-
getItemType
Description copied from interface:UniqueIdentifierConverterReturns the item typeItemModel#getItemTypewhere the converter should be applied to.- Specified by:
getItemTypein interfaceUniqueIdentifierConverter<CatalogVersionModel>- Returns:
- item type
-
convert
Description copied from interface:UniqueIdentifierConverterConvert an ItemModel object to the correspondingItemDatainstance.- Specified by:
convertin interfaceUniqueIdentifierConverter<CatalogVersionModel>- Parameters:
catalogVersion- - the item model entity that will be converted.- Returns:
- an instance of the
ItemDataclass that corresponds to the givenItemModelUniqueIdentifierConverter.getItemType(). - Throws:
IllegalArgumentException- whenitemModelis null.
-
convert
Description copied from interface:UniqueIdentifierConverter- Specified by:
convertin interfaceUniqueIdentifierConverter<CatalogVersionModel>- Parameters:
itemData- - the item data instance that will be used in the conversion.- Returns:
- the
ItemModelentity that corresponds to the givenItemDataUniqueIdentifierConverter.getItemType().
-
getCatalogVersionService
-
setCatalogVersionService
-
getItemDataDataFactory
-
setItemDataDataFactory
public void setItemDataDataFactory(org.springframework.beans.factory.ObjectFactory<ItemData> itemDataDataFactory)
-