Class ComposedTypeToAttributeCollectionConverter
java.lang.Object
de.hybris.platform.cmsfacades.cmsitems.converter.ComposedTypeToAttributeCollectionConverter
- All Implemented Interfaces:
Converter<ComposedTypeModel,,Collection<AttributeDescriptorModel>> org.springframework.beans.factory.InitializingBean
public class ComposedTypeToAttributeCollectionConverter
extends Object
implements Converter<ComposedTypeModel,Collection<AttributeDescriptorModel>>, org.springframework.beans.factory.InitializingBean
This
Converter is used to retrieve the list of attributes to convert. The returned list only
contains attributes that haven't been blacklisted.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected Collection<AttributeDescriptorModel>collectAttributeDescriptors(ComposedTypeModel composedType) Collects attributes of a given type that is not blacklisted until it reaches the root type.convert(ComposedTypeModel typeModel) Uses the sourceSobject and produces an new instance ofT.voidsetBlacklistedTypes(Set<String> blacklistedTypes) voidsetTypeBlacklistedAttributeMap(Map<String, String> typeBlacklistedAttributeMap)
-
Constructor Details
-
ComposedTypeToAttributeCollectionConverter
public ComposedTypeToAttributeCollectionConverter()
-
-
Method Details
-
convert
Description copied from interface:ConverterUses the sourceSobject and produces an new instance ofT.- Specified by:
convertin interfaceConverter<ComposedTypeModel,Collection<AttributeDescriptorModel>> - Parameters:
typeModel- the input to be converted.- Returns:
- an instance of
T, converted from the input source.
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
collectAttributeDescriptors
protected Collection<AttributeDescriptorModel> collectAttributeDescriptors(ComposedTypeModel composedType) Collects attributes of a given type that is not blacklisted until it reaches the root type.- Parameters:
composedType- the type which the attributes are collected from.
-
getTypeBlacklistedAttributeMap
-
setTypeBlacklistedAttributeMap
-
getBlacklistedAttributes
-
getBlacklistedTypes
-
setBlacklistedTypes
-