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 Details

    • ComposedTypeToAttributeCollectionConverter

      public ComposedTypeToAttributeCollectionConverter()
  • Method Details

    • convert

      Description copied from interface: Converter
      Uses the source S object and produces an new instance of T.
      Specified by:
      convert in interface Converter<ComposedTypeModel,Collection<AttributeDescriptorModel>>
      Parameters:
      typeModel - the input to be converted.
      Returns:
      an instance of T, converted from the input source.
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.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

      protected Map<String,String> getTypeBlacklistedAttributeMap()
    • setTypeBlacklistedAttributeMap

      public void setTypeBlacklistedAttributeMap(Map<String,String> typeBlacklistedAttributeMap)
    • getBlacklistedAttributes

      protected Map<String,Set<String>> getBlacklistedAttributes()
    • getBlacklistedTypes

      protected Set<String> getBlacklistedTypes()
    • setBlacklistedTypes

      public void setBlacklistedTypes(Set<String> blacklistedTypes)