public class LazyLoadingApplicationUser extends Object implements ApplicationUser
Take care not to call equals() and hashCode() unless absolutely needed, as this will cause the full user to be loaded from the database.
ID_COMPARATOR
Constructor and Description |
---|
LazyLoadingApplicationUser(String name,
com.atlassian.crowd.embedded.api.CrowdService crowdService) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Implementations must ensure equality based on getKey().
|
long |
getDirectoryId() |
com.atlassian.crowd.embedded.api.User |
getDirectoryUser() |
String |
getDisplayName()
Returns the display name of the user.
|
String |
getEmailAddress() |
Long |
getId() |
String |
getKey()
Returns the key which distinguishes the ApplicationUser as unique.
|
String |
getName()
Synonym for
ApplicationUser.getUsername() and implementation of Principal.getName() . |
String |
getUsername() |
int |
hashCode()
Implementations must produce a hashcode based on getKey().
|
boolean |
isActive() |
String |
toString() |
public LazyLoadingApplicationUser(String name, com.atlassian.crowd.embedded.api.CrowdService crowdService)
public long getDirectoryId()
getDirectoryId
in interface ApplicationUser
public com.atlassian.crowd.embedded.api.User getDirectoryUser()
getDirectoryUser
in interface ApplicationUser
public String getDisplayName()
ApplicationUser
getDisplayName
in interface ApplicationUser
public String getEmailAddress()
getEmailAddress
in interface ApplicationUser
public String getKey()
ApplicationUser
User
s with the same username (ignoring case) across all user
directories.getKey
in interface WithKey
getKey
in interface ApplicationUser
public String getName()
ApplicationUser
ApplicationUser.getUsername()
and implementation of Principal.getName()
.getName
in interface ApplicationUser
getName
in interface Principal
null
.ApplicationUser.getUsername()
public String getUsername()
getUsername
in interface ApplicationUser
null
.ApplicationUser.getName()
public boolean isActive()
isActive
in interface ApplicationUser
true if this user is active.
public Long getId()
public boolean equals(Object obj)
ApplicationUser
public int hashCode()
ApplicationUser
Copyright © 2002-2024 Atlassian. All Rights Reserved.