|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.openmrs.validator.UserValidator
@Handler(supports=User.class,
order=50)
public class UserValidatorValidates attributes on the User object
| Field Summary | |
|---|---|
protected org.apache.commons.logging.Log |
log
Log for this class and subclasses |
| Constructor Summary | |
|---|---|
UserValidator()
|
|
| Method Summary | |
|---|---|
boolean |
isUserNameValid(java.lang.String username)
Convenience method to check the given username against the regular expression. |
boolean |
supports(java.lang.Class c)
Determines if the command object being submitted is a valid type |
void |
validate(java.lang.Object obj,
org.springframework.validation.Errors errors)
Checks the form object for any inconsistencies/errors |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.apache.commons.logging.Log log
| Constructor Detail |
|---|
public UserValidator()
| Method Detail |
|---|
public boolean supports(java.lang.Class c)
supports in interface org.springframework.validation.ValidatorValidator.supports(java.lang.Class)
public void validate(java.lang.Object obj,
org.springframework.validation.Errors errors)
validate in interface org.springframework.validation.ValidatorValidator.validate(java.lang.Object,
org.springframework.validation.Errors)public boolean isUserNameValid(java.lang.String username)
username - the username string to check
|
OpenMRS-1.7.x | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||