Interface DataStructureBuilder
- All Known Implementing Classes:
DefaultDataStructureBuilder
public interface DataStructureBuilder
Helper class for EditorController
Extracted data structure specific methods to this class
-
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) Deprecated, for removal: This API element is subject to removal in a future version.findSubtypeMatch(ComposedTypeModel parentType, String attributeQualifier, ComposedTypeModel attributeType, Set<SubtypeData> subtypeDataSet) Deprecated, for removal: This API element is subject to removal in a future version.findSubtypeMatch(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) Deprecated, for removal: This API element is subject to removal in a future version.populateAttributesMap(ComposedTypeModel typeModel, Map<ComposedTypeModel, List<AbstractListItemDTO>> currAttrMap) Deprecated, for removal: This API element is subject to removal in a future version.populateAttributesMap(IntegrationMapKeyDTO mapKeyDTO, IntegrationObjectDefinition currAttrMap) Populates an entry in the attributes map withListItemAttributeDTOs.
-
Method Details
-
populateAttributesMap
@Deprecated(since="2205", forRemoval=true) Map<ComposedTypeModel,List<AbstractListItemDTO>> populateAttributesMap(ComposedTypeModel typeModel, Map<ComposedTypeModel, List<AbstractListItemDTO>> currAttrMap) Deprecated, for removal: This API element is subject to removal in a future version.Populates an entry in the attributes map withListItemAttributeDTOs.- 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
IntegrationObjectDefinition populateAttributesMap(IntegrationMapKeyDTO mapKeyDTO, IntegrationObjectDefinition currAttrMap) Populates an entry in the attributes map withListItemAttributeDTOs.- Parameters:
mapKeyDTO- Key under which to populate entriescurrAttrMap- Object holding current attribute mapping- Returns:
- The attribute mapping after population
-
loadExistingDefinitions
@Deprecated(since="2205", forRemoval=true) Map<ComposedTypeModel,List<AbstractListItemDTO>> loadExistingDefinitions(Map<ComposedTypeModel, List<AbstractListItemDTO>> existingDefinitions, Map<ComposedTypeModel, List<AbstractListItemDTO>> currAttrMap) Deprecated, for removal: This API element is subject to removal in a future version.Lays an existing definition over the basic derived version (from the type system) by updating any user selected attributes.- 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
IntegrationObjectDefinition loadExistingDefinitions(IntegrationObjectDefinition existingDefinitions, IntegrationObjectDefinition currAttrMap) Lays an existing definition over the basic derived version (from the type system) by updating any user selected properties/attributes.- 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
@Deprecated(since="2205", forRemoval=true) Set<SubtypeData> compileSubtypeDataSet(Map<ComposedTypeModel, List<AbstractListItemDTO>> existingDefinitions, Set<SubtypeData> subtypeDataSet) Deprecated, for removal: This API element is subject to removal in a future version.Compiles 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. This implicitly excludes primitive types.- 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
Set<SubtypeData> compileSubtypeDataSet(IntegrationObjectDefinition existingDefinitions, Set<SubtypeData> subtypeDataSet) Compiles 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.- 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
@Deprecated(since="2205", forRemoval=true) ComposedTypeModel findSubtypeMatch(ComposedTypeModel parentType, String attributeQualifier, ComposedTypeModel attributeType, Set<SubtypeData> subtypeDataSet) Deprecated, for removal: This API element is subject to removal in a future version.Finds an instance of a subtype in the subtype data set- 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
ComposedTypeModel findSubtypeMatch(IntegrationMapKeyDTO parentKey, String attributeQualifier, ComposedTypeModel attributeType, Set<SubtypeData> subtypeDataSet) Finds an instance of a subtype in the subtype data set- 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
-
compileSubtypeDataSet(IntegrationObjectDefinition, Set)instead