|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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 |
SPECIAL_CHARS
A sample test user whose username contains every non-alphanumeric character on a standard keyboard. |
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()
|
java.lang.String |
getUserPopupUrl()
|
int |
hashCode()
|
boolean |
isAnonymous()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, 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.
public static final User SPECIAL_CHARS
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)
propertyPrefix - The prefix to look for in the properties file. Must not be null.
public java.lang.String getUsername()
public java.lang.String getName()
Entity
getName in interface Entitypublic java.lang.String getNameField()
Entity
getNameField in interface Entitypublic java.lang.String getPassword()
public java.lang.String getFullName()
public java.lang.String getDisplayName()
Entity
getDisplayName in interface Entitypublic java.lang.String getEmail()
public java.lang.String getUserPopupUrl()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean isAnonymous()
public java.lang.String getTitle()
getTitle in interface TitledContentpublic java.lang.String getUrl()
getUrl in interface LinkableContent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||