com.atlassian.jira.mail
Class TemplateUser

java.lang.Object
  extended by com.atlassian.jira.mail.TemplateUser

public class TemplateUser
extends Object

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.

Since:
v4.0
See Also:
TemplateIssue

Method Summary
 boolean equals(Object o)
           
 String getDisplayName()
           
 String getEmail()
          Deprecated. Please use getEmailAddress(). Since v4.3
 String getEmailAddress()
          Returns the email address of the user
 String getFullName()
          Deprecated. please use getDisplayName(). Since v4.3
 String getName()
           
static TemplateUser getUser(com.atlassian.crowd.embedded.api.User user)
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getUser

public static TemplateUser getUser(com.atlassian.crowd.embedded.api.User user)

getEmailAddress

public String getEmailAddress()
Returns the email address of the user

Returns:
the email address of the user

getEmail

public String getEmail()
Deprecated. Please use getEmailAddress(). Since v4.3

Returns the email address of the user

Returns:
the email address of the user

getDisplayName

public String getDisplayName()
Returns:
display name (eg. full name) of the user.

getFullName

public String getFullName()
Deprecated. please use getDisplayName(). Since v4.3

Returns:
full name of the user.

getName

public String getName()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object


Copyright © 2002-2014 Atlassian. All Rights Reserved.