public abstract class GroupValidator extends Object implements EntityValidator<org.jboss.errai.security.shared.api.Group>
The base validator class for a Group 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 |
|---|
GroupValidator() |
| Modifier and Type | Method and Description |
|---|---|
abstract String |
getMessage(String key) |
Set<javax.validation.ConstraintViolation<org.jboss.errai.security.shared.api.Group>> |
validate(org.jboss.errai.security.shared.api.Group entity)
Validates the given entity.
|
public static final String KEY_NAME_NOT_EMPTY
public Set<javax.validation.ConstraintViolation<org.jboss.errai.security.shared.api.Group>> validate(org.jboss.errai.security.shared.api.Group entity)
EntityValidatorValidates the given entity.
validate in interface EntityValidator<org.jboss.errai.security.shared.api.Group>entity - The entity instance to validate.Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.