public abstract class UserValidator extends Object implements EntityValidator<org.jboss.errai.security.shared.api.identity.User>
The base validator class for a User entity based on JSR303 Bean Validations.
Current validations:
This provides validation logic for both backend and client sides, but you have to provide an instantiable class that provides the error message descriptions for each validation error supported.
Modifier and Type | Field and Description |
---|---|
static String |
KEY_NAME_NOT_EMPTY |
Constructor and Description |
---|
UserValidator() |
Modifier and Type | Method and Description |
---|---|
abstract String |
getMessage(String key) |
Set<javax.validation.ConstraintViolation<org.jboss.errai.security.shared.api.identity.User>> |
validate(org.jboss.errai.security.shared.api.identity.User entity)
Validates the given entity.
|
public static final String KEY_NAME_NOT_EMPTY
public Set<javax.validation.ConstraintViolation<org.jboss.errai.security.shared.api.identity.User>> validate(org.jboss.errai.security.shared.api.identity.User entity)
EntityValidator
Validates the given entity.
validate
in interface EntityValidator<org.jboss.errai.security.shared.api.identity.User>
entity
- The entity instance to validate.Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.