public class

TemplateUser

extends Object
java.lang.Object
   ↳ com.atlassian.jira.mail.TemplateUser

Class Overview

Provide a simple delegation around a User. This class catches exceptions and returns simple strings that are suitable for use within templates. See JRA-15551 for the motivation.

See Also

Summary

Public Methods
boolean equals(Object o)
String getDisplayName()
String getEmail()
This method is deprecated. Please use getEmailAddress(). Since v4.3
String getEmailAddress()
Returns the email address of the user
String getFullName()
This method is deprecated. please use getDisplayName(). Since v4.3
String getName()
static TemplateUser getUser(ApplicationUser user)
int hashCode()
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public boolean equals (Object o)

public String getDisplayName ()

Returns
  • display name (eg. full name) of the user.

public String getEmail ()

This method is deprecated.
Please use getEmailAddress(). Since v4.3

Returns the email address of the user

Returns
  • the email address of the user

public String getEmailAddress ()

Returns the email address of the user

Returns
  • the email address of the user

public String getFullName ()

This method is deprecated.
please use getDisplayName(). Since v4.3

Returns
  • full name of the user.

public String getName ()

public static TemplateUser getUser (ApplicationUser user)

public int hashCode ()

public String toString ()