MyDepartmentValidator class

Validador para departamentos específicos Permite configurar departamentos permitidos y nivel requerido

Inheritance

Constructors

MyDepartmentValidator.new({required List<String> allowedDepartments, bool requireManagerLevel = false})
const

Properties

allowedDepartments List<String>
final
defaultErrorMessage String
Mensaje de error por defecto cuando la validación falla
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
requireManagerLevel bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onValidationFailed(Request request, Map<String, dynamic> jwtPayload, String reason) → void
Callback opcional ejecutado cuando la validación falla
inherited
onValidationSuccess(Request request, Map<String, dynamic> jwtPayload) → void
Callback opcional ejecutado cuando la validación es exitosa
override
toString() String
A string representation of this object.
inherited
validate(Request request, Map<String, dynamic> jwtPayload) ValidationResult
Método obligatorio que implementa la lógica de validación
override

Operators

operator ==(Object other) bool
The equality operator.
inherited