class staticbo.system. UserInfo
Source: system/
Serves as the base class for user information object.
Property
Method
new UserInfo([userCode])
Creates a new user information object.
Parameter
Name | Type | Optional | Description |
---|---|---|---|
userCode |
string |
Yes |
The identifier of the user. |
- Throws
-
Argument error: The userCode must be a string or null.
Property
userCode string
The identifier of the user.
Method
abstractisInRole(role) → boolean
Abstract method to determine if the user is member of the given role.
Parameter
Name | Type | Optional | Description |
---|---|---|---|
role |
string |
|
The name of the role. |
- Throws
-
Not implemented error: The UserInfo.isInRole method is not implemented.
- Returns
-
boolean
True if the user is a member of the role, otherwise false.