@absolunet/ioc2.1.0

View on GitHub

Policy

Abstract policy class.

Members

name :string

Source:
Policy name.

Methods

(abstract) passes(…parameters)

Source:
Test if the policy passes.
Parameters:
Name Type Attributes Description
parameters * <repeatable>
The given parameters.
Returns:
Indicates that the policy passed.
Type
boolean

fails(…parameters)

Source:
See:
Test if the policy fails.
Parameters:
Name Type Attributes Description
parameters * <repeatable>
The given parameters.
Returns:
Indicates that the policy failed.
Type
boolean