Class TmaShoppingCartCreateValidator
java.lang.Object
de.hybris.platform.b2ctelcotmfwebservices.validators.TmaShoppingCartValidator
de.hybris.platform.b2ctelcotmfwebservices.validators.TmaShoppingCartCreateValidator
- All Implemented Interfaces:
org.springframework.validation.Validator
public class TmaShoppingCartCreateValidator
extends TmaShoppingCartValidator
implements org.springframework.validation.Validator
Validator for
ShoppingCart.- Since:
- 1907
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TmaCartItemValidatorvoidsetCartItemValidator(TmaCartItemValidator cartItemValidator) booleanvoidprotected voidvalidateDeliveryMode(DeliveryModeRef deliveryMode, org.springframework.validation.Errors errors) Checks if delivery mode is correct.protected voidvalidatePaymentMethod(List<PaymentMethodRef> paymentMethodRef, org.springframework.validation.Errors errors) Checks if payment method is correct.protected voidvalidatePlace(List<Place> places, org.springframework.validation.Errors errors) Checks if place is correct.protected voidvalidateRelatedParty(List<RelatedPartyRef> relatedPartyRefList, org.springframework.validation.Errors errors) Checks if related party is correct.Methods inherited from class de.hybris.platform.b2ctelcotmfwebservices.validators.TmaShoppingCartValidator
validatePaymentMethodList
-
Constructor Details
-
TmaShoppingCartCreateValidator
public TmaShoppingCartCreateValidator()
-
-
Method Details
-
supports
- Specified by:
supportsin interfaceorg.springframework.validation.Validator
-
validate
- Specified by:
validatein interfaceorg.springframework.validation.Validator
-
validatePaymentMethod
protected void validatePaymentMethod(List<PaymentMethodRef> paymentMethodRef, org.springframework.validation.Errors errors) Checks if payment method is correct.- Parameters:
paymentMethodRef- payment method referenceerrors- the errors found
-
validatePlace
Checks if place is correct.- Parameters:
places- place referenceerrors- the errors found
-
validateDeliveryMode
protected void validateDeliveryMode(DeliveryModeRef deliveryMode, org.springframework.validation.Errors errors) Checks if delivery mode is correct.- Parameters:
deliveryMode- the delivery modeerrors- the errors found
-
validateRelatedParty
protected void validateRelatedParty(List<RelatedPartyRef> relatedPartyRefList, org.springframework.validation.Errors errors) Checks if related party is correct.- Parameters:
relatedPartyRefList- related party reference listerrors- the errors found
-
getCartItemValidator
-
setCartItemValidator
-