Class ContentSlotsForPageConverter
java.lang.Object
de.hybris.platform.cms2.version.converter.customattribute.impl.ContentSlotsForPageConverter
- All Implemented Interfaces:
CustomAttributeContentConverter
Converter for ContentSlotForPage relation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ContentSlotForPageRelationDataconvertContentSlotModelToRelationData(ContentSlotForPageModel contentSlotForPageModel) ConvertsContentSlotForPageModelto aContentSlotForPageRelationDataconvertModelToData(ItemModel itemModel) ConvertsItemModelto representation that can be serialized.protected CMSAdminContentSlotServiceprotected CMSItemToDataConverterprotected CMSVersionSessionContextProviderPredicate to verify whether current converter is applicable to providedItemModel.protected ContentSlotModelgetContentSlotByPk(PK pk) Returns aContentSlotModelby primary key.protected org.springframework.beans.factory.ObjectFactory<ContentSlotForPageRelationData>protected Converter<VersionPayloadDescriptor,ItemModel> Returns the qualifier for custom attribute.voidpopulateItemModel(ItemModel itemModel, String value) .voidsetCmsAdminContentSlotService(CMSAdminContentSlotService cmsAdminContentSlotService) voidsetCmsContentSlotDao(CMSContentSlotDao cmsContentSlotDao) voidsetCmsItemToDataConverter(CMSItemToDataConverter cmsItemToDataConverter) voidsetCmsVersionSessionContextProvider(CMSVersionSessionContextProvider cmsVersionSessionContextProvider) voidsetConstrainedBy(Predicate<ItemModel> constrainedBy) voidsetContentSlotRelationDataFactory(org.springframework.beans.factory.ObjectFactory<ContentSlotForPageRelationData> contentSlotRelationDataFactory) voidsetModelService(ModelService modelService) voidsetPkDataToModelConverter(Converter<VersionPayloadDescriptor, ItemModel> pkDataToModelConverter) voidsetQualifier(String qualifier)
-
Constructor Details
-
ContentSlotsForPageConverter
public ContentSlotsForPageConverter()
-
-
Method Details
-
convertModelToData
Description copied from interface:CustomAttributeContentConverterConvertsItemModelto representation that can be serialized.- Specified by:
convertModelToDatain interfaceCustomAttributeContentConverter- Parameters:
itemModel- theItemModelthat is used to generate custom attribute.- Returns:
CMSVersionCustomAttributeorList<CMSVersionCustomAttribute>
-
populateItemModel
. TheContentSlotForPageModelis not accessible throughAbstractPageModeltherefore
the method saves theContentSlotForPageModelto a session and it can be
used later while rebuilding the page.- Specified by:
populateItemModelin interfaceCustomAttributeContentConverter- Parameters:
itemModel- theItemModelto populate.value- the value.
-
getContentSlotByPk
Returns aContentSlotModelby primary key.- Parameters:
pk- thePK- Returns:
- the
ContentSlotModel
-
convertContentSlotModelToRelationData
protected ContentSlotForPageRelationData convertContentSlotModelToRelationData(ContentSlotForPageModel contentSlotForPageModel) ConvertsContentSlotForPageModelto aContentSlotForPageRelationData- Parameters:
contentSlotForPageModel- theContentSlotForPageModelto convert.- Returns:
- the
ContentSlotForPageRelationData.
-
getConstrainedBy
Description copied from interface:CustomAttributeContentConverterPredicate to verify whether current converter is applicable to providedItemModel.- Specified by:
getConstrainedByin interfaceCustomAttributeContentConverter- Returns:
- the
Predicate<ItemModel>.
-
setConstrainedBy
-
getCmsItemToDataConverter
-
setCmsItemToDataConverter
-
getContentSlotRelationDataFactory
protected org.springframework.beans.factory.ObjectFactory<ContentSlotForPageRelationData> getContentSlotRelationDataFactory() -
setContentSlotRelationDataFactory
public void setContentSlotRelationDataFactory(org.springframework.beans.factory.ObjectFactory<ContentSlotForPageRelationData> contentSlotRelationDataFactory) -
getQualifier
Description copied from interface:CustomAttributeContentConverterReturns the qualifier for custom attribute.- Specified by:
getQualifierin interfaceCustomAttributeContentConverter- Returns:
- custom qualifier.
-
setQualifier
-
getCmsAdminContentSlotService
-
setCmsAdminContentSlotService
-
getPkDataToModelConverter
-
setPkDataToModelConverter
public void setPkDataToModelConverter(Converter<VersionPayloadDescriptor, ItemModel> pkDataToModelConverter) -
getCmsVersionSessionContextProvider
-
setCmsVersionSessionContextProvider
public void setCmsVersionSessionContextProvider(CMSVersionSessionContextProvider cmsVersionSessionContextProvider) -
getModelService
-
setModelService
-
getCmsContentSlotDao
-
setCmsContentSlotDao
-