Class IntegrationObjectDefinition

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

public class IntegrationObjectDefinition extends Object
Class holding a map object with contents pertaining to the definition of a IntegrationObjectModel. Used in conjunction with the backoffice modeling tool.
  • Constructor Details

    • IntegrationObjectDefinition

      public IntegrationObjectDefinition()
      Instantiates with an empty definition map.
    • IntegrationObjectDefinition

      public IntegrationObjectDefinition(Map<IntegrationMapKeyDTO,List<AbstractListItemDTO>> definitionMap)
      Instantiates with the definition map of an existing integration object.
      Parameters:
      definitionMap - an integration object's definition map.
  • Method Details

    • getDefinitionMap

      public Map<IntegrationMapKeyDTO,List<AbstractListItemDTO>> getDefinitionMap()
      Gets a copy of the encapsulated definition map.
      Returns:
      a copy of the definition map.
    • setDefinitionMap

      public void setDefinitionMap(Map<IntegrationMapKeyDTO,List<AbstractListItemDTO>> definitionMap)
      Sets a copy of the argument as the definition map.
      Parameters:
      definitionMap - the map to set as the definition map.
    • getAttributesByKey

      public List<AbstractListItemDTO> getAttributesByKey(IntegrationMapKeyDTO key)
      Gets a copy of the list of attributes for a given definition map key.
      Parameters:
      key - the IntegrationMapKeyDTO that is a key in the definition map.
      Returns:
      a copy of the list of attributes for the given key.
    • setAttributesByKey

      public void setAttributesByKey(IntegrationMapKeyDTO key, List<AbstractListItemDTO> attributes)
      Sets a copy of a given list of attributes as the value of a given definition map key.
      Parameters:
      key - the IntegrationMapKeyDTO that is a key in the definition map.
      attributes - the list of attributes that will be set as the value of the map entry.
    • getAttributeByAlias

      public ListItemAttributeDTO getAttributeByAlias(IntegrationMapKeyDTO key, String alias)
      Gets a regular attribute by alias within a specified parent type instance.
      Parameters:
      key - the parent type instance of the attribute.
      alias - the attribute's alias.
      Returns:
      a ListItemAttributeDTO with the given alias belonging to the given type instance.
    • clear

      public void clear()
      Clears the definition map
    • containsKey

      public boolean containsKey(IntegrationMapKeyDTO key)
      Determines if map contains a given key
      Parameters:
      key - Key used in search
      Returns:
      If key is present
    • replace

      public void replace(IntegrationMapKeyDTO key, List<AbstractListItemDTO> listDTO)