Skip to main content
Version: 4.x (latest)

MySQLRoleAdapter

rbac-v4-workspace


Class: MySQLRoleAdapter<P>

Type Parameters​

P​

P = unknown

Implements​

Constructors​

Constructor​

new MySQLRoleAdapter<P>(options): MySQLRoleAdapter<P>

Parameters​

options​

MySQLAdapterOptions

Returns​

MySQLRoleAdapter<P>

Methods​

addRole()​

addRole(roleName, role, tenantId?): Promise<void>

Parameters​

roleName​

string

role​

Role<P>

tenantId?​

string

Returns​

Promise<void>

Implementation of​

RoleAdapter.addRole


getRoles()​

getRoles(tenantId?): Promise<Roles<P>>

Parameters​

tenantId?​

string

Returns​

Promise<Roles<P>>

Implementation of​

RoleAdapter.getRoles


updateRoles()​

updateRoles(roles, tenantId?): Promise<void>

Parameters​

roles​

Roles<P>

tenantId?​

string

Returns​

Promise<void>

Implementation of​

RoleAdapter.updateRoles