Class TmaCartEntryPlaceValidator
- java.lang.Object
-
- de.hybris.platform.b2ctelcooccaddon.validator.TmaCartEntryPlaceValidator
-
- All Implemented Interfaces:
org.springframework.validation.Validator
public class TmaCartEntryPlaceValidator extends java.lang.Object implements org.springframework.validation.ValidatorValidator forPlaceWsDTO.- Since:
- 1911
-
-
Constructor Summary
Constructors Constructor Description TmaCartEntryPlaceValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleansupports(java.lang.Class<?> aClass)voidvalidate(java.lang.Object object, org.springframework.validation.Errors errors)protected 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.
-
-
-
Method Detail
-
supports
public boolean supports(java.lang.Class<?> aClass)
- Specified by:
supportsin interfaceorg.springframework.validation.Validator
-
validate
public void validate(java.lang.Object object, org.springframework.validation.Errors errors)- 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
protected void validateRole(PlaceWsDTO place, org.springframework.validation.Errors errors)
Checks that the place has a role and that role is of typeTmaPlaceRoleType.- Parameters:
place- the placeerrors- the errors found
-
-