Class DefaultIntegrationObjectDefinitionTrimmer

java.lang.Object
de.hybris.platform.integrationbackoffice.widgets.modeling.services.impl.DefaultIntegrationObjectDefinitionTrimmer
All Implemented Interfaces:
IntegrationObjectDefinitionTrimmer

public class DefaultIntegrationObjectDefinitionTrimmer extends Object implements IntegrationObjectDefinitionTrimmer
Default implementation of IntegrationObjectDefinitionTrimmer.
  • Constructor Details

    • DefaultIntegrationObjectDefinitionTrimmer

      public DefaultIntegrationObjectDefinitionTrimmer(@NotNull @NotNull ReadService readService)
      The constructor of DefaultIntegrationObjectDefinitionTrimmer.
      Parameters:
      readService - This implementation requires a readService.
  • Method Details

    • trimMap

      public IntegrationObjectDefinition trimMap(org.zkoss.zul.Tree composedTypeTree, IntegrationObjectDefinition fullMap)
      Description copied from interface: IntegrationObjectDefinitionTrimmer
      Given a map that represents all the tree nodes with each tree node's complete listBox and a Tree, this method will iterate through the tree from its first child (normally the only child) to all of its descendants. If a tree node has any item that is selected, a new entry will be created and added to another instance of IntegrationObjectDefinition which is returned at the end.
      Specified by:
      trimMap in interface IntegrationObjectDefinitionTrimmer
      Parameters:
      composedTypeTree - the tree that contains a root type and its displayable descendants. Normally composedType type and element's type of structured type will be displayed.
      Returns:
      a IntegrationObjectDefinition containing the trimmed definition map of the full definition map.