Class DefaultAttributeDescriptorSubtypeService
java.lang.Object
de.hybris.platform.integrationbackoffice.widgets.modeling.services.impl.DefaultAttributeDescriptorSubtypeService
- All Implemented Interfaces:
AttributeDescriptorSubtypeService
public class DefaultAttributeDescriptorSubtypeService
extends Object
implements AttributeDescriptorSubtypeService
Default implementation of
AttributeDescriptorSubtypeService.-
Constructor Summary
ConstructorsConstructorDescriptionDefaultAttributeDescriptorSubtypeService(@NotNull ReadService readService, @NotNull DataStructureBuilder dataStructureBuilder) Default constructor ofDefaultAttributeDescriptorSubtypeService. -
Method Summary
Modifier and TypeMethodDescriptionfindSubtype(AttributeDescriptorModel attributeDescriptor, Set<SubtypeData> subtypeDataSet, IntegrationMapKeyDTO parentKeyDTO) Finds the subtype of anAttributeDescriptorModel.
-
Constructor Details
-
DefaultAttributeDescriptorSubtypeService
public DefaultAttributeDescriptorSubtypeService(@NotNull @NotNull ReadService readService, @NotNull @NotNull DataStructureBuilder dataStructureBuilder) Default constructor ofDefaultAttributeDescriptorSubtypeService.- Parameters:
readService- the service used to perform database queries.dataStructureBuilder- the service used to perform data structure operations.
-
-
Method Details
-
findSubtype
public ComposedTypeModel findSubtype(AttributeDescriptorModel attributeDescriptor, Set<SubtypeData> subtypeDataSet, IntegrationMapKeyDTO parentKeyDTO) Description copied from interface:AttributeDescriptorSubtypeServiceFinds the subtype of anAttributeDescriptorModel.- Specified by:
findSubtypein interfaceAttributeDescriptorSubtypeService- Parameters:
attributeDescriptor- theAttributeDescriptorModelthat may have a subtype.subtypeDataSet- the set of all attributes'SubtypeData.parentKeyDTO- the parent type instance of the attribute. Used to find theSubtypeDataof the attribute within the subtypeDataSet.- Returns:
- the subtype of the
AttributeDescriptorModel. If theAttributeDescriptorModeldoesn't have a subtype, its complex type will be returned instead. Both are represented by aComposedTypeModel.
-