Package com.atlassian.sal.api.user
Class UserKey
java.lang.Object
com.atlassian.sal.api.user.UserKey
- All Implemented Interfaces:
Serializable
Represents an identifier that uniquely identifies a user for the duration of its existence.
- Since:
- v2.10
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
UserKey
Default constructor: builds a UserKey from its string representation.- Parameters:
userkey- the string representation of a UserKey. Must not be null.
-
-
Method Details
-
getStringValue
Returns a string representation of the current key.- Returns:
- a string representation of the current key
-
toString
-
equals
-
hashCode
public int hashCode() -
fromLong
Builds aUserKeyobject from a long id. The id will be converted to a String first.- Parameters:
userId- a user ID- Returns:
- a
UserKeyobject
-