Class CmsStructureEnumTypeComponentTypeAttributePopulator
java.lang.Object
de.hybris.platform.cmsfacades.types.populator.CmsStructureEnumTypeComponentTypeAttributePopulator
- All Implemented Interfaces:
Populator<AttributeDescriptorModel,ComponentTypeAttributeData>
public class CmsStructureEnumTypeComponentTypeAttributePopulator
extends Object
implements Populator<AttributeDescriptorModel,ComponentTypeAttributeData>
Populator aimed at setting all necessary information for the receiving end to build a dropdown widget for a
HybrisEnumValue-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected AttributeDescriptorModelHelperServicegetEnumConstantsFromClass(Class enumClass) This method returns the possible constants (keys) of the enumeration described by the provided class.protected EnumerationServiceprotected Stringprotected Stringvoidpopulate(AttributeDescriptorModel source, ComponentTypeAttributeData target) Populate the target instance with values from the source instance.voidsetAttributeDescriptorModelHelperService(AttributeDescriptorModelHelperService attributeDescriptorModelHelperService) voidsetEnumerationService(EnumerationService enumerationService) voidvoid
-
Constructor Details
-
CmsStructureEnumTypeComponentTypeAttributePopulator
public CmsStructureEnumTypeComponentTypeAttributePopulator()
-
-
Method Details
-
populate
public void populate(AttributeDescriptorModel source, ComponentTypeAttributeData target) throws ConversionException Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Specified by:
populatein interfacePopulator<AttributeDescriptorModel,ComponentTypeAttributeData> - Parameters:
source- the source objecttarget- the target to fill- Throws:
ConversionException- if an error occurs
-
getEnumConstantsFromClass
This method returns the possible constants (keys) of the enumeration described by the provided class. For Java enums, these are the enum constants. For Hybris enums, these are the enum codes.- Parameters:
enumClass- The class the defines the enumeration to analyze.- Returns:
- List with the enumeration constants.
-
getAttributeDescriptorModelHelperService
-
setAttributeDescriptorModelHelperService
public void setAttributeDescriptorModelHelperService(AttributeDescriptorModelHelperService attributeDescriptorModelHelperService) -
getPrefix
-
setPrefix
-
getSuffix
-
setSuffix
-
getEnumerationService
-
setEnumerationService
-