ZfaPolicyRule<I> class abstract

A typed policy rule evaluated by PolicyGateMiddleware before next.

A rule names itself with id and decides evaluate the intent under the current ZfaMiddlewareContext. The built-in gate runs every rule in order and denies the intent at the first ZfaPolicyDecision.deny.

Constructors

ZfaPolicyRule()

Properties

hashCode → int
The hash code for this object.
no setterinherited
id → String
A stable identifier for this rule, surfaced on a denial.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

evaluate(I intent, ZfaMiddlewareContext ctx) → ZfaPolicyDecision
Decide whether intent may proceed under ctx.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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