com.atlassian.jira.mail
Class DummyUser
java.lang.Object
com.atlassian.jira.mail.DummyUser
- All Implemented Interfaces:
- com.atlassian.crowd.embedded.api.User, Comparable<com.atlassian.crowd.embedded.api.User>, Principal
public class DummyUser
- extends Object
- implements com.atlassian.crowd.embedded.api.User
Used to represent a deleted user. For example, if a notification e-mail is being sent and a user who is, for exmaple, a
reporter of the issue has been deleted from the system, we need an object that represets the user. (We cannot subclass
com.opensymphony.user.User as it is final).
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.atlassian.crowd.embedded.api.User |
equals, hashCode |
DummyUser
public DummyUser(String name)
getEmail
public String getEmail()
getFullName
public String getFullName()
getName
public String getName()
- Specified by:
getName
in interface Principal
getDirectoryId
public long getDirectoryId()
- Specified by:
getDirectoryId
in interface com.atlassian.crowd.embedded.api.User
isActive
public boolean isActive()
- Specified by:
isActive
in interface com.atlassian.crowd.embedded.api.User
getEmailAddress
public String getEmailAddress()
- Specified by:
getEmailAddress
in interface com.atlassian.crowd.embedded.api.User
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName
in interface com.atlassian.crowd.embedded.api.User
compareTo
public int compareTo(com.atlassian.crowd.embedded.api.User user)
- Specified by:
compareTo
in interface com.atlassian.crowd.embedded.api.User
- Specified by:
compareTo
in interface Comparable<com.atlassian.crowd.embedded.api.User>
Copyright © 2002-2012 Atlassian. All Rights Reserved.