The RoleManager class is responsible for managing the roles of the current main identity.
Constructor for the RoleManager class.
The LeuteModel instance.
The roles to be managed.
Returns the role names that are available.
The role names that are available.
Returns the roles that are available.
The roles that are available.
Returns the roles that can be created.
The roles that can be created.
Returns the creatable roles for the current main identity.
The creatable roles for the current main identity.
Returns the role names that are currently available for the current main identity.
The role names that are currently available for the current main identity.
Returns
Returns the roles that can be created for the given person.
The person to check.
The roles that can be created for the given person.
Returns the role names that are available for the given person.
The role names that are available for the given person.
Returns the roles that are available for the given person.
The roles that are available for the given person.
Returns the role that is available.
The role to get.
The role that is available.
The roles to get.
Initializes the role manager.
A promise that resolves when the role manager is initialised.
Returns true if the given role can be created.
The role to check.
True if the given role can be created, false otherwise.
Returns true if the current main identity can create the given role.
True if the current main identity can create the given role, false otherwise.
Returns true if the current main identity has the role.
The role, role name or array of those to check.
True if the current main identity has the role, false otherwise.
Returns true if the given person can create the given role.
True if the given person can create the given role, false otherwise.
Returns true if the given person has the given role.
True if the given person has the given role, false otherwise.
Shuts down the role manager.
The RoleManager class is responsible for managing the roles of the current main identity.