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. SeeUseralternativeThe login details of a given user.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUser.SimpsonsDeprecated.
-
Field Summary
Fields Modifier and Type Field Description static UserADMINDeprecated.static UserANONYMOUSDeprecated.Represents anonymous users, i.e.static UserAPOSTROPHEDeprecated.A sample test user that contains an apostrophe in the username and fullname.static UserCONF_ADMINDeprecated.A sample administrator user.static UserEVILDeprecated.A sample test user that contains html markup in the username and fullname.static UserLDAP_USER1Deprecated.A sample test user whose username contains every non-alphanumeric character on a standard keyboard.static StringPROPERTY_USER_EMAIL_MIMETYPEDeprecated.static StringPROPERTY_USER_NOTIFY_FOR_MY_OWN_ACTIONSDeprecated.static StringPROPERTY_USER_SITE_HOMEPAGEDeprecated.static UserSPECIAL_CHARSDeprecated.static UserSYS_ADMINDeprecated.static UserTESTDeprecated.since 5.6.static UserTEST2Deprecated.since 5.6.static UserUNICODEDeprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description com.atlassian.confluence.test.api.model.person.UserWithDetailsasUserWithDetails()Deprecated.booleanequals(Object o)Deprecated.StringgetDisplayName()Deprecated.Returns the display name of the Entity, eg full name for Users.StringgetEmail()Deprecated.StringgetFullName()Deprecated.Map<String,String>getHttpBasicAuthHeaders()Deprecated.Obtain a map of HTTP basic auth request headers for authenticating this user.StringgetName()Deprecated.Returns the Entity name.StringgetNameField()Deprecated.Returns the name of the field that stores the Entity name.StringgetPassword()Deprecated.StringgetTitle()Deprecated.StringgetUrl()Deprecated.UrlBuildergetUrlBuilder()Deprecated.StringgetUsername()Deprecated.StringgetUserPopupUrl()Deprecated.inthashCode()Deprecated.booleanisAnonymous()Deprecated.StringtoString()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:EntityReturns the Entity name.
-
getNameField
public String getNameField()
Deprecated.Description copied from interface:EntityReturns the name of the field that stores the Entity name.- Specified by:
getNameFieldin interfaceEntity
-
getPassword
public String getPassword()
Deprecated.
-
getFullName
public String getFullName()
Deprecated.
-
getDisplayName
public String getDisplayName()
Deprecated.Description copied from interface:EntityReturns the display name of the Entity, eg full name for Users.- Specified by:
getDisplayNamein interfaceEntity- Returns:
-
getEmail
public String getEmail()
Deprecated.
-
getUserPopupUrl
public String getUserPopupUrl()
Deprecated.
-
isAnonymous
public boolean isAnonymous()
Deprecated.
-
getTitle
public String getTitle()
Deprecated.- Specified by:
getTitlein interfaceTitledContent
-
getUrl
public String getUrl()
Deprecated.- Specified by:
getUrlin interfaceLinkableContent
-
getUrlBuilder
public UrlBuilder getUrlBuilder()
Deprecated.- Specified by:
getUrlBuilderin interfaceLinkableContent
-
asUserWithDetails
public com.atlassian.confluence.test.api.model.person.UserWithDetails asUserWithDetails()
Deprecated.
-
-