Class CmsStructureEnumTypeComponentTypeAttributePopulator
- java.lang.Object
-
- de.hybris.platform.cmsfacades.types.populator.CmsStructureEnumTypeComponentTypeAttributePopulator
-
- All Implemented Interfaces:
Populator<AttributeDescriptorModel,ComponentTypeAttributeData>
public class CmsStructureEnumTypeComponentTypeAttributePopulator extends java.lang.Object implements Populator<AttributeDescriptorModel,ComponentTypeAttributeData>
Populator aimed at setting all necessary information for the receiving end to build a dropdown widget for aHybrisEnumValue
-
-
Constructor Summary
Constructors Constructor Description CmsStructureEnumTypeComponentTypeAttributePopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AttributeDescriptorModelHelperServicegetAttributeDescriptorModelHelperService()protected java.util.List<java.lang.String>getEnumConstantsFromClass(java.lang.Class enumClass)This method returns the possible constants (keys) of the enumeration described by the provided class.protected EnumerationServicegetEnumerationService()protected java.lang.StringgetPrefix()protected java.lang.StringgetSuffix()voidpopulate(AttributeDescriptorModel source, ComponentTypeAttributeData target)Populate the target instance with values from the source instance.voidsetAttributeDescriptorModelHelperService(AttributeDescriptorModelHelperService attributeDescriptorModelHelperService)voidsetEnumerationService(EnumerationService enumerationService)voidsetPrefix(java.lang.String prefix)voidsetSuffix(java.lang.String suffix)
-
-
-
Method Detail
-
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
protected java.util.List<java.lang.String> getEnumConstantsFromClass(java.lang.Class enumClass)
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
protected AttributeDescriptorModelHelperService getAttributeDescriptorModelHelperService()
-
setAttributeDescriptorModelHelperService
public void setAttributeDescriptorModelHelperService(AttributeDescriptorModelHelperService attributeDescriptorModelHelperService)
-
getPrefix
protected java.lang.String getPrefix()
-
setPrefix
public void setPrefix(java.lang.String prefix)
-
getSuffix
protected java.lang.String getSuffix()
-
setSuffix
public void setSuffix(java.lang.String suffix)
-
getEnumerationService
protected EnumerationService getEnumerationService()
-
setEnumerationService
public void setEnumerationService(EnumerationService enumerationService)
-
-