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:
  • Constructor Details

    • DeletedUser

      public DeletedUser(com.atlassian.sal.api.user.UserKey userKey, I18NBean i18NBean)
  • Method Details

    • getFullName

      public String getFullName()
      Specified by:
      getFullName in interface com.atlassian.user.User
      Overrides:
      getFullName in class UnknownUser
    • getEmail

      public String getEmail()
      Specified by:
      getEmail in interface com.atlassian.user.User
      Overrides:
      getEmail in class UnknownUser
    • getName

      public String getName()
      Specified by:
      getName in interface com.atlassian.user.Entity
      Specified by:
      getName in interface Principal
      Overrides:
      getName in class UnknownUser
    • 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