Class RegistryComponentTypeStructureService
- java.lang.Object
-
- de.hybris.platform.cmsfacades.types.service.impl.RegistryComponentTypeStructureService
-
- All Implemented Interfaces:
ComponentTypeStructureService
@Deprecated public class RegistryComponentTypeStructureService extends java.lang.Object implements ComponentTypeStructureService
Deprecated.since 1811, please use de.hybris.platform.cmsfacades.types.service.impl.GenericComponentTypeStructureServiceImplementation of theComponentTypeStructureServicethat first attempts to get type using the registered structure typeComponentTypeStructureRegistry.getComponentTypeStructure(String). As a fallback strategy, the service will then invokeComponentTypeStructureRegistry.getAbstractComponentTypeStructure(String)in another attempt to return theComponentTypeStructure.
-
-
Constructor Summary
Constructors Constructor Description RegistryComponentTypeStructureService()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidaugmentTypeAttributes(ComponentTypeStructure componentType, ComponentTypeStructure abstractType)Deprecated.Merges the type attributes from the abstract type to the child typeprotected booleancontainsAttribute(ComponentTypeAttributeStructure attribute, java.util.Set<ComponentTypeAttributeStructure> attributes)Deprecated.Verifies that an attribute exists in the given list of attributes.protected java.util.List<ComponentTypeStructure>getAbstractTypesForComponent(ComponentTypeStructure componentType)Deprecated.Find all abstract types structure for the category defined in the given component typeprotected java.util.Set<java.lang.String>getCmsSupportedAbstractTypecodes()Deprecated.ComponentTypeStructuregetComponentTypeStructure(java.lang.String typeCode)Deprecated.Get aComponentTypeStructureby its typecode.protected ComponentTypeStructuregetComponentTypeStructureInternal(java.lang.String typeCode)Deprecated.Internal method to get the component type given its typeCode.protected ComponentTypeStructureRegistrygetComponentTypeStructureRegistry()Deprecated.java.util.Collection<ComponentTypeStructure>getComponentTypeStructures()Deprecated.Get all elements in the registry.protected TypeServicegetTypeService()Deprecated.voidsetCmsSupportedAbstractTypecodes(java.util.Set<java.lang.String> cmsSupportedAbstractTypecodes)Deprecated.voidsetComponentTypeStructureRegistry(ComponentTypeStructureRegistry componentTypeStructureRegistry)Deprecated.voidsetTypeService(TypeService typeService)Deprecated.
-
-
-
Method Detail
-
getComponentTypeStructure
public ComponentTypeStructure getComponentTypeStructure(java.lang.String typeCode)
Deprecated.Description copied from interface:ComponentTypeStructureServiceGet aComponentTypeStructureby its typecode.- Specified by:
getComponentTypeStructurein interfaceComponentTypeStructureService- Parameters:
typeCode- - the typeCode of the element to retrieve.- Returns:
- the element matching the typeCode
-
getComponentTypeStructures
public java.util.Collection<ComponentTypeStructure> getComponentTypeStructures()
Deprecated.Description copied from interface:ComponentTypeStructureServiceGet all elements in the registry.- Specified by:
getComponentTypeStructuresin interfaceComponentTypeStructureService- Returns:
- all items in the registry or an empty collection if no elements are found.
-
getComponentTypeStructureInternal
protected ComponentTypeStructure getComponentTypeStructureInternal(java.lang.String typeCode)
Deprecated.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
ComponentTypeStructureinstance
-
augmentTypeAttributes
protected void augmentTypeAttributes(ComponentTypeStructure componentType, ComponentTypeStructure abstractType)
Deprecated.Merges the type attributes from the abstract type to the child type- Parameters:
componentType- - the child type which attributes will be augmentedabstractType- - the abstract type which attributes will be added to the child type attributes
-
containsAttribute
protected boolean containsAttribute(ComponentTypeAttributeStructure attribute, java.util.Set<ComponentTypeAttributeStructure> attributes)
Deprecated.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 attributesattributes- - 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 java.util.List<ComponentTypeStructure> getAbstractTypesForComponent(ComponentTypeStructure componentType)
Deprecated.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.
-
setComponentTypeStructureRegistry
public void setComponentTypeStructureRegistry(ComponentTypeStructureRegistry componentTypeStructureRegistry)
Deprecated.
-
getTypeService
protected TypeService getTypeService()
Deprecated.
-
setTypeService
public void setTypeService(TypeService typeService)
Deprecated.
-
getCmsSupportedAbstractTypecodes
protected java.util.Set<java.lang.String> getCmsSupportedAbstractTypecodes()
Deprecated.
-
setCmsSupportedAbstractTypecodes
public void setCmsSupportedAbstractTypecodes(java.util.Set<java.lang.String> cmsSupportedAbstractTypecodes)
Deprecated.
-
-