@Component(value="blEntityFormValidator") public class EntityFormValidator extends Object
| Constructor and Description |
|---|
EntityFormValidator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
validate(EntityForm form,
Entity entity,
org.springframework.validation.Errors errors)
Validates the form DTO against the passed in entity
|
boolean |
validate(EntityForm form,
Map<String,List<String>> propertyErrors,
org.springframework.validation.Errors errors)
Validates the DTO against the map of property errors.
|
boolean |
validate(EntityForm form,
Map<String,List<String>> propertyErrors,
List<String> globalErrors,
org.springframework.validation.Errors errors)
Validates the form DTO against the passed in map of propertyErrors along with global validation errors.
|
public boolean validate(EntityForm form, Map<String,List<String>> propertyErrors, org.springframework.validation.Errors errors)
Entity.getGlobalValidationErrors() as they might not make sense.form - propertyErrors - errors - public boolean validate(EntityForm form, Map<String,List<String>> propertyErrors, List<String> globalErrors, org.springframework.validation.Errors errors)
form - propertyErrors - globalErrors - errors - validate(EntityForm, Entity, Errors)public boolean validate(EntityForm form, Entity entity, org.springframework.validation.Errors errors)
form - the form DTOentity - value obtained after attempting to save via AdminEntityService#updateEntity(EntityForm, String)Copyright © 2015. All rights reserved.