IAccessInfo
Defined in: src/types/IAccessInfo.ts:10
An interface that defines an access information to be granted or denied.
When you start a method chain with AccessControl#grant or
AccessControl#deny methods, you’re actually building this object which
will eventually be committed to the underlying grants model.
Properties
Section titled “Properties”
optionalrole?:string|string[]
Defined in: src/types/IAccessInfo.ts:14
Indicates a single or multiple roles for this access information.
resource?
Section titled “resource?”
optionalresource?:string|string[]
Defined in: src/types/IAccessInfo.ts:19
Indicates a single or multiple target resources for this access information.
attributes?
Section titled “attributes?”
optionalattributes?:string|string[]
Defined in: src/types/IAccessInfo.ts:24
Defines the resource attributes which are granted. If denied, this will default to an empty array.
action?
Section titled “action?”
optionalaction?:string
Defined in: src/types/IAccessInfo.ts:29
Defines the type of the operation that is (or not) to be performed on the resource(s) by the defined role(s).
possession?
Section titled “possession?”
optionalpossession?:Possession
Defined in: src/types/IAccessInfo.ts:34
Defines the possession of the resource(s) for the specified action. for possible values.
condition?
Section titled “condition?”
optionalcondition?:ConditionJSON
Defined in: src/types/IAccessInfo.ts:38
Optional declarative condition attached to this grant.