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 ItemDataconvert(CMSNavigationEntryModel navigationEntryModel)Convert an ItemModel object to the correspondingItemDatainstance.CMSNavigationEntryModelconvert(ItemData itemData)protected CatalogVersionServicegetCatalogVersionService()protected CMSNavigationServicegetCmsNavigationService()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)voidsetCmsNavigationService(CMSNavigationService cmsNavigationService)voidsetItemDataDataFactory(org.springframework.beans.factory.ObjectFactory<ItemData> itemDataDataFactory)
-
-
-
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<CMSNavigationEntryModel>- Returns:
- item type
-
convert
public ItemData convert(CMSNavigationEntryModel navigationEntryModel) throws java.lang.IllegalArgumentException
Convert an ItemModel object to the correspondingItemDatainstance. throwIllegalArgumentException.- Specified by:
convertin interfaceUniqueIdentifierConverter<CMSNavigationEntryModel>- Parameters:
navigationEntryModel- - 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 CMSNavigationEntryModel convert(ItemData itemData) throws java.lang.IllegalArgumentException, UnknownIdentifierException
Convert anItemDataobject to the correspondingItemModelentity. throwIllegalArgumentException. throwUnknownIdentifierException.- Specified by:
convertin interfaceUniqueIdentifierConverter<CMSNavigationEntryModel>- Parameters:
itemData- - the item data instance that will be used in the conversion.- Returns:
- the
ItemModelentity that corresponds to the givenItemDataUniqueIdentifierConverter.getItemType(). - Throws:
java.lang.IllegalArgumentExceptionUnknownIdentifierException
-
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()
-
-