Class IntegrationObjectPresentation

java.lang.Object
de.hybris.platform.integrationbackoffice.widgets.modeling.data.IntegrationObjectPresentation
All Implemented Interfaces:
Serializable

public class IntegrationObjectPresentation extends Object implements Serializable
See Also:
  • Constructor Details

  • Method Details

    • resetState

      public void resetState()
    • hasRoot

      public boolean hasRoot()
    • isValidIOSelected

      public boolean isValidIOSelected()
    • getFilterState

      public IntegrationFilterState getFilterState()
    • setFilterState

      public void setFilterState(IntegrationFilterState filterState)
    • getCurrentAttributesMap

      public IntegrationObjectDefinition getCurrentAttributesMap()
      Gets the definition map in the integration modeling view.
      Returns:
      the definition map encapsulated by IntegrationObjectDefinition.
    • setCurrentAttributesMap

      public void setCurrentAttributesMap(IntegrationObjectDefinition currentAttributesMap)
      Sets the definition map in the integration modeling view.
      Parameters:
      currentAttributesMap - a definition map encapsulated by IntegrationObjectDefinition.
    • getItemTypeMatchMap

      public Map<ComposedTypeModel,ItemTypeMatchEnum> getItemTypeMatchMap()
    • setItemTypeMatchMap

      public void setItemTypeMatchMap(Map<ComposedTypeModel,ItemTypeMatchEnum> itemTypeMatchMap)
    • getSubtypeDataSet

      public Set<SubtypeData> getSubtypeDataSet()
    • setSubtypeDataSet

      public void setSubtypeDataSet(Set<SubtypeData> subtypeDataSet)
    • isModified

      public boolean isModified()
    • setModified

      public void setModified(boolean modified)
    • getSelectedIntegrationObject

      public IntegrationObjectModel getSelectedIntegrationObject()
    • setSelectedIntegrationObject

      public void setSelectedIntegrationObject(IntegrationObjectModel selectedIntegrationObject)
    • getAttributeDuplicationMap

      public IntegrationObjectDefinitionDuplicationMap getAttributeDuplicationMap()
    • setAttributeDuplicationMap

      public void setAttributeDuplicationMap(IntegrationObjectDefinitionDuplicationMap attributeDuplicationMap)
    • isEditModeFlag

      public boolean isEditModeFlag()
    • setEditModeFlag

      public void setEditModeFlag(boolean editModeFlag)
    • getDataStructureBuilder

      public DataStructureBuilder 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

      public IntegrationMapKeyDTO getSelectedTypeInstance()
      Gets the selected type instance in the integration modeling view.
      Returns:
      the selected type instance encapsulated by IntegrationMapKeyDTO.
    • setSelectedTypeInstance

      public void setSelectedTypeInstance(@NotNull @NotNull IntegrationMapKeyDTO selectedTypeInstance)
      Sets the selected type instance in the integration modeling view.
      Parameters:
      selectedTypeInstance - a type instance encapsulated by IntegrationMapKeyDTO.
    • getSelectedTypeAttributes

      public List<AbstractListItemDTO> getSelectedTypeAttributes()
      Gets the list of attributes belonging to the selected type instance.
      Returns:
      a list of attributes belonging to the selected type instance.
    • setSelectedTypeAttributes

      public void setSelectedTypeAttributes(List<AbstractListItemDTO> attributes)
      Sets the list of attributes for the selected type instance.
      Parameters:
      attributes - the list of attributes to set.
    • buildAttributesMapEntry

      public IntegrationObjectDefinition buildAttributesMapEntry(IntegrationMapKeyDTO mapKeyDTO)
      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

      public IntegrationObjectDefinitionDuplicationMap 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

      public void addSubtypeData(@NotNull @NotNull SubtypeData data)
      Adds a SubtypeData element to the set
      Parameters:
      data - Instance of subtype data
    • assignItemTypeMatchForIntegrationObject

      public void assignItemTypeMatchForIntegrationObject(IntegrationObjectModel ioModel)
      Calls the item type match service's method to assign the search restriction on the IntegrationObjectModel's items.
      Parameters:
      ioModel - IntegrationObjectItemModel who'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 the IntegrationObjectModel
      Parameters:
      ioModel - IntegrationObjectModel to gather item type matches for
      Returns:
      map containing the ItemTypeMatchEnum for each ComposedTypeModel