PermissionsModule class

Module for role and permission management.

Constructors

PermissionsModule({required SpApi api})
Creates a PermissionsModule.
const

Properties

api → SpApi
The parent SpApi client.
final
hashCode → int
The hash code for this object.
no setterinherited
permissions → TableGateway<Map<String, dynamic>>
Table gateway for the sp_permissions table.
no setter
roles → TableGateway<Map<String, dynamic>>
Table gateway for the sp_roles table.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

assign(dynamic roleId, List permissionIds) → Future<Map<String, dynamic>>
Assigns permissions to a role via nested write.
detach(dynamic roleId, List permissionIds) → Future<Map<String, dynamic>>
Detaches permissions from a role via nested write with _delete: true.
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