Class CartModificationDataErrorConverter
java.lang.Object
de.hybris.platform.converters.impl.AbstractConverter<Object,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<Object,,List<ErrorWsDTO>> Converter<Object,,List<ErrorWsDTO>> org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.InitializingBean,org.springframework.core.convert.converter.Converter<Object,List<ErrorWsDTO>>
Converts
CartModificationData to a list of
ErrorWsDTO.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated, for removal: This API element is subject to removal in a future version.since 2011.static final StringDeprecated, for removal: This API element is subject to removal in a future version.since 2011.static final Stringstatic final StringDeprecated, for removal: This API element is subject to removal in a future version.since 2011.static final StringDeprecated, for removal: This API element is subject to removal in a future version.since 2011.static final StringDeprecated, for removal: This API element is subject to removal in a future version.since 2011.static final Stringstatic final Stringstatic final StringDeprecated, for removal: This API element is subject to removal in a future version.since 2011.static final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetLowStockMessage(CartModificationData cartModification, Locale locale) Deprecated, for removal: This API element is subject to removal in a future version.since 2011.protected StringgetMessage(CartModificationData cartModification) protected StringgetNoStockMessage(CartModificationData cartModification, Locale locale) Deprecated, for removal: This API element is subject to removal in a future version.since 2011.voidpopulate(Object obj, 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) booleanMethods inherited from class de.hybris.platform.webservicescommons.errors.converters.AbstractLocalizedErrorConverter
getMessage, getMessage, getMessage, getMessage, setMessageSourceMethods inherited from class de.hybris.platform.webservicescommons.errors.converters.AbstractErrorConverter
createTargetElementMethods inherited from class de.hybris.platform.converters.impl.AbstractConverter
afterPropertiesSet, convert, convert, createFromClass, createTarget, getMyBeanName, setBeanName, setTargetClassMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.servicelayer.dto.converter.Converter
convertAll, convertAllIgnoreExceptions, getLoggerMethods inherited from interface org.springframework.core.convert.converter.Converter
andThen
-
Field Details
-
TYPE_STOCK
- See Also:
-
TYPE
Deprecated, for removal: This API element is subject to removal in a future version.since 2011. Please useTYPE_STOCKinstead- See Also:
-
TYPE_OTHER
- See Also:
-
SUBJECT_TYPE_ENTRY
- See Also:
-
SUBJECT_TYPE_PRODUCT
- See Also:
-
SUBJECT_TYPE
Deprecated, for removal: This API element is subject to removal in a future version.since 2011. Please useSUBJECT_TYPE_ENTRYinstead- See Also:
-
NO_STOCK
Deprecated, for removal: This API element is subject to removal in a future version.since 2011. Please useCommerceCartModificationStatus.NO_STOCKinstead- See Also:
-
LOW_STOCK
Deprecated, for removal: This API element is subject to removal in a future version.since 2011. Please useCommerceCartModificationStatus.LOW_STOCKinstead- See Also:
-
NO_STOCK_MESSAGE
Deprecated, 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:
-
LOW_STOCK_MESSAGE
Deprecated, 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:
-
MSG_KEY_PREFIX
- See Also:
-
-
Constructor Details
-
CartModificationDataErrorConverter
public CartModificationDataErrorConverter()
-
-
Method Details
-
supports
- Specified by:
supportsin classAbstractErrorConverter
-
populate
Description copied from class:AbstractConverterOverride this method to populate the target from the source- Specified by:
populatein interfacePopulator<Object,List<ErrorWsDTO>> - Specified by:
populatein classAbstractConverter<Object,List<ErrorWsDTO>> - Parameters:
obj- the source instancewebserviceErrorList- the target instance to fill- See Also:
-
getNoStockMessage
@Deprecated(since="2011", forRemoval=true) protected String getNoStockMessage(CartModificationData cartModification, 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 String getLowStockMessage(CartModificationData cartModification, 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
-
populateSubject
-
getMessage
-
setCommerceCommonI18NService
-