Skip to content

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:

ParameterTypeDescription
IDStringThe 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:

ParameterTypeDescription
nameStringThe 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:

ParameterTypeDescription
KeyStringThe key of the alternate ID.
ValueStringThe 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:

ParameterTypeDescription
keyStringThe name of the attribute to return.

Workload Automation and Orchestration