|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.it.User
public class User
The login details of a given user.
Field Summary | |
---|---|
static User |
ADMIN
A sample administrator user. |
static User |
ANONYMOUS
Represents anonymous users, IE those who haven't logged in. |
static User |
EVIL
A sample test user that contains html markup in the username and fullname. |
static User |
TEST
A sample test user. |
static User |
TEST2
A second sample test user. |
Constructor Summary | |
---|---|
User(java.lang.String username,
java.lang.String password,
java.lang.String fullName,
java.lang.String email)
Constructs a fully formed User object with all fields set. |
Method Summary | |
---|---|
static User |
createUserFromPropertyPrefix(java.lang.String propertyPrefix)
Factory method to create users based on properties. |
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getDisplayName()
Returns the display name of the Entity, eg full name for Users. |
java.lang.String |
getEmail()
|
java.lang.String |
getFullName()
|
java.lang.String |
getName()
Returns the Entity name. |
java.lang.String |
getNameField()
Returns the name of the field that stores the Entity name. |
java.lang.String |
getPassword()
|
java.lang.String |
getTitle()
|
java.lang.String |
getUrl()
|
java.lang.String |
getUsername()
The name the user gives to log into the system. |
java.lang.String |
getUserPopupUrl()
|
int |
hashCode()
|
boolean |
isAnonymous()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final User ANONYMOUS
public static final User ADMIN
PropertiesManager
.
public static final User TEST
PropertiesManager
.
public static final User TEST2
PropertiesManager
.
public static final User EVIL
PropertiesManager
.
Constructor Detail |
---|
public User(java.lang.String username, java.lang.String password, java.lang.String fullName, java.lang.String email)
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 |
---|
public static User createUserFromPropertyPrefix(java.lang.String propertyPrefix)
public java.lang.String getUsername()
public java.lang.String getName()
Entity
getName
in interface Entity
public java.lang.String getNameField()
Entity
getNameField
in interface Entity
public java.lang.String getPassword()
public java.lang.String getFullName()
public java.lang.String getDisplayName()
Entity
getDisplayName
in interface Entity
public java.lang.String getEmail()
public java.lang.String getUserPopupUrl()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean isAnonymous()
public java.lang.String getTitle()
getTitle
in interface TitledContent
public java.lang.String getUrl()
getUrl
in interface LinkableContent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |