Class RoleValidator

  • All Implemented Interfaces:
    EntityValidator<org.jboss.errai.security.shared.api.Role>

    public abstract class RoleValidator
    extends Object
    implements EntityValidator<org.jboss.errai.security.shared.api.Role>

    The base validator class for a Role entity based on JSR303 Bean 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.

    Since:
    0.8.0
    • Constructor Detail

      • RoleValidator

        public RoleValidator()
    • Method Detail

      • validate

        public Set<javax.validation.ConstraintViolation<org.jboss.errai.security.shared.api.Role>> validate​(org.jboss.errai.security.shared.api.Role entity)
        Description copied from interface: EntityValidator

        Validates the given entity.

        Specified by:
        validate in interface EntityValidator<org.jboss.errai.security.shared.api.Role>
        Parameters:
        entity - The entity instance to validate.
        Returns:
        The validation constraints collection produced.