org.openregistry.core.web
Class SpringErrorValidationErrorConverter

java.lang.Object
  extended by 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

Constructor Summary
SpringErrorValidationErrorConverter()
           
 
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
 

Constructor Detail

SpringErrorValidationErrorConverter

public SpringErrorValidationErrorConverter()
Method Detail

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 PersonService
errors - 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 PersonService
messages - an instance of Spring's MessageContext


Copyright © 2009-2012 JA-SIG, Inc.. All Rights Reserved.