@ExperimentalApi public final class UserDetails extends Object
ApplicationUser
they may or may not exist.
Mainly used as transfer object during create and update to avoid overloading methods.Constructor and Description |
---|
UserDetails(String username,
String displayName) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Optional<Long> |
getDirectoryId()
Return the specified directory where the user should be created in, or
Optional.empty()
the user should be created in the default directory. |
String |
getDisplayName()
Returns the user's display name.
|
String |
getEmailAddress()
Return the user's email address.
|
String |
getPassword()
Return the user's password.
|
String |
getUsername()
Return the user's username.
|
int |
hashCode() |
String |
toString() |
UserDetails |
withDirectory(Long directoryId) |
UserDetails |
withEmail(String email) |
UserDetails |
withPassword(String password) |
public UserDetails withPassword(String password)
public UserDetails withEmail(String email)
public UserDetails withDirectory(Long directoryId)
directoryId
- directory where the user should be created in, if not specified the user should be created
in the default directory.@Nonnull public String getUsername()
null
.public String getPassword()
null
.@Nonnull public String getDisplayName()
public String getEmailAddress()
public Optional<Long> getDirectoryId()
Optional.empty()
the user should be created in the default directory.Copyright © 2002-2022 Atlassian. All Rights Reserved.