Constructor
new Grant(grant)
Parameters:
Name | Type | Description |
---|---|---|
grant |
object | Grant object |
Methods
T(code) → {string}
Parameters:
Name | Type | Description |
---|---|---|
code |
string | Text code |
Returns:
Text value
- Type
- string
getEmail() → {string}
Returns:
Email address
- Type
- string
getFirstName() → {string}
Returns:
First name
- Type
- string
getFirstname() → {string}
Returns:
First name
- Type
- string
getLang() → {string}
Returns:
User language
- Type
- string
getLastName() → {string}
Returns:
Last name
- Type
- string
getLastname() → {string}
Returns:
Last name
- Type
- string
getLogin() → {string}
Returns:
Login
- Type
- string
getPictureURL() → {Doc}
Returns:
Picture data URL
- Type
- Doc
getSysParam(name) → {string}
Parameters:
Name | Type | Description |
---|---|---|
name |
string | System parameter name |
Returns:
System parameter value
- Type
- string
getSystemParameter(name) → {string}
Parameters:
Name | Type | Description |
---|---|---|
name |
string | System parameter name |
Returns:
System parameter value
- Type
- string
getUserId() → {string}
Returns:
User ID
- Type
- string
getUsername() → {string}
Returns:
Username
- Type
- string
hasResponsibility(group) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
group |
string | Group name |
Returns:
True if user has a responsibility on the specified group
- Type
- boolean
hasScope(home) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
home |
string | Home scope name |
Returns:
True if user has the specified home scope
- Type
- boolean