Class IntegrationObjectDefinitionDuplicationMap

java.lang.Object
de.hybris.platform.integrationbackoffice.widgets.modeling.data.IntegrationObjectDefinitionDuplicationMap

public class IntegrationObjectDefinitionDuplicationMap extends Object
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 Details

  • Method Details

    • getDuplicationMap

      public Map<IntegrationMapKeyDTO,Map<String,List<AbstractListItemDTO>>> getDuplicationMap()
      Gets a copy of the duplication map.
      Returns:
      a copy of the duplication map.
    • getDuplicateAttributesByKey

      public Map<String,List<AbstractListItemDTO>> getDuplicateAttributesByKey(IntegrationMapKeyDTO key)
      Gets a copy of the duplicate attributes for a given duplication map key.
      Parameters:
      key - a IntegrationMapKeyDTO that 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 - a IntegrationMapKeyDTO that 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 - a IntegrationMapKeyDTO that 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

      public boolean containsKey(IntegrationMapKeyDTO key, String alias)
      Determines if the outer map and inner map contains given keys.
      Parameters:
      key - a IntegrationMapKeyDTO that is a key in the duplication map.
      alias - a key in the inner map.
    • addDTO

      public void addDTO(IntegrationMapKeyDTO key, String alias, AbstractListItemDTO dto)
      Add dto to the list in the inner map that is associated with the key and alias.
      Parameters:
      key - a IntegrationMapKeyDTO that 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