Class User

java.lang.Object
com.atlassian.confluence.it.User
All Implemented Interfaces:
Entity, LinkableContent, TitledContent
Direct Known Subclasses:
UserWithKey

@Deprecated public class User extends Object implements Entity, TitledContent, LinkableContent
Deprecated.
Please use confluence-java-api module instead. See User alternative
The login details of a given user.
  • Field Details

    • PROPERTY_USER_SITE_HOMEPAGE

      public static final String PROPERTY_USER_SITE_HOMEPAGE
      Deprecated.
      See Also:
    • PROPERTY_USER_NOTIFY_FOR_MY_OWN_ACTIONS

      public static final String PROPERTY_USER_NOTIFY_FOR_MY_OWN_ACTIONS
      Deprecated.
      See Also:
    • PROPERTY_USER_EMAIL_MIMETYPE

      public static final String PROPERTY_USER_EMAIL_MIMETYPE
      Deprecated.
      See Also:
    • ANONYMOUS

      public static final User ANONYMOUS
      Deprecated.
      Represents anonymous users, i.e. those who haven't logged in.
    • CONF_ADMIN

      public static final User CONF_ADMIN
      Deprecated.
      A sample administrator user. May or may not have permissions, depending on your test. Details are retrieved from the PropertiesManager.
    • SYS_ADMIN

      public static final User SYS_ADMIN
      Deprecated.
    • ADMIN

      public static final User ADMIN
      Deprecated.
    • TEST

      @Deprecated public static final User TEST
      Deprecated.
      since 5.6. Use a user generated specifically for your test, e.g. from AcceptanceTestHelper.createTestUser()
      A sample test user. May or may not have permissions, depending on your test. Details are retrieved from the PropertiesManager.
    • TEST2

      @Deprecated public static final User TEST2
      Deprecated.
      since 5.6. Use a user generated specifically for your test, e.g. from AcceptanceTestHelper.createTestUser()
      A second sample test user. May or may not have permissions, depending on your test. Details are retrieved from the PropertiesManager.
    • EVIL

      public static final User EVIL
      Deprecated.
      A sample test user that contains html markup in the username and fullname. For use in anti-XSS testing. Details are retrieved from the PropertiesManager.
    • APOSTROPHE

      public static final User APOSTROPHE
      Deprecated.
      A sample test user that contains an apostrophe in the username and fullname.
    • LDAP_USER1

      public static User LDAP_USER1
      Deprecated.
      A sample test user whose username contains every non-alphanumeric character on a standard keyboard. This was created to test cases where special characters in usernames (such as LDAP usernames) cause problems. Details are retrieved from the PropertiesManager
    • SPECIAL_CHARS

      public static final User SPECIAL_CHARS
      Deprecated.
    • UNICODE

      public static final User UNICODE
      Deprecated.
  • Constructor Details

    • User

      public User(String username, String password, String fullName, String email)
      Deprecated.
      Constructs a fully formed User object with all fields set.
      Parameters:
      username - the name the user uses to log into the system.
      password - in plain text, the password the user uses to log into the system.
      fullName - the user's full name.
      email - the user's email address.
  • Method Details

    • getUsername

      public String getUsername()
      Deprecated.
      Returns:
      The name the user gives to log into the system.
    • getName

      public String getName()
      Deprecated.
      Description copied from interface: Entity
      Returns the Entity name.
      Specified by:
      getName in interface Entity
    • getNameField

      public String getNameField()
      Deprecated.
      Description copied from interface: Entity
      Returns the name of the field that stores the Entity name.
      Specified by:
      getNameField in interface Entity
    • getPassword

      public String getPassword()
      Deprecated.
    • getFullName

      public String getFullName()
      Deprecated.
    • getDisplayName

      public String getDisplayName()
      Deprecated.
      Description copied from interface: Entity
      Returns the display name of the Entity, eg full name for Users.
      Specified by:
      getDisplayName in interface Entity
      Returns:
    • getEmail

      public String getEmail()
      Deprecated.
    • getUserPopupUrl

      public String getUserPopupUrl()
      Deprecated.
    • equals

      public boolean equals(Object o)
      Deprecated.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object
    • isAnonymous

      public boolean isAnonymous()
      Deprecated.
    • getTitle

      public String getTitle()
      Deprecated.
      Specified by:
      getTitle in interface TitledContent
    • getUrl

      public String getUrl()
      Deprecated.
      Specified by:
      getUrl in interface LinkableContent
    • getUrlBuilder

      public UrlBuilder getUrlBuilder()
      Deprecated.
      Specified by:
      getUrlBuilder in interface LinkableContent
    • asUserWithDetails

      public com.atlassian.confluence.test.api.model.person.UserWithDetails asUserWithDetails()
      Deprecated.
    • getHttpBasicAuthHeaders

      public Map<String,String> getHttpBasicAuthHeaders()
      Deprecated.
      Obtain a map of HTTP basic auth request headers for authenticating this user.
      Since:
      7.17