Class HybrisEnumValueConverter
- java.lang.Object
-
- de.hybris.platform.platformbackoffice.services.converters.impl.AbstractValueConverter
-
- de.hybris.platform.platformbackoffice.services.converters.impl.HybrisEnumValueConverter
-
- All Implemented Interfaces:
BackofficeSavedQueryValueConverter
public class HybrisEnumValueConverter extends AbstractValueConverter
Converts enum type valueDataType.Type.ENUMwhere value is type ofHybrisEnumValue.
-
-
Constructor Summary
Constructors Constructor Description HybrisEnumValueConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanHandle(com.hybris.cockpitng.dataaccess.facades.type.DataAttribute dataAttribute)java.lang.ObjectconvertValue(SavedQueryValue savedQueryValue, com.hybris.cockpitng.dataaccess.facades.type.DataAttribute dataAttribute)Converts savedQueryValue into object value.SavedQueryValueconvertValue(java.lang.Object value, com.hybris.cockpitng.dataaccess.facades.type.DataAttribute dataAttribute)Converts object into savedQueryValue - an object which holds value string representation and value metadata.voidsetEnumerationService(EnumerationService enumerationService)-
Methods inherited from class de.hybris.platform.platformbackoffice.services.converters.impl.AbstractValueConverter
convertSimpleAtomicTypeValue, convertSimpleAtomicTypeValueToString, getLocaleCode, getLocaleFromCode, getLocalizedValue, getSavedQueryValueLocale, getValueLocale, isSimpleAtomicDataType
-
-
-
-
Method Detail
-
canHandle
public boolean canHandle(com.hybris.cockpitng.dataaccess.facades.type.DataAttribute dataAttribute)
-
convertValue
public java.lang.Object convertValue(SavedQueryValue savedQueryValue, com.hybris.cockpitng.dataaccess.facades.type.DataAttribute dataAttribute)
Description copied from interface:BackofficeSavedQueryValueConverterConverts savedQueryValue into object value.- Parameters:
savedQueryValue- an object which holds value string representation and value metadata.dataAttribute- attribute descriptor.- Returns:
- converted value or null if the conversion fails.
-
convertValue
public SavedQueryValue convertValue(java.lang.Object value, com.hybris.cockpitng.dataaccess.facades.type.DataAttribute dataAttribute)
Description copied from interface:BackofficeSavedQueryValueConverterConverts object into savedQueryValue - an object which holds value string representation and value metadata.- Parameters:
value- value to convert.dataAttribute- attribute descriptor.- Returns:
- string value representation with metadata or null if the conversion fails.
-
setEnumerationService
public void setEnumerationService(EnumerationService enumerationService)
-
-