public class DefaultValidationContext extends java.lang.Object implements ValidationContext
| Constructor and Description |
|---|
DefaultValidationContext(RequestContext requestContext,
java.lang.String eventId,
MappingResults mappingResults) |
| Modifier and Type | Method and Description |
|---|---|
MessageContext |
getMessageContext()
A context for adding failure messages to display to the user directly.
|
java.lang.String |
getUserEvent()
The current user event that triggered validation.
|
java.security.Principal |
getUserPrincipal()
The current user.
|
java.lang.Object |
getUserValue(java.lang.String property)
Obtain the value entered by the current user in the UI field bound to the property provided.
|
public DefaultValidationContext(RequestContext requestContext, java.lang.String eventId, MappingResults mappingResults)
public MessageContext getMessageContext()
ValidationContextgetMessageContext in interface ValidationContextpublic java.lang.String getUserEvent()
ValidationContextgetUserEvent in interface ValidationContextpublic java.security.Principal getUserPrincipal()
ValidationContextgetUserPrincipal in interface ValidationContextpublic java.lang.Object getUserValue(java.lang.String property)
ValidationContextgetUserValue in interface ValidationContextproperty - the name of a bound property