org.openregistry.core.web
Class SpringErrorValidationErrorConverter
java.lang.Object
org.openregistry.core.web.SpringErrorValidationErrorConverter
@Named(value="springErrorValidationErrorConverter")
public final class SpringErrorValidationErrorConverter
- extends java.lang.Object
Converts the OpenRegistry Validation Errors to the Spring Validation Errors.
- Since:
- 1.0.0
- Version:
- $Revision$ $Date$
- Author:
- Scott Battaglia, Nancy Mond
|
Method Summary |
void |
convertValidationErrors(java.util.Set<javax.validation.ConstraintViolation> validationErrors,
org.springframework.validation.Errors errors)
Converts the validation errors returned from the PersonService into
Spring Errors. |
void |
convertValidationErrors(java.util.Set<javax.validation.ConstraintViolation> validationErrors,
org.springframework.binding.message.MessageContext messages)
Converts the validation errors returned from the PersonService into
Spring MessageContext for Spring Web flow. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpringErrorValidationErrorConverter
public SpringErrorValidationErrorConverter()
convertValidationErrors
public void convertValidationErrors(java.util.Set<javax.validation.ConstraintViolation> validationErrors,
org.springframework.validation.Errors errors)
- Converts the validation errors returned from the
PersonService into
Spring Errors.
- Parameters:
validationErrors - the errors provided by the PersonServiceerrors - an instance of Spring's Errors
convertValidationErrors
public void convertValidationErrors(java.util.Set<javax.validation.ConstraintViolation> validationErrors,
org.springframework.binding.message.MessageContext messages)
- Converts the validation errors returned from the
PersonService into
Spring MessageContext for Spring Web flow.
- Parameters:
validationErrors - the errors provided by the PersonServicemessages - an instance of Spring's MessageContext
Copyright © 2009-2012 JA-SIG, Inc.. All Rights Reserved.