new UserInfo(userCode)
Creates a new user information object.
Parameters:
Name | Type | Argument | Description |
---|---|---|---|
userCode |
string |
<optional> |
The identifier of the user. |
Throws:
Argument error: The userCode must be a string or null.
Members
-
userCode :string
-
The identifier of the user.
Type:
- string
Methods
-
<virtual> isInRole(role) → {boolean}
-
Abstract method to determine if the user is member of the given role.
Parameters:
Name Type Description role
string The name of the role.
Throws:
Not implemented error: The UserInfo.isInRole method is not implemented.Returns:
True if the user is a member of the role, otherwise false.
- Type
- boolean