A set of permissions associated with a subject
Fields
-
string
uuid
Unique identifier/object reference
-
string
name_label
a short user-friendly name for the role
-
string
name_description
what this role is for
-
Set[role]
subroles
a list of pointers to other roles or permissions
Implicit messages
-
Record[role]
get_record
(session session_id, role self)
Get a record containing the current state of the given role.
-
role
get_by_uuid
(session session_id, string uuid)
Get a reference to the role instance with the specified UUID.
-
Set[role]
get_by_name_label
(session session_id, string label)
Get all the role instances with the given label.
-
Set[role]
get_all
(session session_id)
Return a list of all the roles known to the system.
-
Map[role,Record[role]]
get_all_records
(session session_id)
Return a map of role references to role records for all roles known to the system.
Explicit messages
-
Set[role]
get_permissions
(session session_id, role self)
This call returns a list of permissions given a role
-
Set[string]
get_permissions_name_label
(session session_id, role self)
This call returns a list of permission names given a role
-
Set[role]
get_by_permission
(session session_id, role permission)
This call returns a list of roles given a permission
-
Set[role]
get_by_permission_name_label
(session session_id, string label)
This call returns a list of roles given a permission name