Appearance
User
A User object describes a Situate user. Use the static methods to look up a user by id, name, or alternate id.
Static Methods
findById(ID) → User
Returns a User given its ID.
Returns: User - The user or null if one could not be found.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| ID | String | The id of the user. |
findByName(name) → User
Returns a User given its name.
Returns: User - The user or null if one could not be found.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| name | String | The name of the user. |
findByForeignId(Key, Value) → User
Returns a User given an alternate search ID.
Returns: User - The user or null if one could not be found.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| Key | String | The key of the alternate ID. |
| Value | String | The value matching the key. |
Instance Methods
getId() → String
Returns the id of this user.
Returns: String - The user's id.
getDescription() → String
Returns the description of this user.
Returns: String - The description.
getUserInfo(key) → String
Returns the value of a user information attribute.
Returns: String - The value of the attribute, or null if it is not set.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| key | String | The name of the attribute to return. |