Availability
This routine is available starting with katl-commons 3.0.1.
Syntax
getUser(user)
Description
Gets the user by username or key.Parameters
Parameter name | Type | Required | Description |
---|---|---|---|
user | String | Yes | The username or key |
Return type
Returns the user.
Example
JUser usr = getUser("john.doe");
Notes
The look-up is first made after the userkey, then after the username.
See also