Class GenericComposedTypeToStructureConverter

    • Constructor Detail

      • GenericComposedTypeToStructureConverter

        public GenericComposedTypeToStructureConverter()
    • Method Detail

      • collectAttributes

        protected void collectAttributes​(ComposedTypeModel composedType,
                                         java.util.List<ComponentTypeAttributeStructure> attributes)
        Recursively collects attributes of a given type that is not blacklisted until it reaches the root type (CMSItem).
        Parameters:
        composedType - the type which the attributes are collected from.
        attributes - the attribute list that will be augmented by introspecting the composedType.
      • convertAttributeDescriptor

        protected ComponentTypeAttributeStructure convertAttributeDescriptor​(AttributeDescriptorModel attributeDescriptor)
        Converts an attribute descriptor into an instance of ComponentTypeAttributeStructure. Applies registry configuration on top of each attribute as well.
        Parameters:
        attributeDescriptor - the attribute descriptor to be converted/
        Returns:
        instance of ComponentTypeAttributeStructure populated with values from configuration on top of type service and registry.
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws java.lang.Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        java.lang.Exception
      • getTypeDataClassFunction

        protected java.util.function.Function<ComposedTypeModel,​java.lang.Class> getTypeDataClassFunction()
      • setTypeDataClassFunction

        public void setTypeDataClassFunction​(java.util.function.Function<ComposedTypeModel,​java.lang.Class> typeDataClassFunction)
      • getStructureTypeBlacklistAttributeMap

        public java.util.Map<java.lang.String,​java.lang.String> getStructureTypeBlacklistAttributeMap()
      • setStructureTypeBlacklistAttributeMap

        public void setStructureTypeBlacklistAttributeMap​(java.util.Map<java.lang.String,​java.lang.String> structureTypeBlacklistAttributeMap)
      • getBlacklistAttributes

        protected java.util.Map<java.lang.String,​java.util.Set<java.lang.String>> getBlacklistAttributes()
      • setBlacklistAttributes

        public void setBlacklistAttributes​(java.util.Map<java.lang.String,​java.util.Set<java.lang.String>> blacklistAttributes)
      • setAttributePopulatorsProvider

        public void setAttributePopulatorsProvider​(AttributePopulatorsProvider attributePopulatorsProvider)
      • getComponentTypeAttributeStructureObjectFactory

        protected org.springframework.beans.factory.ObjectFactory<ComponentTypeAttributeStructure> getComponentTypeAttributeStructureObjectFactory()
      • setComponentTypeAttributeStructureObjectFactory

        public void setComponentTypeAttributeStructureObjectFactory​(org.springframework.beans.factory.ObjectFactory<ComponentTypeAttributeStructure> componentTypeAttributeStructureObjectFactory)
      • getComponentTypeStructureObjectFactory

        protected org.springframework.beans.factory.ObjectFactory<ComponentTypeStructure> getComponentTypeStructureObjectFactory()
      • setComponentTypeStructureObjectFactory

        public void setComponentTypeStructureObjectFactory​(org.springframework.beans.factory.ObjectFactory<ComponentTypeStructure> componentTypeStructureObjectFactory)