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 Summary
ConstructorsConstructorDescriptionDefaultIntegrationObjectDefinitionTrimmer(@NotNull ReadService readService) The constructor of DefaultIntegrationObjectDefinitionTrimmer. -
Method Summary
Modifier and TypeMethodDescriptiontrimMap(org.zkoss.zul.Tree composedTypeTree, IntegrationObjectDefinition fullMap) 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.
-
Constructor Details
-
DefaultIntegrationObjectDefinitionTrimmer
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:IntegrationObjectDefinitionTrimmerGiven 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 ofIntegrationObjectDefinitionwhich is returned at the end.- Specified by:
trimMapin interfaceIntegrationObjectDefinitionTrimmer- 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
IntegrationObjectDefinitioncontaining the trimmed definition map of the full definition map.
-