com.atlassian.confluence.user
Class UnknownUser

java.lang.Object
  extended by com.atlassian.confluence.user.UnknownUser
All Implemented Interfaces:
com.atlassian.user.Entity, com.atlassian.user.User, Serializable, Principal

public class UnknownUser
extends Object
implements com.atlassian.user.User

Implementation of User which represents a user that no longer exists, perhaps because the repository which contains it is no longer accessible, or the user has been removed from an external repository.

Rather than checking for null throughout the view, this object can be passed that returns useful values for all the accessors.

See Also:
Serialized Form

Constructor Summary
UnknownUser(String userName)
           
 
Method Summary
 String getEmail()
           
 String getFullName()
           
 String getName()
           
 void setEmail(String string)
           
 void setFullName(String string)
           
 void setPassword(String string)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.security.Principal
equals, hashCode, toString
 

Constructor Detail

UnknownUser

public UnknownUser(String userName)
Method Detail

getFullName

public String getFullName()
Specified by:
getFullName in interface com.atlassian.user.User

getEmail

public String getEmail()
Specified by:
getEmail in interface com.atlassian.user.User

setFullName

public void setFullName(String string)

setEmail

public void setEmail(String string)

setPassword

public void setPassword(String string)

getName

public String getName()
Specified by:
getName in interface com.atlassian.user.Entity
Specified by:
getName in interface Principal


Copyright © 2003-2012 Atlassian. All Rights Reserved.