Class IntegrationObjectDefinition
java.lang.Object
de.hybris.platform.integrationbackoffice.widgets.modeling.data.IntegrationObjectDefinition
Class holding a map object with contents pertaining to the definition of a
IntegrationObjectModel.
Used in conjunction with the backoffice modeling tool.-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates with an empty definition map.IntegrationObjectDefinition(Map<IntegrationMapKeyDTO, List<AbstractListItemDTO>> definitionMap) Instantiates with the definition map of an existing integration object. -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears the definition mapbooleanDetermines if map contains a given keygetAttributeByAlias(IntegrationMapKeyDTO key, String alias) Gets a regular attribute by alias within a specified parent type instance.Gets a copy of the list of attributes for a given definition map key.Gets a copy of the encapsulated definition map.voidreplace(IntegrationMapKeyDTO key, List<AbstractListItemDTO> listDTO) voidsetAttributesByKey(IntegrationMapKeyDTO key, List<AbstractListItemDTO> attributes) Sets a copy of a given list of attributes as the value of a given definition map key.voidsetDefinitionMap(Map<IntegrationMapKeyDTO, List<AbstractListItemDTO>> definitionMap) Sets a copy of the argument as the definition map.
-
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
Gets a copy of the encapsulated definition map.- Returns:
- a copy of the definition map.
-
setDefinitionMap
Sets a copy of the argument as the definition map.- Parameters:
definitionMap- the map to set as the definition map.
-
getAttributesByKey
Gets a copy of the list of attributes for a given definition map key.- Parameters:
key- theIntegrationMapKeyDTOthat is a key in the definition map.- Returns:
- a copy of the list of attributes for the given key.
-
setAttributesByKey
Sets a copy of a given list of attributes as the value of a given definition map key.- Parameters:
key- theIntegrationMapKeyDTOthat is a key in the definition map.attributes- the list of attributes that will be set as the value of the map entry.
-
getAttributeByAlias
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
ListItemAttributeDTOwith the given alias belonging to the given type instance.
-
clear
public void clear()Clears the definition map -
containsKey
Determines if map contains a given key- Parameters:
key- Key used in search- Returns:
- If key is present
-
replace
-