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, java.io.Serializable, java.security.Principal

public class UnknownUser
extends java.lang.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(java.lang.String userName)
          Deprecated. since 5.4. Use unknownUser(String, com.atlassian.confluence.util.i18n.I18NBean)
UnknownUser(java.lang.String userName, I18NBeanFactory i18NBeanFactory)
          Deprecated. since 5.4. Use unknownUser(String, com.atlassian.confluence.util.i18n.I18NBean)
 
Method Summary
 java.lang.String getEmail()
           
 java.lang.String getFullName()
           
 java.lang.String getName()
           
static boolean isUnknownUser(com.atlassian.user.User user)
           
 void setEmail(java.lang.String string)
          Deprecated. since 5.4. Does nothing.
 void setFullName(java.lang.String string)
          Deprecated. since 5.4. Does nothing.
 void setPassword(java.lang.String string)
          Deprecated. since 5.4. Does nothing.
static com.atlassian.user.User unknownUser(java.lang.String userName, I18NBean i18NBean)
           
 
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

@Deprecated
public UnknownUser(java.lang.String userName)
Deprecated. since 5.4. Use unknownUser(String, com.atlassian.confluence.util.i18n.I18NBean)


UnknownUser

@Deprecated
public UnknownUser(java.lang.String userName,
                              I18NBeanFactory i18NBeanFactory)
Deprecated. since 5.4. Use unknownUser(String, com.atlassian.confluence.util.i18n.I18NBean)

Method Detail

unknownUser

public static com.atlassian.user.User unknownUser(java.lang.String userName,
                                                  I18NBean i18NBean)

getFullName

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

getEmail

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

setFullName

@Deprecated
public void setFullName(java.lang.String string)
Deprecated. since 5.4. Does nothing.


setEmail

@Deprecated
public void setEmail(java.lang.String string)
Deprecated. since 5.4. Does nothing.


setPassword

@Deprecated
public void setPassword(java.lang.String string)
Deprecated. since 5.4. Does nothing.


getName

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

isUnknownUser

public static boolean isUnknownUser(com.atlassian.user.User user)


Copyright © 2003-2013 Atlassian. All Rights Reserved.