Class RegistryComponentTypeStructureService

java.lang.Object
de.hybris.platform.cmsfacades.types.service.impl.RegistryComponentTypeStructureService
All Implemented Interfaces:
ComponentTypeStructureService

@Deprecated(since="1811", forRemoval=true) public class RegistryComponentTypeStructureService extends Object implements ComponentTypeStructureService
Deprecated, for removal: This API element is subject to removal in a future version.
since 1811, please use de.hybris.platform.cmsfacades.types.service.impl.GenericComponentTypeStructureService
Implementation of the ComponentTypeStructureService that first attempts to get type using the registered structure type ComponentTypeStructureRegistry.getComponentTypeStructure(String). As a fallback strategy, the service will then invoke ComponentTypeStructureRegistry.getAbstractComponentTypeStructure(String) in another attempt to return the ComponentTypeStructure.
  • Constructor Details

    • RegistryComponentTypeStructureService

      public RegistryComponentTypeStructureService()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • getComponentTypeStructure

      public ComponentTypeStructure getComponentTypeStructure(String typeCode)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: ComponentTypeStructureService
      Get a ComponentTypeStructure by its typecode.
      Specified by:
      getComponentTypeStructure in interface ComponentTypeStructureService
      Parameters:
      typeCode - - the typeCode of the element to retrieve.
      Returns:
      the element matching the typeCode
    • getComponentTypeStructures

      public Collection<ComponentTypeStructure> getComponentTypeStructures()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: ComponentTypeStructureService
      Get all elements in the registry.
      Specified by:
      getComponentTypeStructures in interface ComponentTypeStructureService
      Returns:
      all items in the registry or an empty collection if no elements are found.
    • getComponentTypeStructureInternal

      protected ComponentTypeStructure getComponentTypeStructureInternal(String typeCode)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Internal method to get the component type given its typeCode. Augments the attribute lists with the abstract type definition.
      Parameters:
      typeCode - the type of the component to get
      Returns:
      the ComponentTypeStructure instance
    • augmentTypeAttributes

      protected void augmentTypeAttributes(ComponentTypeStructure componentType, ComponentTypeStructure abstractType)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Merges the type attributes from the abstract type to the child type
      Parameters:
      componentType - - the child type which attributes will be augmented
      abstractType - - the abstract type which attributes will be added to the child type attributes
    • containsAttribute

      protected boolean containsAttribute(ComponentTypeAttributeStructure attribute, Set<ComponentTypeAttributeStructure> attributes)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Verifies that an attribute exists in the given list of attributes.
      Parameters:
      attribute - - the attribute to check if its presence in the given list of attributes
      attributes - - the list of attributes against which the attribute is checked
      Returns:
      TRUE if the attribute is already defined in the list of attributes; FALSE otherwise
    • getAbstractTypesForComponent

      protected List<ComponentTypeStructure> getAbstractTypesForComponent(ComponentTypeStructure componentType)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Find all abstract types structure for the category defined in the given component type
      Parameters:
      componentType - - the component type specifying the category used for filtering
      Returns:
      all abstract types defined for a given category
    • getComponentTypeStructureRegistry

      protected ComponentTypeStructureRegistry getComponentTypeStructureRegistry()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setComponentTypeStructureRegistry

      public void setComponentTypeStructureRegistry(ComponentTypeStructureRegistry componentTypeStructureRegistry)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getTypeService

      protected TypeService getTypeService()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setTypeService

      public void setTypeService(TypeService typeService)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getCmsSupportedAbstractTypecodes

      protected Set<String> getCmsSupportedAbstractTypecodes()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setCmsSupportedAbstractTypecodes

      public void setCmsSupportedAbstractTypecodes(Set<String> cmsSupportedAbstractTypecodes)
      Deprecated, for removal: This API element is subject to removal in a future version.