Package com.atlassian.confluence.user
Class DeletedUser
- java.lang.Object
-
- com.atlassian.confluence.user.UnknownUser
-
- com.atlassian.confluence.user.DeletedUser
-
- All Implemented Interfaces:
com.atlassian.user.Entity
,com.atlassian.user.User
,Serializable
,Principal
public class DeletedUser extends UnknownUser
Class that represents a user that has been deleted from Confluence post-RTBF (CONFSRVDEV-7360). This is a user with a matching username and userkey. The user's fullname is generated using a hash of of their userkey.- Since:
- 6.13.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DeletedUser(com.atlassian.sal.api.user.UserKey userKey, I18NBean i18NBean)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getEmail()
String
getFullName()
String
getName()
static boolean
isDeletedUser(com.atlassian.user.User user)
Helper method to determine if a User object represents a Deleted user.-
Methods inherited from class com.atlassian.confluence.user.UnknownUser
isUnknownUser, unknownUser, unknownUser
-
-
-
-
Constructor Detail
-
DeletedUser
public DeletedUser(com.atlassian.sal.api.user.UserKey userKey, I18NBean i18NBean)
-
-
Method Detail
-
getFullName
public String getFullName()
- Specified by:
getFullName
in interfacecom.atlassian.user.User
- Overrides:
getFullName
in classUnknownUser
-
getEmail
public String getEmail()
- Specified by:
getEmail
in interfacecom.atlassian.user.User
- Overrides:
getEmail
in classUnknownUser
-
getName
public String getName()
- Specified by:
getName
in interfacecom.atlassian.user.Entity
- Specified by:
getName
in interfacePrincipal
- Overrides:
getName
in classUnknownUser
-
isDeletedUser
public static boolean isDeletedUser(com.atlassian.user.User user)
Helper method to determine if a User object represents a Deleted user.- Parameters:
user
- the user to check- Returns:
- true if the user has been deleted from Confluence and false otherwise (including null)
- Since:
- 6.13.0
-
-