Class GenericComponentTypeStructureService

    • Field Detail

      • DEFAULT_EXPIRATION_TIME

        protected static final java.lang.Long DEFAULT_EXPIRATION_TIME
    • Constructor Detail

      • GenericComponentTypeStructureService

        public GenericComponentTypeStructureService()
    • Method Detail

      • initializeComponentTypeStructureMap

        protected com.google.common.base.Supplier<java.util.Map<java.lang.String,​ComponentTypeStructure>> initializeComponentTypeStructureMap()
        Supplier function to initialize the ComponentTypeStructure map.
      • isAbstractType

        protected java.util.function.Predicate<java.lang.String> isAbstractType()
        Predicate to test if the composed type represented by the typeCode is abstract.

        Returns TRUE if the composed type is abstract.

      • getComponentTypeStructureInternal

        protected ComponentTypeStructure getComponentTypeStructureInternal​(java.lang.String typeCode)
        Internal method to get the component type structure for a given typeCode
        Parameters:
        typeCode - the type code that represents the component type structure
        Returns:
        the ComponentTypeStructure represented by this typeCode.
      • collectTypePopulatorsFromTypeAndAncestorsInRegistry

        protected void collectTypePopulatorsFromTypeAndAncestorsInRegistry​(ComposedTypeModel composedType,
                                                                           java.util.List<Populator<ComposedTypeModel,​ComponentTypeData>> populators)
        Recursively collects type populators from the registry until it reaches the root type (CMSItem)
        Parameters:
        composedType - the type being used to look for populators
        populators - the list of populators that has to be modified
      • collectExtraAttributesFromTypeAndAncestorsInRegistry

        protected void collectExtraAttributesFromTypeAndAncestorsInRegistry​(ComposedTypeModel composedType,
                                                                            java.util.Set<ComponentTypeAttributeStructure> attributes)
        Recursively collects extra attributes that are not in the Data Model, but it is present on the the registry
        Parameters:
        composedType - the type being used to look for populators
        attributes -
      • getInternalComponentTypeStructureMap

        protected com.google.common.base.Supplier<java.util.Map<java.lang.String,​ComponentTypeStructure>> getInternalComponentTypeStructureMap()
      • initializeInternalStructureMap

        protected com.google.common.base.Supplier<java.util.Map<java.lang.String,​ComponentTypeStructure>> initializeInternalStructureMap​(java.lang.Long expirationTime)
      • afterPropertiesSet

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

        protected TypeService getTypeService()
      • setTypeService

        public void setTypeService​(TypeService typeService)
      • getTypeBlacklistSet

        protected java.util.Set<java.lang.String> getTypeBlacklistSet()
      • setTypeBlacklistSet

        public void setTypeBlacklistSet​(java.util.Set<java.lang.String> typeBlacklistSet)
      • setConfigurationService

        public void setConfigurationService​(ConfigurationService configurationService)
      • setComponentTypeStructureRegistry

        public void setComponentTypeStructureRegistry​(ComponentTypeStructureRegistry componentTypeStructureRegistry)