Class DefaultAttributeModePopulatorsProvider
java.lang.Object
de.hybris.platform.cmsfacades.types.service.impl.DefaultAttributeModePopulatorsProvider
- All Implemented Interfaces:
AttributeModePopulatorsProvider
public class DefaultAttributeModePopulatorsProvider
extends Object
implements AttributeModePopulatorsProvider
Default implementation of
AttributeModePopulatorsProvider.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddStructureTypeModeAttributePopulators(BiPredicate<AttributeDescriptorModel, StructureTypeMode> constrainedBy, List<Populator<AttributeDescriptorModel, ComponentTypeAttributeData>> attributePopulators) Adds new attribute structure type mode to the existing list of attribute structure per mode.getAttributePopulators(AttributeDescriptorModel attributeDescriptor, StructureTypeMode structureTypeMode) Given an attribute descriptor model and a StructureTypeMode, return the list of Populators for this attribute type defined in the configuration.protected List<StructureTypeModeAttributePopulators>voidsetAttributeStructureTypeModes(List<StructureTypeModeAttributePopulators> attributeStructureTypeModes)
-
Constructor Details
-
DefaultAttributeModePopulatorsProvider
public DefaultAttributeModePopulatorsProvider()
-
-
Method Details
-
getAttributePopulators
public List<Populator<AttributeDescriptorModel,ComponentTypeAttributeData>> getAttributePopulators(AttributeDescriptorModel attributeDescriptor, StructureTypeMode structureTypeMode) Description copied from interface:AttributeModePopulatorsProviderGiven an attribute descriptor model and a StructureTypeMode, return the list of Populators for this attribute type defined in the configuration.- Specified by:
getAttributePopulatorsin interfaceAttributeModePopulatorsProvider- Parameters:
attributeDescriptor- the attribute that will be tested to look for populators.structureTypeMode- theStructureTypeMode- Returns:
- the list of populators.
-
addStructureTypeModeAttributePopulators
public void addStructureTypeModeAttributePopulators(BiPredicate<AttributeDescriptorModel, StructureTypeMode> constrainedBy, List<Populator<AttributeDescriptorModel, ComponentTypeAttributeData>> attributePopulators) Description copied from interface:AttributeModePopulatorsProviderAdds new attribute structure type mode to the existing list of attribute structure per mode.- Specified by:
addStructureTypeModeAttributePopulatorsin interfaceAttributeModePopulatorsProvider- Parameters:
constrainedBy- the biPredicate that contrains the usage of the following populators.attributePopulators- the attribute populators that will be applied if the corresponding biPredicate is true.
-
getAttributeStructureTypeModes
-
setAttributeStructureTypeModes
public void setAttributeStructureTypeModes(List<StructureTypeModeAttributePopulators> attributeStructureTypeModes)
-