Package com.atlassian.confluence.it
Class User
java.lang.Object
com.atlassian.confluence.it.User
- All Implemented Interfaces:
Entity
,LinkableContent
,TitledContent
- Direct Known Subclasses:
UserWithKey
Deprecated.
The login details of a given user.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final User
Deprecated.static final User
Deprecated.Represents anonymous users, i.e.static final User
Deprecated.A sample test user that contains an apostrophe in the username and fullname.static final User
Deprecated.A sample administrator user.static final User
Deprecated.A sample test user that contains html markup in the username and fullname.static User
Deprecated.A sample test user whose username contains every non-alphanumeric character on a standard keyboard.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final User
Deprecated.static final User
Deprecated.static final User
Deprecated.since 5.6.static final User
Deprecated.since 5.6.static final User
Deprecated. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.atlassian.confluence.test.api.model.person.UserWithDetails
Deprecated.boolean
Deprecated.Deprecated.Returns the display name of the Entity, eg full name for Users.getEmail()
Deprecated.Deprecated.Deprecated.Obtain a map of HTTP basic auth request headers for authenticating this user.getName()
Deprecated.Returns the Entity name.Deprecated.Returns the name of the field that stores the Entity name.Deprecated.getTitle()
Deprecated.getUrl()
Deprecated.Deprecated.Deprecated.Deprecated.int
hashCode()
Deprecated.boolean
Deprecated.toString()
Deprecated.
-
Field Details
-
PROPERTY_USER_SITE_HOMEPAGE
Deprecated.- See Also:
-
PROPERTY_USER_NOTIFY_FOR_MY_OWN_ACTIONS
Deprecated.- See Also:
-
PROPERTY_USER_EMAIL_MIMETYPE
Deprecated.- See Also:
-
ANONYMOUS
Deprecated.Represents anonymous users, i.e. those who haven't logged in. -
CONF_ADMIN
Deprecated.A sample administrator user. May or may not have permissions, depending on your test. Details are retrieved from thePropertiesManager
. -
SYS_ADMIN
Deprecated. -
ADMIN
Deprecated. -
TEST
Deprecated.since 5.6. Use a user generated specifically for your test, e.g. fromAcceptanceTestHelper.createTestUser()
A sample test user. May or may not have permissions, depending on your test. Details are retrieved from thePropertiesManager
. -
TEST2
Deprecated.since 5.6. Use a user generated specifically for your test, e.g. fromAcceptanceTestHelper.createTestUser()
A second sample test user. May or may not have permissions, depending on your test. Details are retrieved from thePropertiesManager
. -
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 thePropertiesManager
. -
APOSTROPHE
Deprecated.A sample test user that contains an apostrophe in the username and fullname. -
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 thePropertiesManager
-
SPECIAL_CHARS
Deprecated. -
UNICODE
Deprecated.
-
-
Constructor Details
-
User
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
Deprecated.- Returns:
- The name the user gives to log into the system.
-
getName
Deprecated.Description copied from interface:Entity
Returns the Entity name. -
getNameField
Deprecated.Description copied from interface:Entity
Returns the name of the field that stores the Entity name.- Specified by:
getNameField
in interfaceEntity
-
getPassword
Deprecated. -
getFullName
Deprecated. -
getDisplayName
Deprecated.Description copied from interface:Entity
Returns the display name of the Entity, eg full name for Users.- Specified by:
getDisplayName
in interfaceEntity
- Returns:
-
getEmail
Deprecated. -
getUserPopupUrl
Deprecated. -
equals
Deprecated. -
hashCode
public int hashCode()Deprecated. -
toString
Deprecated. -
isAnonymous
public boolean isAnonymous()Deprecated. -
getTitle
Deprecated.- Specified by:
getTitle
in interfaceTitledContent
-
getUrl
Deprecated.- Specified by:
getUrl
in interfaceLinkableContent
-
getUrlBuilder
Deprecated.- Specified by:
getUrlBuilder
in interfaceLinkableContent
-
asUserWithDetails
public com.atlassian.confluence.test.api.model.person.UserWithDetails asUserWithDetails()Deprecated. -
getHttpBasicAuthHeaders
Deprecated.Obtain a map of HTTP basic auth request headers for authenticating this user.- Since:
- 7.17
-
User
alternative