Package com.atlassian.jira.user
Class UserDetails
java.lang.Object
com.atlassian.jira.user.UserDetails
Contains the details that is required to represent a
ApplicationUser
they may or may not exist.
Mainly used as transfer object during create and update to avoid overloading methods.- Since:
- v7.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Return the specified directory where the user should be created in, orOptional.empty()
the user should be created in the default directory.Returns the user's display name.Return the user's email address.Return the user's password.Return the user's username.int
hashCode()
toString()
withDirectory
(Long directoryId) withPassword
(String password)
-
Constructor Details
-
UserDetails
-
-
Method Details
-
withPassword
-
withEmail
-
withDirectory
- Parameters:
directoryId
- directory where the user should be created in, if not specified the user should be created in the default directory.
-
getUsername
Return the user's username.- Returns:
- user's username; must never be
null
.
-
getPassword
Return the user's password.- Returns:
- user's password; this can be
null
.
-
getDisplayName
Returns the user's display name. This is sometimes referred to as "full name".- Returns:
- user's display name, must never be null.
-
getEmailAddress
Return the user's email address.- Returns:
- email address of the user.
-
getDirectoryId
Return the specified directory where the user should be created in, orOptional.empty()
the user should be created in the default directory.- Returns:
- the ID of the user directory for this user.
-
equals
-
hashCode
public int hashCode() -
toString
-