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 public class User extends Object implements Entity, TitledContent, LinkableContent
Deprecated.Please use confluence-java-api module instead. SeeUser
alternativeThe login details of a given user.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
User.Simpsons
Deprecated.
-
Field Summary
Fields Modifier and Type Field Description static User
ADMIN
Deprecated.static User
ANONYMOUS
Deprecated.Represents anonymous users, i.e.static User
APOSTROPHE
Deprecated.A sample test user that contains an apostrophe in the username and fullname.static User
CONF_ADMIN
Deprecated.A sample administrator user.static User
EVIL
Deprecated.A sample test user that contains html markup in the username and fullname.static User
LDAP_USER1
Deprecated.A sample test user whose username contains every non-alphanumeric character on a standard keyboard.static String
PROPERTY_USER_EMAIL_MIMETYPE
Deprecated.static String
PROPERTY_USER_NOTIFY_FOR_MY_OWN_ACTIONS
Deprecated.static String
PROPERTY_USER_SITE_HOMEPAGE
Deprecated.static User
SPECIAL_CHARS
Deprecated.static User
SYS_ADMIN
Deprecated.static User
TEST
Deprecated.since 5.6.static User
TEST2
Deprecated.since 5.6.static User
UNICODE
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description com.atlassian.confluence.test.api.model.person.UserWithDetails
asUserWithDetails()
Deprecated.boolean
equals(Object o)
Deprecated.String
getDisplayName()
Deprecated.Returns the display name of the Entity, eg full name for Users.String
getEmail()
Deprecated.String
getFullName()
Deprecated.Map<String,String>
getHttpBasicAuthHeaders()
Deprecated.Obtain a map of HTTP basic auth request headers for authenticating this user.String
getName()
Deprecated.Returns the Entity name.String
getNameField()
Deprecated.Returns the name of the field that stores the Entity name.String
getPassword()
Deprecated.String
getTitle()
Deprecated.String
getUrl()
Deprecated.UrlBuilder
getUrlBuilder()
Deprecated.String
getUsername()
Deprecated.String
getUserPopupUrl()
Deprecated.int
hashCode()
Deprecated.boolean
isAnonymous()
Deprecated.String
toString()
Deprecated.
-
-
-
Field Detail
-
PROPERTY_USER_SITE_HOMEPAGE
public static final String PROPERTY_USER_SITE_HOMEPAGE
Deprecated.- See Also:
- Constant Field Values
-
PROPERTY_USER_NOTIFY_FOR_MY_OWN_ACTIONS
public static final String PROPERTY_USER_NOTIFY_FOR_MY_OWN_ACTIONS
Deprecated.- See Also:
- Constant Field Values
-
PROPERTY_USER_EMAIL_MIMETYPE
public static final String PROPERTY_USER_EMAIL_MIMETYPE
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 thePropertiesManager
.
-
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. fromAcceptanceTestHelper.createTestUser()
A sample test user. May or may not have permissions, depending on your test. Details are retrieved from thePropertiesManager
.
-
TEST2
@Deprecated public static final User 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
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 thePropertiesManager
.
-
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 thePropertiesManager
-
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.
-
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 interfaceEntity
-
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 interfaceEntity
- Returns:
-
getEmail
public String getEmail()
Deprecated.
-
getUserPopupUrl
public String getUserPopupUrl()
Deprecated.
-
isAnonymous
public boolean isAnonymous()
Deprecated.
-
getTitle
public String getTitle()
Deprecated.- Specified by:
getTitle
in interfaceTitledContent
-
getUrl
public String getUrl()
Deprecated.- Specified by:
getUrl
in interfaceLinkableContent
-
getUrlBuilder
public UrlBuilder getUrlBuilder()
Deprecated.- Specified by:
getUrlBuilder
in interfaceLinkableContent
-
asUserWithDetails
public com.atlassian.confluence.test.api.model.person.UserWithDetails asUserWithDetails()
Deprecated.
-
-