Class IntegrationObjectDefinitionDuplicationMap
java.lang.Object
de.hybris.platform.integrationbackoffice.widgets.modeling.data.IntegrationObjectDefinitionDuplicationMap
Class holding a map pertaining to duplicate attribute data. Primarily if two or more attributes have the same name/alias.
Used in conjunction with the backoffice modeling tool.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDTO(IntegrationMapKeyDTO key, String alias, AbstractListItemDTO dto) Add dto to the list in the inner map that is associated with the key and alias.voidclear()Clears the duplication map.booleancontainsKey(IntegrationMapKeyDTO key, String alias) Determines if the outer map and inner map contains given keys.Gets a copy of the duplicate attributes for a given duplication map key.Gets a copy of the duplication map.Removes the mapping for a key from this map if it is present.voidRemoves all entries that have no mentions of duplicatesvoidsetAttributesByKey(IntegrationMapKeyDTO key, String alias, List<AbstractListItemDTO> listOfDTO) Associates the specified value with the specified key in a inner map that is associated with a MapKeyDTO.voidsetAttributesByKey(IntegrationMapKeyDTO key, Map<String, List<AbstractListItemDTO>> duplicateAttributes) Associates the specified value with the specified key in this map.
-
Constructor Details
-
IntegrationObjectDefinitionDuplicationMap
public IntegrationObjectDefinitionDuplicationMap()Default constructor for aIntegrationObjectDefinitionDuplicationMap.
-
-
Method Details
-
getDuplicationMap
Gets a copy of the duplication map.- Returns:
- a copy of the duplication map.
-
getDuplicateAttributesByKey
Gets a copy of the duplicate attributes for a given duplication map key.- Parameters:
key- aIntegrationMapKeyDTOthat is a key in the duplication map.- Returns:
- a copy of the duplicate attributes for the given key.
-
setAttributesByKey
public void setAttributesByKey(IntegrationMapKeyDTO key, Map<String, List<AbstractListItemDTO>> duplicateAttributes) Associates the specified value with the specified key in this map.- Parameters:
key- aIntegrationMapKeyDTOthat is a key in the duplication map.duplicateAttributes- a map that is to be set associated with the key.
-
setAttributesByKey
public void setAttributesByKey(IntegrationMapKeyDTO key, String alias, List<AbstractListItemDTO> listOfDTO) Associates the specified value with the specified key in a inner map that is associated with a MapKeyDTO.- Parameters:
key- aIntegrationMapKeyDTOthat is a key in the duplication map.alias- a key in the inner map.listOfDTO- a list that is to be set associated with the two keys.
-
clear
public void clear()Clears the duplication map. -
containsKey
Determines if the outer map and inner map contains given keys.- Parameters:
key- aIntegrationMapKeyDTOthat is a key in the duplication map.alias- a key in the inner map.
-
addDTO
Add dto to the list in the inner map that is associated with the key and alias.- Parameters:
key- aIntegrationMapKeyDTOthat is a key in the duplication map.alias- a key in the inner map.dto- a value that is associated with key and alias.
-
remove
Removes the mapping for a key from this map if it is present. -
removeEntryWithEmptyList
public void removeEntryWithEmptyList()Removes all entries that have no mentions of duplicates
-