Class DefaultCatalogVersionModelUniqueIdentifierConverter
- java.lang.Object
-
- de.hybris.platform.cmsfacades.uniqueidentifier.functions.DefaultCatalogVersionModelUniqueIdentifierConverter
-
- All Implemented Interfaces:
UniqueIdentifierConverter<CatalogVersionModel>
public class DefaultCatalogVersionModelUniqueIdentifierConverter extends java.lang.Object implements UniqueIdentifierConverter<CatalogVersionModel>
Default implementation for conversion ofCatalogVersionModel
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSEPARATOR
-
Constructor Summary
Constructors Constructor Description DefaultCatalogVersionModelUniqueIdentifierConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ItemDataconvert(CatalogVersionModel catalogVersion)Convert an ItemModel object to the correspondingItemDatainstance.CatalogVersionModelconvert(ItemData itemData)CatalogVersionServicegetCatalogVersionService()protected org.springframework.beans.factory.ObjectFactory<ItemData>getItemDataDataFactory()java.lang.StringgetItemType()Returns the item typeItemModel#getItemTypewhere the converter should be applied to.voidsetCatalogVersionService(CatalogVersionService catalogVersionService)voidsetItemDataDataFactory(org.springframework.beans.factory.ObjectFactory<ItemData> itemDataDataFactory)
-
-
-
Field Detail
-
SEPARATOR
public static final java.lang.String SEPARATOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
getItemType
public java.lang.String 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
public ItemData convert(CatalogVersionModel catalogVersion) throws java.lang.IllegalArgumentException
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:
java.lang.IllegalArgumentException- whenitemModelis null.
-
convert
public CatalogVersionModel convert(ItemData itemData)
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
public CatalogVersionService getCatalogVersionService()
-
setCatalogVersionService
public void setCatalogVersionService(CatalogVersionService catalogVersionService)
-
getItemDataDataFactory
protected org.springframework.beans.factory.ObjectFactory<ItemData> getItemDataDataFactory()
-
setItemDataDataFactory
public void setItemDataDataFactory(org.springframework.beans.factory.ObjectFactory<ItemData> itemDataDataFactory)
-
-