Constructors
constructor
- new PermissionManager(storage): PermissionManager
-
Properties
Private
Readonly
storageManager
storageManager: any
Methods
addPermission
- addPermission(permissionInfo): Promise<void>
-
Returns Promise<void>
getPermission
- getPermission(accountIdentifier): Promise<undefined | PermissionInfo>
-
Parameters
-
accountIdentifier: string
Returns Promise<undefined | PermissionInfo>
getPermissions
- getPermissions(): Promise<PermissionInfo[]>
-
hasPermission
- hasPermission(message): Promise<boolean>
-
Returns Promise<boolean>
removeAllPermissions
- removeAllPermissions(): Promise<void>
-
Returns Promise<void>
removePermission
- removePermission(accountIdentifier): Promise<void>
-
Parameters
-
accountIdentifier: string
Returns Promise<void>
removePermissions
- removePermissions(accountIdentifiers): Promise<void>
-
Parameters
-
accountIdentifiers: string[]
Returns Promise<void>
Internalapi
The PermissionManager provides CRUD functionality for permission entities and persists them to the provided storage.