Class DefaultCMSPageTypeModelUniqueIdentifierConverter
- java.lang.Object
-
- de.hybris.platform.cmsfacades.uniqueidentifier.functions.DefaultCMSPageTypeModelUniqueIdentifierConverter
-
- All Implemented Interfaces:
UniqueIdentifierConverter<CMSPageTypeModel>
public class DefaultCMSPageTypeModelUniqueIdentifierConverter extends java.lang.Object implements UniqueIdentifierConverter<CMSPageTypeModel>
Default implementation for conversion ofCMSPageTypeModel
-
-
Constructor Summary
Constructors Constructor Description DefaultCMSPageTypeModelUniqueIdentifierConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ItemDataconvert(CMSPageTypeModel pageTypeModel)Convert an ItemModel object to the correspondingItemDatainstance.CMSPageTypeModelconvert(ItemData itemData)protected CMSAdminPageServicegetAdminPageService()protected org.springframework.beans.factory.ObjectFactory<ItemData>getItemDataDataFactory()java.lang.StringgetItemType()Returns the item typeItemModel#getItemTypewhere the converter should be applied to.voidsetAdminPageService(CMSAdminPageService adminPageService)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<CMSPageTypeModel>- Returns:
- item type
-
convert
public ItemData convert(CMSPageTypeModel pageTypeModel)
Description copied from interface:UniqueIdentifierConverterConvert an ItemModel object to the correspondingItemDatainstance.- Specified by:
convertin interfaceUniqueIdentifierConverter<CMSPageTypeModel>- Parameters:
pageTypeModel- - the item model entity that will be converted.- Returns:
- an instance of the
ItemDataclass that corresponds to the givenItemModelUniqueIdentifierConverter.getItemType().
-
convert
public CMSPageTypeModel convert(ItemData itemData)
Description copied from interface:UniqueIdentifierConverter- Specified by:
convertin interfaceUniqueIdentifierConverter<CMSPageTypeModel>- Parameters:
itemData- - the item data instance that will be used in the conversion.- Returns:
- the
ItemModelentity that corresponds to the givenItemDataUniqueIdentifierConverter.getItemType().
-
getAdminPageService
protected CMSAdminPageService getAdminPageService()
-
setAdminPageService
public void setAdminPageService(CMSAdminPageService adminPageService)
-
getItemDataDataFactory
protected org.springframework.beans.factory.ObjectFactory<ItemData> getItemDataDataFactory()
-
setItemDataDataFactory
public void setItemDataDataFactory(org.springframework.beans.factory.ObjectFactory<ItemData> itemDataDataFactory)
-
-