Class IntegrationObjectPresentation
java.lang.Object
de.hybris.platform.integrationbackoffice.widgets.modeling.data.IntegrationObjectPresentation
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionIntegrationObjectPresentation(@NotNull DataStructureBuilder dataStructureBuilder, @NotNull IntegrationObjectItemTypeMatchService itemTypeMatchService) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSubtypeData(@NotNull SubtypeData data) Adds aSubtypeDataelement to the setvoidCalls the item type match service's method to assign the search restriction on theIntegrationObjectModel's items.buildAttributesMapEntry(IntegrationMapKeyDTO mapKeyDTO) Calls the builder to create an entry in the attributes mapConstructs a map with entries of duplicate attribute names associated to list items.org.zkoss.zul.Listboxorg.zkoss.zul.TreeGets the definition map in the integration modeling view.Gets the list of attributes belonging to the selected type instance.Gets the selected type instance in the integration modeling view.Calls the item type match service to retrieve the search restriction for the types within theIntegrationObjectModelbooleanhasRoot()booleanbooleanbooleanvoidvoidsetAttributeDuplicationMap(IntegrationObjectDefinitionDuplicationMap attributeDuplicationMap) voidsetAttributesListBox(org.zkoss.zul.Listbox attributesListBox) voidsetComposedTypeTree(org.zkoss.zul.Tree composedTypeTree) voidsetCurrentAttributesMap(IntegrationObjectDefinition currentAttributesMap) Sets the definition map in the integration modeling view.voidsetEditModeFlag(boolean editModeFlag) voidsetFilterState(IntegrationFilterState filterState) voidsetItemTypeMatchMap(Map<ComposedTypeModel, ItemTypeMatchEnum> itemTypeMatchMap) voidsetModified(boolean modified) voidsetSelectedIntegrationObject(IntegrationObjectModel selectedIntegrationObject) voidsetSelectedTypeAttributes(List<AbstractListItemDTO> attributes) Sets the list of attributes for the selected type instance.voidsetSelectedTypeInstance(@NotNull IntegrationMapKeyDTO selectedTypeInstance) Sets the selected type instance in the integration modeling view.voidsetSubtypeDataSet(Set<SubtypeData> subtypeDataSet)
-
Constructor Details
-
IntegrationObjectPresentation
public IntegrationObjectPresentation(@NotNull @NotNull DataStructureBuilder dataStructureBuilder, @NotNull @NotNull IntegrationObjectItemTypeMatchService itemTypeMatchService)
-
-
Method Details
-
resetState
public void resetState() -
hasRoot
public boolean hasRoot() -
isValidIOSelected
public boolean isValidIOSelected() -
getFilterState
-
setFilterState
-
getCurrentAttributesMap
Gets the definition map in the integration modeling view.- Returns:
- the definition map encapsulated by
IntegrationObjectDefinition.
-
setCurrentAttributesMap
Sets the definition map in the integration modeling view.- Parameters:
currentAttributesMap- a definition map encapsulated byIntegrationObjectDefinition.
-
getItemTypeMatchMap
-
setItemTypeMatchMap
-
getSubtypeDataSet
-
setSubtypeDataSet
-
isModified
public boolean isModified() -
setModified
public void setModified(boolean modified) -
getSelectedIntegrationObject
-
setSelectedIntegrationObject
-
getAttributeDuplicationMap
-
setAttributeDuplicationMap
public void setAttributeDuplicationMap(IntegrationObjectDefinitionDuplicationMap attributeDuplicationMap) -
isEditModeFlag
public boolean isEditModeFlag() -
setEditModeFlag
public void setEditModeFlag(boolean editModeFlag) -
getDataStructureBuilder
-
getComposedTypeTree
public org.zkoss.zul.Tree getComposedTypeTree() -
setComposedTypeTree
public void setComposedTypeTree(org.zkoss.zul.Tree composedTypeTree) -
getAttributesListBox
public org.zkoss.zul.Listbox getAttributesListBox() -
setAttributesListBox
public void setAttributesListBox(org.zkoss.zul.Listbox attributesListBox) -
getSelectedTypeInstance
Gets the selected type instance in the integration modeling view.- Returns:
- the selected type instance encapsulated by
IntegrationMapKeyDTO.
-
setSelectedTypeInstance
Sets the selected type instance in the integration modeling view.- Parameters:
selectedTypeInstance- a type instance encapsulated byIntegrationMapKeyDTO.
-
getSelectedTypeAttributes
Gets the list of attributes belonging to the selected type instance.- Returns:
- a list of attributes belonging to the selected type instance.
-
setSelectedTypeAttributes
Sets the list of attributes for the selected type instance.- Parameters:
attributes- the list of attributes to set.
-
buildAttributesMapEntry
Calls the builder to create an entry in the attributes map- Parameters:
mapKeyDTO- Key under which to build the entry- Returns:
- Map after new entry is built
-
compileDuplicationMap
Constructs a map with entries of duplicate attribute names associated to list items. These entries are tied to any type instance where a duplicate entry occurs.- Returns:
- A map containing any duplicate entries that must be resolved before persisting the IntegrationObject
-
addSubtypeData
Adds aSubtypeDataelement to the set- Parameters:
data- Instance of subtype data
-
assignItemTypeMatchForIntegrationObject
Calls the item type match service's method to assign the search restriction on theIntegrationObjectModel's items.- Parameters:
ioModel-IntegrationObjectItemModelwho's items will have their match restrictions set for
-
groupItemTypeMatchForIntegrationObject
public Map<ComposedTypeModel,ItemTypeMatchEnum> groupItemTypeMatchForIntegrationObject(IntegrationObjectModel ioModel) Calls the item type match service to retrieve the search restriction for the types within theIntegrationObjectModel- Parameters:
ioModel-IntegrationObjectModelto gather item type matches for- Returns:
- map containing the
ItemTypeMatchEnumfor eachComposedTypeModel
-