Class 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 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 Detail

      • UnknownUser

        protected UnknownUser()
    • Method Detail

      • unknownUser

        public static com.atlassian.user.User unknownUser​(String userName,
                                                          I18NBean i18NBean)
      • unknownUser

        public static com.atlassian.user.User unknownUser​(ConfluenceUser user,
                                                          I18NBean i18NBean)
      • 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
      • getName

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

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