Class User

    • Field Detail

      • PROPERTY_USER_NOTIFY_FOR_MY_OWN_ACTIONS

        public static final String PROPERTY_USER_NOTIFY_FOR_MY_OWN_ACTIONS
        Deprecated.
        See Also:
        Constant Field Values
      • 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.
      • 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 Detail

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

      • 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
      • isAnonymous

        public boolean isAnonymous()
        Deprecated.
      • 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