Interface for actor objects.
Members
-
<readonly> id :string|number
-
The shortest possible unique identification of the actor (such as the user id, for example).
Type:
- string | number
-
<readonly> stamp :string|number
-
Actor stamp, which is a string or number that identifies the actor in various historical records, such as logs, record modification histories, etc. It can be, for example, a user login name or a user account id.
Type:
- string | number
Methods
-
hasRole(role)
-
Tell if the actor has the specified role.
Parameters:
Name Type Description role
string The role name. Returns:
true
if the actor has the role.- Type
- boolean