Class DefaultCMSNavigationEntryModelUniqueIdentifierConverter
- java.lang.Object
-
- de.hybris.platform.cmsfacades.uniqueidentifier.functions.DefaultCMSNavigationEntryModelUniqueIdentifierConverter
-
- All Implemented Interfaces:
UniqueIdentifierConverter<CMSNavigationEntryModel>
public class DefaultCMSNavigationEntryModelUniqueIdentifierConverter extends java.lang.Object implements UniqueIdentifierConverter<CMSNavigationEntryModel>
Default implementation for conversion ofCMSNavigationEntryModel
-
-
Constructor Summary
Constructors Constructor Description DefaultCMSNavigationEntryModelUniqueIdentifierConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ItemData
convert(CMSNavigationEntryModel navigationEntryModel)
Convert an ItemModel object to the correspondingItemData
instance.CMSNavigationEntryModel
convert(ItemData itemData)
protected CatalogVersionService
getCatalogVersionService()
protected CMSNavigationService
getCmsNavigationService()
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
setCmsNavigationService(CMSNavigationService cmsNavigationService)
void
setItemDataDataFactory(org.springframework.beans.factory.ObjectFactory<ItemData> itemDataDataFactory)
-
-
-
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<CMSNavigationEntryModel>
- Returns:
- item type
-
convert
public ItemData convert(CMSNavigationEntryModel navigationEntryModel) throws java.lang.IllegalArgumentException
Convert an ItemModel object to the correspondingItemData
instance. throwIllegalArgumentException
.- Specified by:
convert
in interfaceUniqueIdentifierConverter<CMSNavigationEntryModel>
- Parameters:
navigationEntryModel
- - 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 CMSNavigationEntryModel convert(ItemData itemData) throws java.lang.IllegalArgumentException, UnknownIdentifierException
Convert anItemData
object to the correspondingItemModel
entity. throwIllegalArgumentException
. throwUnknownIdentifierException
.- Specified by:
convert
in interfaceUniqueIdentifierConverter<CMSNavigationEntryModel>
- Parameters:
itemData
- - the item data instance that will be used in the conversion.- Returns:
- the
ItemModel
entity that corresponds to the givenItemData
UniqueIdentifierConverter.getItemType()
. - Throws:
java.lang.IllegalArgumentException
UnknownIdentifierException
-
getItemDataDataFactory
protected org.springframework.beans.factory.ObjectFactory<ItemData> getItemDataDataFactory()
-
setItemDataDataFactory
public void setItemDataDataFactory(org.springframework.beans.factory.ObjectFactory<ItemData> itemDataDataFactory)
-
getCatalogVersionService
protected CatalogVersionService getCatalogVersionService()
-
setCatalogVersionService
public void setCatalogVersionService(CatalogVersionService catalogVersionService)
-
setCmsNavigationService
public void setCmsNavigationService(CMSNavigationService cmsNavigationService)
-
getCmsNavigationService
protected CMSNavigationService getCmsNavigationService()
-
-