Class DefaultDataStructureBuilder
java.lang.Object
de.hybris.platform.integrationbackoffice.widgets.modeling.builders.DefaultDataStructureBuilder
- All Implemented Interfaces:
DataStructureBuilder
Default implementation of DataStructure builder
Utilizes the EditorAttributeFilterService and ReadService beans
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptioncompileSubtypeDataSet(IntegrationObjectDefinition existingDefinitions, Set<SubtypeData> subtypeDataSet) Compiles a set of any type instance that has been subtyped (ie.compileSubtypeDataSet(Map<ComposedTypeModel, List<AbstractListItemDTO>> existingDefinitions, Set<SubtypeData> subtypeDataSet) Compiles a set of any type instance that has been subtyped (ie.findSubtypeMatch(ComposedTypeModel parentType, String attributeQualifier, ComposedTypeModel attributeType, Set<SubtypeData> subtypeDataSet) Finds an instance of a subtype in the subtype data setfindSubtypeMatch(IntegrationMapKeyDTO parentKey, String attributeQualifier, ComposedTypeModel attributeType, Set<SubtypeData> subtypeDataSet) Finds an instance of a subtype in the subtype data setloadExistingDefinitions(IntegrationObjectDefinition existingDefinitions, IntegrationObjectDefinition currAttrMap) Lays an existing definition over the basic derived version (from the type system) by updating any user selected properties/attributes.loadExistingDefinitions(Map<ComposedTypeModel, List<AbstractListItemDTO>> existingDefinitions, Map<ComposedTypeModel, List<AbstractListItemDTO>> currAttrMap) Lays an existing definition over the basic derived version (from the type system) by updating any user selected attributes.populateAttributesMap(ComposedTypeModel typeModel, Map<ComposedTypeModel, List<AbstractListItemDTO>> currAttrMap) Populates an entry in the attributes map withListItemAttributeDTOs.populateAttributesMap(IntegrationMapKeyDTO mapKeyDTO, IntegrationObjectDefinition currAttrMap) Populates an entry in the attributes map withListItemAttributeDTOs.
-
Constructor Details
-
DefaultDataStructureBuilder
-
-
Method Details
-
populateAttributesMap
public Map<ComposedTypeModel,List<AbstractListItemDTO>> populateAttributesMap(ComposedTypeModel typeModel, Map<ComposedTypeModel, List<AbstractListItemDTO>> currAttrMap) Description copied from interface:DataStructureBuilderPopulates an entry in the attributes map withListItemAttributeDTOs.- Specified by:
populateAttributesMapin interfaceDataStructureBuilder- Parameters:
typeModel- type, for which the attributes should be populated.currAttrMap- attributes of the composed type to be populated.- Returns:
- a map of all item types in an integration object mapped to the attributes of that type to be included in the integration object
-
populateAttributesMap
public IntegrationObjectDefinition populateAttributesMap(IntegrationMapKeyDTO mapKeyDTO, IntegrationObjectDefinition currAttrMap) Description copied from interface:DataStructureBuilderPopulates an entry in the attributes map withListItemAttributeDTOs.- Specified by:
populateAttributesMapin interfaceDataStructureBuilder- Parameters:
mapKeyDTO- Key under which to populate entriescurrAttrMap- Object holding current attribute mapping- Returns:
- The attribute mapping after population
-
loadExistingDefinitions
public Map<ComposedTypeModel,List<AbstractListItemDTO>> loadExistingDefinitions(Map<ComposedTypeModel, List<AbstractListItemDTO>> existingDefinitions, Map<ComposedTypeModel, List<AbstractListItemDTO>> currAttrMap) Description copied from interface:DataStructureBuilderLays an existing definition over the basic derived version (from the type system) by updating any user selected attributes.- Specified by:
loadExistingDefinitionsin interfaceDataStructureBuilder- Parameters:
existingDefinitions- derived existing attributes for the item types in an integration object modelcurrAttrMap- attributes selected by the user in each of the item types included in the integration object- Returns:
- updated collection of attributes mapped to the corresponding item type included in the integration object
-
loadExistingDefinitions
public IntegrationObjectDefinition loadExistingDefinitions(IntegrationObjectDefinition existingDefinitions, IntegrationObjectDefinition currAttrMap) Description copied from interface:DataStructureBuilderLays an existing definition over the basic derived version (from the type system) by updating any user selected properties/attributes.- Specified by:
loadExistingDefinitionsin interfaceDataStructureBuilder- Parameters:
existingDefinitions- A map containing any existing definition of the objectcurrAttrMap- Current attribute mapping- Returns:
- The attribute mapping after layering with an existing definition
-
compileSubtypeDataSet
public Set<SubtypeData> compileSubtypeDataSet(Map<ComposedTypeModel, List<AbstractListItemDTO>> existingDefinitions, Set<SubtypeData> subtypeDataSet) Description copied from interface:DataStructureBuilderCompiles a set of any type instance that has been subtyped (ie. its current type was modified to be an inherited type of the attribute's base type found in the type system.- Specified by:
compileSubtypeDataSetin interfaceDataStructureBuilder- Parameters:
existingDefinitions- a map containing the existing definition of the objectsubtypeDataSet- a set to which new subtype instances will be added- Returns:
- the set of subtype data instances
-
compileSubtypeDataSet
public Set<SubtypeData> compileSubtypeDataSet(IntegrationObjectDefinition existingDefinitions, Set<SubtypeData> subtypeDataSet) Description copied from interface:DataStructureBuilderCompiles a set of any type instance that has been subtyped (ie. its current type was modified to be an inherited type of the attribute's base type found in the type system.- Specified by:
compileSubtypeDataSetin interfaceDataStructureBuilder- Parameters:
existingDefinitions- A map containing the existing definition of the objectsubtypeDataSet- A set to which new subtype instances will be added- Returns:
- The set of subtype data instances
-
findSubtypeMatch
public ComposedTypeModel findSubtypeMatch(ComposedTypeModel parentType, String attributeQualifier, ComposedTypeModel attributeType, Set<SubtypeData> subtypeDataSet) Description copied from interface:DataStructureBuilderFinds an instance of a subtype in the subtype data set- Specified by:
findSubtypeMatchin interfaceDataStructureBuilder- Parameters:
parentType- Parent key the instance is located inattributeQualifier- Qualifier used to identify the attributeattributeType- Type of the attribute used to identify itsubtypeDataSet- Set of subtype data instances to search through- Returns:
- the subtype instance
-
findSubtypeMatch
public ComposedTypeModel findSubtypeMatch(IntegrationMapKeyDTO parentKey, String attributeQualifier, ComposedTypeModel attributeType, Set<SubtypeData> subtypeDataSet) Description copied from interface:DataStructureBuilderFinds an instance of a subtype in the subtype data set- Specified by:
findSubtypeMatchin interfaceDataStructureBuilder- Parameters:
parentKey- Parent key the instance is located inattributeQualifier- Qualifier used to identify the attributeattributeType- Type of the attribute used to identify itsubtypeDataSet- Set of subtype data instances to search through- Returns:
- the subtype instance
-