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 Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaugmentTypeAttributes(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 typeprotected booleancontainsAttribute(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.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 typeDeprecated, for removal: This API element is subject to removal in a future version.getComponentTypeStructure(String typeCode) Deprecated, for removal: This API element is subject to removal in a future version.Get aComponentTypeStructureby its typecode.protected ComponentTypeStructuregetComponentTypeStructureInternal(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.protected ComponentTypeStructureRegistryDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Get all elements in the registry.protected TypeServiceDeprecated, for removal: This API element is subject to removal in a future version.voidsetCmsSupportedAbstractTypecodes(Set<String> cmsSupportedAbstractTypecodes) Deprecated, for removal: This API element is subject to removal in a future version.voidsetComponentTypeStructureRegistry(ComponentTypeStructureRegistry componentTypeStructureRegistry) Deprecated, for removal: This API element is subject to removal in a future version.voidsetTypeService(TypeService typeService) Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
RegistryComponentTypeStructureService
public RegistryComponentTypeStructureService()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
getComponentTypeStructure
Deprecated, for removal: This API element is subject to removal in a future version.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
Deprecated, for removal: This API element is subject to removal in a future version.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
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
ComponentTypeStructureinstance
-
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 augmentedabstractType- - 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 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 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
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
Deprecated, for removal: This API element is subject to removal in a future version. -
setTypeService
Deprecated, for removal: This API element is subject to removal in a future version. -
getCmsSupportedAbstractTypecodes
Deprecated, for removal: This API element is subject to removal in a future version. -
setCmsSupportedAbstractTypecodes
Deprecated, for removal: This API element is subject to removal in a future version.
-