Package com.atlassian.confluence.user
Class UnknownUser
- java.lang.Object
-
- com.atlassian.confluence.user.UnknownUser
-
- All Implemented Interfaces:
com.atlassian.user.Entity
,com.atlassian.user.User
,Serializable
,Principal
- Direct Known Subclasses:
DeletedUser
public class UnknownUser extends Object implements com.atlassian.user.User
Implementation ofUser
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
Constructors Modifier Constructor Description protected
UnknownUser()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getEmail()
String
getFullName()
String
getName()
static boolean
isUnknownUser(com.atlassian.user.User user)
static com.atlassian.user.User
unknownUser(ConfluenceUser user, I18NBean i18NBean)
static com.atlassian.user.User
unknownUser(String userName, I18NBean i18NBean)
-
-
-
Method Detail
-
unknownUser
public static com.atlassian.user.User unknownUser(ConfluenceUser user, I18NBean i18NBean)
-
getFullName
public String getFullName()
- Specified by:
getFullName
in interfacecom.atlassian.user.User
-
getEmail
public String getEmail()
- Specified by:
getEmail
in interfacecom.atlassian.user.User
-
getName
public String getName()
-
isUnknownUser
public static boolean isUnknownUser(com.atlassian.user.User user)
-
-