public class

LazyLoadingApplicationUser

extends Object
implements ApplicationUser
java.lang.Object
   ↳ com.atlassian.jira.user.LazyLoadingApplicationUser

Class Overview

Application user that is created just from a name and loads its other details from Crowd when needed.

Take care not to call equals() and hashCode() unless absolutely needed, as this will cause the full user to be loaded from the database.

Summary

[Expand]
Inherited Fields
From interface com.atlassian.jira.entity.WithId
Public Constructors
LazyLoadingApplicationUser(String name, CrowdService crowdService)
Public Methods
boolean equals(Object obj)
long getDirectoryId()
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 getUsername() and implementation of getName().
String getUsername()
int hashCode()
boolean isActive()
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.entity.WithId
From interface com.atlassian.jira.entity.WithKey
From interface com.atlassian.jira.user.ApplicationUser
From interface java.security.Principal

Public Constructors

public LazyLoadingApplicationUser (String name, CrowdService crowdService)

Public Methods

public boolean equals (Object obj)

public long getDirectoryId ()

public User getDirectoryUser ()

public String getDisplayName ()

Returns the display name of the user. This is sometimes referred to as "full name".

Returns
  • display name of the user, must never be null.

public String getEmailAddress ()

public Long getId ()

public String getKey ()

Returns the key which distinguishes the ApplicationUser as unique. The same key is shared by all Users with the same username (ignoring case) across all user directories.

Returns
  • the key which distinguishes the ApplicationUser as unique

public String getName ()

Synonym for getUsername() and implementation of getName().

Returns
  • the username (login) of the user; must never be null.

public String getUsername ()

public int hashCode ()

public boolean isActive ()

public String toString ()