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.String
SEPARATOR
-
Constructor Summary
Constructors Constructor Description DefaultCatalogVersionModelUniqueIdentifierConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ItemData
convert(CatalogVersionModel catalogVersion)
Convert an ItemModel object to the correspondingItemData
instance.CatalogVersionModel
convert(ItemData itemData)
CatalogVersionService
getCatalogVersionService()
protected org.springframework.beans.factory.ObjectFactory<ItemData>
getItemDataDataFactory()
java.lang.String
getItemType()
Returns the item typeItemModel#getItemType
where the converter should be applied to.void
setCatalogVersionService(CatalogVersionService catalogVersionService)
void
setItemDataDataFactory(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:UniqueIdentifierConverter
Returns the item typeItemModel#getItemType
where the converter should be applied to.- Specified by:
getItemType
in interfaceUniqueIdentifierConverter<CatalogVersionModel>
- Returns:
- item type
-
convert
public ItemData convert(CatalogVersionModel catalogVersion) throws java.lang.IllegalArgumentException
Description copied from interface:UniqueIdentifierConverter
Convert an ItemModel object to the correspondingItemData
instance.- Specified by:
convert
in interfaceUniqueIdentifierConverter<CatalogVersionModel>
- Parameters:
catalogVersion
- - the item model entity that will be converted.- Returns:
- an instance of the
ItemData
class that corresponds to the givenItemModel
UniqueIdentifierConverter.getItemType()
. - Throws:
java.lang.IllegalArgumentException
- whenitemModel
is null.
-
convert
public CatalogVersionModel convert(ItemData itemData)
Description copied from interface:UniqueIdentifierConverter
- Specified by:
convert
in interfaceUniqueIdentifierConverter<CatalogVersionModel>
- Parameters:
itemData
- - the item data instance that will be used in the conversion.- Returns:
- the
ItemModel
entity that corresponds to the givenItemData
UniqueIdentifierConverter.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)
-
-