Class TmaPlaceValidator
- java.lang.Object
-
- de.hybris.platform.b2ctelcotmfwebservices.validators.TmaPlaceValidator
-
- All Implemented Interfaces:
org.springframework.validation.Validator
public class TmaPlaceValidator extends java.lang.Object implements org.springframework.validation.ValidatorValidator forPlace.- Since:
- 1911
-
-
Constructor Summary
Constructors Constructor Description TmaPlaceValidator()
-
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 voidvalidateRole(Place 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
-
validateRole
protected void validateRole(Place 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
-
-