Class DefaultCMSItemConverter
- java.lang.Object
-
- de.hybris.platform.cmsfacades.cmsitems.converter.DefaultCMSItemConverter
-
- All Implemented Interfaces:
CMSItemConverter
public class DefaultCMSItemConverter extends java.lang.Object implements CMSItemConverter
The CMSItemConverter is the first layer of converters applied to convert a givenCMSItemModelintoMap<String, Object>. The reason why this class accepts any kind ofItemModelis that this same converter will be reused recursively when attributes are part of (AttributeDescriptorModel.getPartOf()) the enclosing item model, hence denoting a composition. This converter is also handling localized attributes and collections.
-
-
Constructor Summary
Constructors Constructor Description DefaultCMSItemConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidcollectValidationErrors(ValidationException e, java.util.Optional<java.lang.String> language, java.util.Optional<java.lang.Integer> position)Collects the errors in the validation exception and adds to the global validation context.java.util.Map<java.lang.String,java.lang.Object>convert(ItemModel source)Converts anItemModelto a serializableMap.ItemModelconvert(java.util.Map<java.lang.String,java.lang.Object> map)Converts a deserializableMapto anItemModel.protected ItemModelconvertAndValidate(java.util.Map<java.lang.String,java.lang.Object> map, ComposedTypeModel composedType)Converts and validates a deserializableMapto anItemModel.protected voidconvertAndValidateAttribute(java.util.Map<java.lang.String,java.lang.Object> map, ItemModel itemModel, AttributeDescriptorModel attribute)Converts and validates a primitive data or deserializableMapto an attribute value (primitive orItemModel).protected java.util.function.Function<AttributeDescriptorModel,java.util.Optional<java.lang.Object>>convertAttributeValueToRepresentation(ItemModel source)Function that returns the serializable representation value (String, Map or Collection) of allAttributeDescriptorModelof a given ItemModel source.protected java.util.function.Function<AttributeDescriptorModel,java.util.Optional<java.lang.Object>>convertRepresentationToAttributeValue(java.lang.Object source)Deprecated.since 1811.protected java.util.function.Function<AttributeDescriptorModel,java.util.Optional<java.lang.Object>>convertRepresentationToAttributeValue(java.lang.Object source, ItemModel itemModel)Function that constructs the persistable representation of allAttributeDescriptorModelof a given serializable source (String, Map or Collection).protected java.util.List<AttributeDescriptorModel>getAttributes(ComposedTypeModel composedType)Returns the list of all attributes defined for a given composed type, including the inherited ones.AttributeStrategyConverterProvidergetAttributeStrategyConverter()protected java.util.function.Function<AttributeDescriptorModel,java.util.Optional<java.lang.Object>>getAttributeValue(java.util.function.Supplier<java.lang.Object> localizedCollectionGetter, java.util.function.Supplier<java.lang.Object> localizedGetter, java.util.function.Supplier<java.lang.Object> collectionGetter, java.util.function.Supplier<java.lang.Object> simpleGetter)Returns aFunctionaimed at converting any value described by aAttributeDescriptorModel.protected java.util.function.Function<ItemModel,java.util.Map<AttributeDescriptorModel,java.lang.Object>>getAttributeValues()Function to get a Map of attribute descriptors and itsObjectvalue for a givenItemModelprotected AttributeValueToRepresentationStrategygetAttributeValueToRepresentationStrategy()protected AttributeContentValidatorgetBaseAttributeContentValidator()protected AttributeStrategyConverterProvidergetCloneAttributeStrategyConverter()protected CloneComponentContextProvidergetCloneComponentContextProvider()protected ItemModelgetCloneModelFromRepresentation(java.lang.String sourceComponentUuid)Create a Clone Item Model and saves it to theCloneComponentContextProvideror get a Clone Item Model from theCloneComponentContextProviderprotected CMSAdminItemServicegetCmsAdminItemService()protected CMSItemValidator<ItemModel>getCmsItemValidator(java.util.Map<java.lang.String,java.lang.Object> map)CMSItemValidator<ItemModel>getCmsItemValidatorCreate()CMSItemValidator<ItemModel>getCmsItemValidatorUpdate()protected CMSPermissionCheckergetCmsPermissionChecker()protected CMSUserServicegetCmsUserService()protected ComponentCloningStrategygetComponentCloningStrategy()protected ComposedTypeToAttributeCollectionConvertergetComposedTypeToAttributeCollectionConverter()protected java.util.List<Populator<ItemModel,java.util.Map<java.lang.String,java.lang.Object>>>getCustomPopulators()protected AttributeContentValidatorgetExtendedAttributeContentValidator()protected java.util.function.Predicate<AttributeDescriptorModel>getIsCollectionPredicate()protected ItemModelgetItemModelFromRepresentation(java.util.Map<java.lang.String,java.lang.Object> map)Get Item Model from request payloadprotected LocalizedPopulatorgetLocalizedPopulator()protected ModelServicegetModelService()NestedOrPartOfAttributePredicategetNestedOrPartOfAttributePredicate()protected OriginalClonedItemProvider<ItemModel>getOriginalClonedItemProvider()protected CMSItemContextProvider<java.util.Map<java.lang.String,java.lang.Object>>getOriginalConvertedItemProvider()protected PermissionCRUDServicegetPermissionCRUDService()protected TypeServicegetTypeService()protected UniqueItemIdentifierServicegetUniqueItemIdentifierService()ValidatableServicegetValidatableService()protected ValidationErrorsProvidergetValidationErrorsProvider()protected booleaninitializeCloneComponentAttributeContext(java.lang.String qualifier, java.lang.Object targetValue)Check that the value for the given qualifier was modified during the cloning process and stores the source component attribute value in the clone component context in the session.protected booleanisCloneComponentFlow(java.util.Map<java.lang.String,java.lang.Object> map)Determine if a map that represents the item model is a component cloneprotected booleanisDynamicAttribute(AttributeDescriptorModel attribute)Returns true if the attribute is a dynamic attribute.protected java.util.function.Function<java.lang.Object,java.lang.Object>leafOrDeeperConvertToModel(AttributeDescriptorModel attribute)Given anAttributeDescriptorModel, will return aFunctionthat will do the following:
if the attribute is a partOf of the owning type, it will return a conversion of it by means ofDefaultCMSItemConverter#convert(Map)
if the attribute is not a partOf of the owning type, it will return a conversion of it by means of the appropriate data-to-model converter returned by the attributeStrategyConverter.protected java.util.function.Function<java.lang.Object,java.lang.Object>leafOrDeeperConvertToRepresentation(AttributeDescriptorModel attribute)Given anAttributeDescriptorModel, will return aFunctionthat will do the following:
if the attribute is a partOf of the owning type, it will return a conversion of it by means ofconvert(ItemModel)
if the attribute is not a partOf of the owning type, it will return a conversion of it by means of the appropriate model-to-data converter returned by the attributeStrategyConverter.protected booleanmodelHasAssignedUUID(java.util.Map<java.lang.String,java.lang.Object> valueMap)protected booleanprincipalCanUpdateAttribute(java.lang.String typeCode, java.lang.String qualifier)This method determines whether the current principal can update the attribute identified by the qualifier in the enclosing type.protected booleanprincipalCanWriteAttributeLanguage(java.lang.String qualifier, java.lang.String languageIsoCode, java.util.Set<java.lang.String> writeableLanguages)This method is used to check if the current principal can write a language of a localized attribute.voidsetAttributeStrategyConverter(AttributeStrategyConverterProvider attributeStrategyConverter)voidsetAttributeValueToRepresentationStrategy(AttributeValueToRepresentationStrategy attributeValueToRepresentationStrategy)voidsetBaseAttributeContentValidator(AttributeContentValidator baseAttributeContentValidator)voidsetCloneAttributeStrategyConverter(AttributeStrategyConverterProvider cloneAttributeStrategyConverter)voidsetCloneComponentContextProvider(CloneComponentContextProvider cloneComponentContextProvider)voidsetCmsAdminItemService(CMSAdminItemService cmsAdminItemService)voidsetCmsItemValidatorCreate(CMSItemValidator<ItemModel> cmsItemValidatorCreate)voidsetCmsItemValidatorUpdate(CMSItemValidator<ItemModel> cmsItemValidatorUpdate)voidsetCmsPermissionChecker(CMSPermissionChecker cmsPermissionChecker)voidsetCmsUserService(CMSUserService cmsUserService)voidsetComponentCloningStrategy(ComponentCloningStrategy componentCloningStrategy)voidsetComposedTypeToAttributeCollectionConverter(ComposedTypeToAttributeCollectionConverter composedTypeToAttributeCollectionConverter)voidsetCustomPopulators(java.util.List<Populator<ItemModel,java.util.Map<java.lang.String,java.lang.Object>>> customPopulators)voidsetExtendedAttributeContentValidator(AttributeContentValidator extendedAttributeContentValidator)voidsetIsCollectionPredicate(java.util.function.Predicate<AttributeDescriptorModel> isCollectionPredicate)voidsetLocalizedPopulator(LocalizedPopulator localizedPopulator)voidsetModelService(ModelService modelService)voidsetNestedOrPartOfAttributePredicate(NestedOrPartOfAttributePredicate nestedOrPartOfAttributePredicate)voidsetOriginalClonedItemProvider(OriginalClonedItemProvider<ItemModel> originalClonedItemProvider)voidsetOriginalConvertedItemProvider(CMSItemContextProvider<java.util.Map<java.lang.String,java.lang.Object>> originalConvertedItemProvider)voidsetPermissionCRUDService(PermissionCRUDService permissionCRUDService)voidsetTypeService(TypeService typeService)voidsetUniqueItemIdentifierService(UniqueItemIdentifierService uniqueItemIdentifierService)voidsetValidatableService(ValidatableService validatableService)voidsetValidationErrorsProvider(ValidationErrorsProvider validationErrorsProvider)protected java.util.Collection<java.lang.Object>transformCollection(AttributeDescriptorModel attribute, java.util.Collection<java.lang.Object> collection, java.util.function.Function<java.lang.Object,java.lang.Object> transform)Convenience method to apply a transformation to all elements of aFunctionprotected java.util.Map<java.lang.String,java.lang.Object>transformLocalizedValue(AttributeDescriptorModel attribute, java.util.Map<java.lang.String,java.lang.Object> itemMap, ItemModel itemModel, java.util.function.Function<java.lang.Object,java.lang.Object> transform)Convenience method to apply a transformation to values of aMapprotected java.util.Map<java.lang.String,java.lang.Object>transformLocalizedValue(AttributeDescriptorModel attribute, java.util.Map<java.lang.String,java.lang.Object> itemMap, java.util.function.Function<java.lang.Object,java.lang.Object> transform)Deprecated.since 1811.protected voidvalidate(java.lang.Object value, AttributeDescriptorModel attribute, AttributeContentValidator validator)Validates and throws an exception if there are validation errors
-
-
-
Method Detail
-
convert
public java.util.Map<java.lang.String,java.lang.Object> convert(ItemModel source)
Description copied from interface:CMSItemConverterConverts anItemModelto a serializableMap.- Specified by:
convertin interfaceCMSItemConverter- Parameters:
source- theItemModelto convert.- Returns:
- the
ItemModelconverted to aMap
-
convert
public ItemModel convert(java.util.Map<java.lang.String,java.lang.Object> map)
Description copied from interface:CMSItemConverterConverts a deserializableMapto anItemModel.- Specified by:
convertin interfaceCMSItemConverter- Parameters:
map- the Mapto convert - Returns:
- the
Mapconverted to anItemModel
-
convertAndValidate
protected ItemModel convertAndValidate(java.util.Map<java.lang.String,java.lang.Object> map, ComposedTypeModel composedType)
Converts and validates a deserializableMapto anItemModel.- Parameters:
map- the Mapto convert composedType- the type to which theMapwill be converted to.- Returns:
- the
Mapconverted to anItemModel
-
convertAndValidateAttribute
protected void convertAndValidateAttribute(java.util.Map<java.lang.String,java.lang.Object> map, ItemModel itemModel, AttributeDescriptorModel attribute)Converts and validates a primitive data or deserializableMapto an attribute value (primitive orItemModel).- Parameters:
map- the Mapcontaining the attribute data to convert itemModel- the model which attribute value will be updatedattribute- the attribute descriptor providing information about the attribute to be updated
-
initializeCloneComponentAttributeContext
protected boolean initializeCloneComponentAttributeContext(java.lang.String qualifier, java.lang.Object targetValue)Check that the value for the given qualifier was modified during the cloning process and stores the source component attribute value in the clone component context in the session.- Parameters:
qualifier- the attribute field nametargetValue- the value to be applied to the component model- Returns:
- TRUE when the attribute value was modified during the component cloning flow;
FALSE when the given qualifier isUIDor when the attribute value was not modified
-
getCmsItemValidator
protected CMSItemValidator<ItemModel> getCmsItemValidator(java.util.Map<java.lang.String,java.lang.Object> map)
-
getItemModelFromRepresentation
protected ItemModel getItemModelFromRepresentation(java.util.Map<java.lang.String,java.lang.Object> map)
Get Item Model from request payload- Parameters:
map- the map representing the Item Model- Returns:
- the ItemModel related to this Map representation
-
isCloneComponentFlow
protected boolean isCloneComponentFlow(java.util.Map<java.lang.String,java.lang.Object> map)
Determine if a map that represents the item model is a component clone- Parameters:
map- the map representing the Item Model- Returns:
- a boolean that determines if the item being created is a component clone
-
getCloneModelFromRepresentation
protected ItemModel getCloneModelFromRepresentation(java.lang.String sourceComponentUuid)
Create a Clone Item Model and saves it to theCloneComponentContextProvideror get a Clone Item Model from theCloneComponentContextProvider- Parameters:
sourceComponentUuid- the UUID representing the source Item Model to clone from- Returns:
- the ItemModel cloned from the provided
sourceComponentUuid
-
transformCollection
protected java.util.Collection<java.lang.Object> transformCollection(AttributeDescriptorModel attribute, java.util.Collection<java.lang.Object> collection, java.util.function.Function<java.lang.Object,java.lang.Object> transform)
Convenience method to apply a transformation to all elements of aFunction- Parameters:
collection- theCollectionthe elements of which we need to transformtransform- the transformationFunctionthat will be applied on each element of the collection- Returns:
- a new collection
-
transformLocalizedValue
protected java.util.Map<java.lang.String,java.lang.Object> transformLocalizedValue(AttributeDescriptorModel attribute, java.util.Map<java.lang.String,java.lang.Object> itemMap, ItemModel itemModel, java.util.function.Function<java.lang.Object,java.lang.Object> transform)
Convenience method to apply a transformation to values of aMap- Parameters:
itemMap- theMapthe values of which we need to transformitemModel- the model containing the original attribute value. If this is a new model, the attribute value will be empty.transform- the transformationFunctionthat will be applied on each values of the itemMap- Returns:
- a new itemMap
-
leafOrDeeperConvertToRepresentation
protected java.util.function.Function<java.lang.Object,java.lang.Object> leafOrDeeperConvertToRepresentation(AttributeDescriptorModel attribute)
Given anAttributeDescriptorModel, will return aFunctionthat will do the following:
if the attribute is a partOf of the owning type, it will return a conversion of it by means ofconvert(ItemModel)
if the attribute is not a partOf of the owning type, it will return a conversion of it by means of the appropriate model-to-data converter returned by the attributeStrategyConverter.- Parameters:
attribute- theAttributeDescriptorModeldescribing the metadata of the property of a class- Returns:
- a conversion of type Object
-
leafOrDeeperConvertToModel
protected java.util.function.Function<java.lang.Object,java.lang.Object> leafOrDeeperConvertToModel(AttributeDescriptorModel attribute)
Given anAttributeDescriptorModel, will return aFunctionthat will do the following:
if the attribute is a partOf of the owning type, it will return a conversion of it by means ofDefaultCMSItemConverter#convert(Map)
if the attribute is not a partOf of the owning type, it will return a conversion of it by means of the appropriate data-to-model converter returned by the attributeStrategyConverter. if no converter is found,AttributeContentConverter.Value.NOT_TO_BE_SETis returned to instruct no to try to persist this property- Parameters:
attribute- theAttributeDescriptorModeldescribing the metadata of the property of a class- Returns:
- a conversion of type Object
- Throws:
java.lang.IllegalAccessExceptionjava.lang.InstantiationException
-
isDynamicAttribute
protected boolean isDynamicAttribute(AttributeDescriptorModel attribute)
Returns true if the attribute is a dynamic attribute. Note that this method doesn't consider RelationDescriptorModels as dynamic.- Parameters:
attribute- The attribute to evaluate.- Returns:
- true if the attribute is dynamic, false otherwise.
-
getAttributes
protected java.util.List<AttributeDescriptorModel> getAttributes(ComposedTypeModel composedType)
Returns the list of all attributes defined for a given composed type, including the inherited ones.- Parameters:
composedType- the composedType the attributes belong to- Returns:
- a list of all attributes declared, including inherited attributes.
-
getAttributeValues
protected java.util.function.Function<ItemModel,java.util.Map<AttributeDescriptorModel,java.lang.Object>> getAttributeValues()
Function to get a Map of attribute descriptors and itsObjectvalue for a givenItemModel- Returns:
- a function that when executed returns a map with attributes and their respective values.
-
convertAttributeValueToRepresentation
protected java.util.function.Function<AttributeDescriptorModel,java.util.Optional<java.lang.Object>> convertAttributeValueToRepresentation(ItemModel source)
Function that returns the serializable representation value (String, Map or Collection) of allAttributeDescriptorModelof a given ItemModel source. This methods recursively handles the following cases and their possible combinations:- localized field
- collections
- partOf
- Parameters:
source- theItemModelowning all theAttributeDescriptorModel- Returns:
- returns the serializable representations
-
convertRepresentationToAttributeValue
protected java.util.function.Function<AttributeDescriptorModel,java.util.Optional<java.lang.Object>> convertRepresentationToAttributeValue(java.lang.Object source, ItemModel itemModel)
Function that constructs the persistable representation of allAttributeDescriptorModelof a given serializable source (String, Map or Collection). This methods recursively handles the following cases and their possible combinations:- localized field
- collections
- partOf
- Parameters:
source- serializable source (String, Map or Collection) described by aAttributeDescriptorModelitemModel- the model containing the original attribute value. If this is a new model, the attribute value will be empty.- Returns:
- returns the persistable representations
-
getAttributeValue
protected java.util.function.Function<AttributeDescriptorModel,java.util.Optional<java.lang.Object>> getAttributeValue(java.util.function.Supplier<java.lang.Object> localizedCollectionGetter, java.util.function.Supplier<java.lang.Object> localizedGetter, java.util.function.Supplier<java.lang.Object> collectionGetter, java.util.function.Supplier<java.lang.Object> simpleGetter)
Returns aFunctionaimed at converting any value described by aAttributeDescriptorModel. This function will execute one of the provided suppliers depending on whether the attribute is localized and/or a collection- Parameters:
localizedCollectionGetter- aSupplierinvoked if the attribute is both localized and a collectionlocalizedGetter- aSupplierinvoked if the attribute is localized and not a collectioncollectionGetter- aSupplierinvoked if the attribute is a collection and not localizedsimpleGetter- aSupplierinvoked if the attribute is neither localized nor an attribute- Returns:
- a
Functionto convert a value
-
validate
protected void validate(java.lang.Object value, AttributeDescriptorModel attribute, AttributeContentValidator validator)Validates and throws an exception if there are validation errors- Parameters:
value- the value being validatedattribute- the attribute descriptor modelvalidator- the validator to be used
-
collectValidationErrors
protected void collectValidationErrors(ValidationException e, java.util.Optional<java.lang.String> language, java.util.Optional<java.lang.Integer> position)
Collects the errors in the validation exception and adds to the global validation context.- Parameters:
e- the exceptionlanguage- optional; the validated languageposition- optional; the position in which the object value in the collection
-
modelHasAssignedUUID
protected boolean modelHasAssignedUUID(java.util.Map<java.lang.String,java.lang.Object> valueMap)
-
principalCanUpdateAttribute
protected boolean principalCanUpdateAttribute(java.lang.String typeCode, java.lang.String qualifier)This method determines whether the current principal can update the attribute identified by the qualifier in the enclosing type. A user can update an attribute when both read and change attribute permissions are granted.- Parameters:
typeCode- the item model type codequalifier- the attribute qualifier- Returns:
TRUEwhen the user has read and change permissions on the attribute; otherwiseFALSE
-
principalCanWriteAttributeLanguage
protected boolean principalCanWriteAttributeLanguage(java.lang.String qualifier, java.lang.String languageIsoCode, java.util.Set<java.lang.String> writeableLanguages)This method is used to check if the current principal can write a language of a localized attribute.- Parameters:
qualifier- - the qualifier of the attribute whose language wants to be changed.languageIsoCode- - the ISO code of the language that wants to be updated.writeableLanguages- - the list of languages the current principal can write. Each element represents the ISO code of a language- Returns:
- a boolean flag. True, if the user can write the language for the localized element; False, otherwise.
-
convertRepresentationToAttributeValue
@Deprecated protected java.util.function.Function<AttributeDescriptorModel,java.util.Optional<java.lang.Object>> convertRepresentationToAttributeValue(java.lang.Object source)
Deprecated.since 1811. Please useconvertRepresentationToAttributeValue(Object, ItemModel)instead.Function that constructs the persistable representation of allAttributeDescriptorModelof a given serializable source (String, Map or Collection). This methods recursively handles the following cases and their possible combinations:- localized field
- collections
- partOf
- Parameters:
source- serializable source (String, Map or Collection) described by aAttributeDescriptorModel- Returns:
- returns the persistable representations
-
transformLocalizedValue
@Deprecated protected java.util.Map<java.lang.String,java.lang.Object> transformLocalizedValue(AttributeDescriptorModel attribute, java.util.Map<java.lang.String,java.lang.Object> itemMap, java.util.function.Function<java.lang.Object,java.lang.Object> transform)
Deprecated.since 1811. Please usetransformLocalizedValue(AttributeDescriptorModel, Map, ItemModel, Function)instead.Convenience method to apply a transformation to values of aMap- Parameters:
itemMap- theMapthe values of which we need to transformtransform- the transformationFunctionthat will be applied on each values of the itemMap- Returns:
- a new itemMap
-
getTypeService
protected TypeService getTypeService()
-
setTypeService
public void setTypeService(TypeService typeService)
-
getModelService
protected ModelService getModelService()
-
setModelService
public void setModelService(ModelService modelService)
-
getLocalizedPopulator
protected LocalizedPopulator getLocalizedPopulator()
-
setLocalizedPopulator
public void setLocalizedPopulator(LocalizedPopulator localizedPopulator)
-
getAttributeStrategyConverter
public AttributeStrategyConverterProvider getAttributeStrategyConverter()
-
setAttributeStrategyConverter
public void setAttributeStrategyConverter(AttributeStrategyConverterProvider attributeStrategyConverter)
-
getUniqueItemIdentifierService
protected UniqueItemIdentifierService getUniqueItemIdentifierService()
-
setUniqueItemIdentifierService
public void setUniqueItemIdentifierService(UniqueItemIdentifierService uniqueItemIdentifierService)
-
getCmsAdminItemService
protected CMSAdminItemService getCmsAdminItemService()
-
setCmsAdminItemService
public void setCmsAdminItemService(CMSAdminItemService cmsAdminItemService)
-
getBaseAttributeContentValidator
protected AttributeContentValidator getBaseAttributeContentValidator()
-
setBaseAttributeContentValidator
public void setBaseAttributeContentValidator(AttributeContentValidator baseAttributeContentValidator)
-
getExtendedAttributeContentValidator
protected AttributeContentValidator getExtendedAttributeContentValidator()
-
setExtendedAttributeContentValidator
public void setExtendedAttributeContentValidator(AttributeContentValidator extendedAttributeContentValidator)
-
getValidationErrorsProvider
protected ValidationErrorsProvider getValidationErrorsProvider()
-
setValidationErrorsProvider
public void setValidationErrorsProvider(ValidationErrorsProvider validationErrorsProvider)
-
getNestedOrPartOfAttributePredicate
public NestedOrPartOfAttributePredicate getNestedOrPartOfAttributePredicate()
-
setNestedOrPartOfAttributePredicate
public void setNestedOrPartOfAttributePredicate(NestedOrPartOfAttributePredicate nestedOrPartOfAttributePredicate)
-
getValidatableService
public ValidatableService getValidatableService()
-
setValidatableService
public void setValidatableService(ValidatableService validatableService)
-
getCmsItemValidatorCreate
public CMSItemValidator<ItemModel> getCmsItemValidatorCreate()
-
setCmsItemValidatorCreate
public void setCmsItemValidatorCreate(CMSItemValidator<ItemModel> cmsItemValidatorCreate)
-
getCmsItemValidatorUpdate
public CMSItemValidator<ItemModel> getCmsItemValidatorUpdate()
-
setCmsItemValidatorUpdate
public void setCmsItemValidatorUpdate(CMSItemValidator<ItemModel> cmsItemValidatorUpdate)
-
getOriginalClonedItemProvider
protected OriginalClonedItemProvider<ItemModel> getOriginalClonedItemProvider()
-
setOriginalClonedItemProvider
public void setOriginalClonedItemProvider(OriginalClonedItemProvider<ItemModel> originalClonedItemProvider)
-
getComponentCloningStrategy
protected ComponentCloningStrategy getComponentCloningStrategy()
-
setComponentCloningStrategy
public void setComponentCloningStrategy(ComponentCloningStrategy componentCloningStrategy)
-
getCloneComponentContextProvider
protected CloneComponentContextProvider getCloneComponentContextProvider()
-
setCloneComponentContextProvider
public void setCloneComponentContextProvider(CloneComponentContextProvider cloneComponentContextProvider)
-
getCloneAttributeStrategyConverter
protected AttributeStrategyConverterProvider getCloneAttributeStrategyConverter()
-
setCloneAttributeStrategyConverter
public void setCloneAttributeStrategyConverter(AttributeStrategyConverterProvider cloneAttributeStrategyConverter)
-
getAttributeValueToRepresentationStrategy
protected AttributeValueToRepresentationStrategy getAttributeValueToRepresentationStrategy()
-
setAttributeValueToRepresentationStrategy
public void setAttributeValueToRepresentationStrategy(AttributeValueToRepresentationStrategy attributeValueToRepresentationStrategy)
-
getComposedTypeToAttributeCollectionConverter
protected ComposedTypeToAttributeCollectionConverter getComposedTypeToAttributeCollectionConverter()
-
setComposedTypeToAttributeCollectionConverter
public void setComposedTypeToAttributeCollectionConverter(ComposedTypeToAttributeCollectionConverter composedTypeToAttributeCollectionConverter)
-
getCustomPopulators
protected java.util.List<Populator<ItemModel,java.util.Map<java.lang.String,java.lang.Object>>> getCustomPopulators()
-
setCustomPopulators
public void setCustomPopulators(java.util.List<Populator<ItemModel,java.util.Map<java.lang.String,java.lang.Object>>> customPopulators)
-
getPermissionCRUDService
protected PermissionCRUDService getPermissionCRUDService()
-
setPermissionCRUDService
public void setPermissionCRUDService(PermissionCRUDService permissionCRUDService)
-
getCmsUserService
protected CMSUserService getCmsUserService()
-
setCmsUserService
public void setCmsUserService(CMSUserService cmsUserService)
-
getCmsPermissionChecker
protected CMSPermissionChecker getCmsPermissionChecker()
-
setCmsPermissionChecker
public void setCmsPermissionChecker(CMSPermissionChecker cmsPermissionChecker)
-
getIsCollectionPredicate
protected java.util.function.Predicate<AttributeDescriptorModel> getIsCollectionPredicate()
-
setIsCollectionPredicate
public void setIsCollectionPredicate(java.util.function.Predicate<AttributeDescriptorModel> isCollectionPredicate)
-
getOriginalConvertedItemProvider
protected CMSItemContextProvider<java.util.Map<java.lang.String,java.lang.Object>> getOriginalConvertedItemProvider()
-
setOriginalConvertedItemProvider
public void setOriginalConvertedItemProvider(CMSItemContextProvider<java.util.Map<java.lang.String,java.lang.Object>> originalConvertedItemProvider)
-
-