Class HybrisItemTypeValueConverter
java.lang.Object
de.hybris.platform.platformbackoffice.services.converters.impl.AbstractValueConverter
de.hybris.platform.platformbackoffice.services.converters.impl.HybrisItemTypeValueConverter
- All Implemented Interfaces:
BackofficeSavedQueryValueConverter
Converts compound value type
DataType.Type.COMPOUND where the
value is instance of ItemtypeType-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanHandle(com.hybris.cockpitng.dataaccess.facades.type.DataAttribute dataAttribute) convertValue(SavedQueryValue savedQueryValue, com.hybris.cockpitng.dataaccess.facades.type.DataAttribute dataAttribute) Converts savedQueryValue into object value.convertValue(Object value, com.hybris.cockpitng.dataaccess.facades.type.DataAttribute dataAttribute) Converts object into savedQueryValue - an object which holds value string representation and value metadata.voidsetModelService(ModelService modelService) Methods inherited from class de.hybris.platform.platformbackoffice.services.converters.impl.AbstractValueConverter
convertSimpleAtomicTypeValue, convertSimpleAtomicTypeValueToString, getLocaleCode, getLocaleFromCode, getLocalizedValue, getSavedQueryValueLocale, getValueLocale, isSimpleAtomicDataType
-
Constructor Details
-
HybrisItemTypeValueConverter
public HybrisItemTypeValueConverter()
-
-
Method Details
-
canHandle
public boolean canHandle(com.hybris.cockpitng.dataaccess.facades.type.DataAttribute dataAttribute) -
convertValue
public 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(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.
-
setModelService
-