Class CartModificationDataErrorConverter
- java.lang.Object
-
- de.hybris.platform.converters.impl.AbstractConverter<java.lang.Object,java.util.List<ErrorWsDTO>>
-
- de.hybris.platform.webservicescommons.errors.converters.AbstractErrorConverter
-
- de.hybris.platform.webservicescommons.errors.converters.AbstractLocalizedErrorConverter
-
- de.hybris.platform.ycommercewebservices.errors.converters.CartModificationDataErrorConverter
-
- All Implemented Interfaces:
Populator<java.lang.Object,java.util.List<ErrorWsDTO>>,Converter<java.lang.Object,java.util.List<ErrorWsDTO>>,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.InitializingBean,org.springframework.core.convert.converter.Converter<java.lang.Object,java.util.List<ErrorWsDTO>>
public class CartModificationDataErrorConverter extends AbstractLocalizedErrorConverter
ConvertsCartModificationDatato a list ofErrorWsDTO.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringLOW_STOCKDeprecated, for removal: This API element is subject to removal in a future version.since 2011.static java.lang.StringLOW_STOCK_MESSAGEDeprecated, for removal: This API element is subject to removal in a future version.since 2011.static java.lang.StringMSG_KEY_PREFIXstatic java.lang.StringNO_STOCKDeprecated, for removal: This API element is subject to removal in a future version.since 2011.static java.lang.StringNO_STOCK_MESSAGEDeprecated, for removal: This API element is subject to removal in a future version.since 2011.static java.lang.StringSUBJECT_TYPEDeprecated, for removal: This API element is subject to removal in a future version.since 2011.static java.lang.StringSUBJECT_TYPE_ENTRYstatic java.lang.StringSUBJECT_TYPE_PRODUCTstatic java.lang.StringTYPEDeprecated, for removal: This API element is subject to removal in a future version.since 2011.static java.lang.StringTYPE_OTHERstatic java.lang.StringTYPE_STOCK
-
Constructor Summary
Constructors Constructor Description CartModificationDataErrorConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected java.lang.StringgetLowStockMessage(CartModificationData cartModification, java.util.Locale locale)Deprecated, for removal: This API element is subject to removal in a future version.since 2011.protected java.lang.StringgetMessage(CartModificationData cartModification)protected java.lang.StringgetNoStockMessage(CartModificationData cartModification, java.util.Locale locale)Deprecated, for removal: This API element is subject to removal in a future version.since 2011.voidpopulate(java.lang.Object obj, java.util.List<ErrorWsDTO> webserviceErrorList)Override this method to populate the target from the sourceprotected voidpopulateMessage(CartModificationData cartModification, ErrorWsDTO errorDto)protected voidpopulateSubject(CartModificationData cartModification, ErrorWsDTO errorDto)voidsetCommerceCommonI18NService(CommerceCommonI18NService commerceCommonI18NService)booleansupports(java.lang.Class clazz)-
Methods inherited from class de.hybris.platform.webservicescommons.errors.converters.AbstractLocalizedErrorConverter
getMessage, getMessage, getMessage, getMessage, setMessageSource
-
Methods inherited from class de.hybris.platform.webservicescommons.errors.converters.AbstractErrorConverter
createTargetElement
-
Methods inherited from class de.hybris.platform.converters.impl.AbstractConverter
afterPropertiesSet, convert, convert, createFromClass, createTarget, getMyBeanName, setBeanName, setTargetClass
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.servicelayer.dto.converter.Converter
convertAll, convertAllIgnoreExceptions, getLogger
-
-
-
-
Field Detail
-
TYPE_STOCK
public static final java.lang.String TYPE_STOCK
- See Also:
- Constant Field Values
-
TYPE
@Deprecated(since="2011", forRemoval=true) public static final java.lang.String TYPEDeprecated, for removal: This API element is subject to removal in a future version.since 2011. Please useTYPE_STOCKinstead- See Also:
- Constant Field Values
-
TYPE_OTHER
public static final java.lang.String TYPE_OTHER
- See Also:
- Constant Field Values
-
SUBJECT_TYPE_ENTRY
public static final java.lang.String SUBJECT_TYPE_ENTRY
- See Also:
- Constant Field Values
-
SUBJECT_TYPE_PRODUCT
public static final java.lang.String SUBJECT_TYPE_PRODUCT
- See Also:
- Constant Field Values
-
SUBJECT_TYPE
@Deprecated(since="2011", forRemoval=true) public static final java.lang.String SUBJECT_TYPEDeprecated, for removal: This API element is subject to removal in a future version.since 2011. Please useSUBJECT_TYPE_ENTRYinstead- See Also:
- Constant Field Values
-
NO_STOCK
@Deprecated(since="2011", forRemoval=true) public static final java.lang.String NO_STOCKDeprecated, for removal: This API element is subject to removal in a future version.since 2011. Please useCommerceCartModificationStatus.NO_STOCKinstead- See Also:
- Constant Field Values
-
LOW_STOCK
@Deprecated(since="2011", forRemoval=true) public static final java.lang.String LOW_STOCKDeprecated, for removal: This API element is subject to removal in a future version.since 2011. Please useCommerceCartModificationStatus.LOW_STOCKinstead- See Also:
- Constant Field Values
-
NO_STOCK_MESSAGE
@Deprecated(since="2011", forRemoval=true) public static final java.lang.String NO_STOCK_MESSAGEDeprecated, for removal: This API element is subject to removal in a future version.since 2011. Please useMSG_KEY_PREFIXfollowed by reason, for example:CommerceCartModificationStatus.NO_STOCK- See Also:
- Constant Field Values
-
LOW_STOCK_MESSAGE
@Deprecated(since="2011", forRemoval=true) public static final java.lang.String LOW_STOCK_MESSAGEDeprecated, for removal: This API element is subject to removal in a future version.since 2011. Please useMSG_KEY_PREFIXfollowed by reason, for example:CommerceCartModificationStatus.LOW_STOCK- See Also:
- Constant Field Values
-
MSG_KEY_PREFIX
public static final java.lang.String MSG_KEY_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
supports
public boolean supports(java.lang.Class clazz)
- Specified by:
supportsin classAbstractErrorConverter
-
populate
public void populate(java.lang.Object obj, java.util.List<ErrorWsDTO> webserviceErrorList)Description copied from class:AbstractConverterOverride this method to populate the target from the source- Specified by:
populatein interfacePopulator<java.lang.Object,java.util.List<ErrorWsDTO>>- Specified by:
populatein classAbstractConverter<java.lang.Object,java.util.List<ErrorWsDTO>>- Parameters:
obj- the source instancewebserviceErrorList- the target instance to fill- See Also:
AbstractConverter.setTargetClass(Class)
-
getNoStockMessage
@Deprecated(since="2011", forRemoval=true) protected java.lang.String getNoStockMessage(CartModificationData cartModification, java.util.Locale locale)Deprecated, for removal: This API element is subject to removal in a future version.since 2011. Please usegetMessage(de.hybris.platform.commercefacades.order.data.CartModificationData)instead
-
getLowStockMessage
@Deprecated(since="2011", forRemoval=true) protected java.lang.String getLowStockMessage(CartModificationData cartModification, java.util.Locale locale)Deprecated, for removal: This API element is subject to removal in a future version.since 2011. Please usegetMessage(de.hybris.platform.commercefacades.order.data.CartModificationData)instead
-
populateMessage
protected void populateMessage(CartModificationData cartModification, ErrorWsDTO errorDto)
-
populateSubject
protected void populateSubject(CartModificationData cartModification, ErrorWsDTO errorDto)
-
getMessage
protected java.lang.String getMessage(CartModificationData cartModification)
-
setCommerceCommonI18NService
public void setCommerceCommonI18NService(CommerceCommonI18NService commerceCommonI18NService)
-
-