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()
ValidationContext
getMessageContext
in interface ValidationContext
public java.lang.String getUserEvent()
ValidationContext
getUserEvent
in interface ValidationContext
public java.security.Principal getUserPrincipal()
ValidationContext
getUserPrincipal
in interface ValidationContext
public java.lang.Object getUserValue(java.lang.String property)
ValidationContext
getUserValue
in interface ValidationContext
property
- the name of a bound property