Class DefaultTreeNodeDataSetGenerator
java.lang.Object
de.hybris.platform.integrationbackoffice.widgets.modeling.services.impl.DefaultTreeNodeDataSetGenerator
- All Implemented Interfaces:
TreeNodeDataSetGenerator
Default implementation of
TreeNodeDataSetGenerator.-
Constructor Summary
ConstructorsConstructorDescriptionDefaultTreeNodeDataSetGenerator(@NotNull ReadService readService, @NotNull AttributeDescriptorSubtypeService attributeDescriptorSubtypeService) Default constructor ofDefaultTreeNodeDataSetGenerator. -
Method Summary
Modifier and TypeMethodDescriptiongenerate(Set<AttributeDescriptorModel> attributes, List<AbstractListItemDTO> existingAttributes, Set<SubtypeData> subtypeDataSet, IntegrationMapKeyDTO parentKey) GeneratesTreeNodeDatafor provided attributes.generateInSelectedMode(List<AbstractListItemDTO> attributes, Set<SubtypeData> subtypeDataSet, IntegrationMapKeyDTO parentKey) GeneratesTreeNodeDatafor provided selected attributes.
-
Constructor Details
-
DefaultTreeNodeDataSetGenerator
public DefaultTreeNodeDataSetGenerator(@NotNull @NotNull ReadService readService, @NotNull @NotNull AttributeDescriptorSubtypeService attributeDescriptorSubtypeService) Default constructor ofDefaultTreeNodeDataSetGenerator.- Parameters:
readService- the service used to perform database queries.attributeDescriptorSubtypeService- the service to find the subtype of anAttributeDescriptorModel.
-
-
Method Details
-
generate
public Set<TreeNodeData> generate(Set<AttributeDescriptorModel> attributes, List<AbstractListItemDTO> existingAttributes, Set<SubtypeData> subtypeDataSet, IntegrationMapKeyDTO parentKey) Description copied from interface:TreeNodeDataSetGeneratorGeneratesTreeNodeDatafor provided attributes.- Specified by:
generatein interfaceTreeNodeDataSetGenerator- Parameters:
attributes- the set of attributes to generateTreeNodeDatafor.existingAttributes- the list of selected attributes.subtypeDataSet- the set of all attributes'SubtypeData.parentKey- the parent type instance of the attributes. Used to find theSubtypeDataof the attributes within the subtypeDataSet.- Returns:
- a set of
TreeNodeData.
-
generateInSelectedMode
public Set<TreeNodeData> generateInSelectedMode(List<AbstractListItemDTO> attributes, Set<SubtypeData> subtypeDataSet, IntegrationMapKeyDTO parentKey) Description copied from interface:TreeNodeDataSetGeneratorGeneratesTreeNodeDatafor provided selected attributes.- Specified by:
generateInSelectedModein interfaceTreeNodeDataSetGenerator- Parameters:
attributes- the list of selected attributes.subtypeDataSet- the set of all attributes'SubtypeData.parentKey- the parent type instance of the attributes. Used to find theSubtypeDataof the attributes within the subtypeDataSet.- Returns:
- a set of
TreeNodeData.
-