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 an OS.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 getEmail()
           
 String getFullName()
           
 List getGroups()
           
 String getName()
           
static TemplateUser getUser(User user)
           
 int hashCode()
           
 boolean inGroup(Group group)
           
 boolean inGroup(String s)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getUser

public static TemplateUser getUser(User user)

getEmail

public String getEmail()

getFullName

public String getFullName()

getName

public String getName()

getGroups

public List getGroups()

inGroup

public boolean inGroup(Group group)

inGroup

public boolean inGroup(String s)

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-2009 Atlassian. All Rights Reserved.