Class TmaSubscribedProductActionValidator
java.lang.Object
de.hybris.platform.b2ctelcocommercewebservicescommons.validator.TmaSubscribedProductActionValidator
- All Implemented Interfaces:
org.springframework.validation.Validator
public class TmaSubscribedProductActionValidator
extends Object
implements org.springframework.validation.Validator
Validates the subscribed product and offering attributes if the
OrderEntryWsDTO.getAction() is present.- Since:
- 1911
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidprotected voidvalidateRequiredInformationFor(OrderEntryWsDTO cartEntry, ActionTypeWsDTO actionType, org.springframework.validation.Errors errors) Checks that the subscribed product and offering are correctly set for the action found on the cartItem.
-
Constructor Details
-
TmaSubscribedProductActionValidator
public TmaSubscribedProductActionValidator()
-
-
Method Details
-
supports
- Specified by:
supportsin interfaceorg.springframework.validation.Validator
-
validate
- Specified by:
validatein interfaceorg.springframework.validation.Validator
-
validateRequiredInformationFor
protected void validateRequiredInformationFor(OrderEntryWsDTO cartEntry, ActionTypeWsDTO actionType, org.springframework.validation.Errors errors) Checks that the subscribed product and offering are correctly set for the action found on the cartItem.- Parameters:
cartEntry- the input cartItem
-