Class TmaCartEntryPlaceValidator
java.lang.Object
de.hybris.platform.b2ctelcocommercewebservicescommons.validator.TmaCartEntryPlaceValidator
- All Implemented Interfaces:
org.springframework.validation.Validator
public class TmaCartEntryPlaceValidator
extends Object
implements org.springframework.validation.Validator
Validator for
PlaceWsDTO.- Since:
- 1911
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidprotected voidvalidatePlaces(OrderEntryWsDTO cartItem, org.springframework.validation.Errors errors) Checks that all the places on product are valid.protected voidvalidateRole(PlaceWsDTO place, org.springframework.validation.Errors errors) Checks that the place has a role and that role is of typeTmaPlaceRoleType.
-
Constructor Details
-
TmaCartEntryPlaceValidator
public TmaCartEntryPlaceValidator()
-
-
Method Details
-
supports
- Specified by:
supportsin interfaceorg.springframework.validation.Validator
-
validate
- Specified by:
validatein interfaceorg.springframework.validation.Validator
-
validatePlaces
protected void validatePlaces(OrderEntryWsDTO cartItem, org.springframework.validation.Errors errors) Checks that all the places on product are valid.- Parameters:
cartItem- the cart itemerrors- the errors found
-
validateRole
Checks that the place has a role and that role is of typeTmaPlaceRoleType.- Parameters:
place- the placeerrors- the errors found
-