|
||||||||||
| 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 |
LDAP_USER1
A sample test user whose username contains every non-alphanumeric character on a standard keyboard. |
static User |
SPECIAL_CHARS
|
static User |
TEST
A sample test user. |
static User |
TEST2
A second sample test user. |
| Constructor Summary | |
|---|---|
User(String username,
String password,
String fullName,
String email)
Constructs a fully formed User object with all fields set. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
String |
getDisplayName()
Returns the display name of the Entity, eg full name for Users. |
String |
getEmail()
|
String |
getFullName()
|
String |
getName()
Returns the Entity name. |
String |
getNameField()
Returns the name of the field that stores the Entity name. |
String |
getPassword()
|
String |
getTitle()
|
String |
getUrl()
|
String |
getUsername()
|
String |
getUserPopupUrl()
|
int |
hashCode()
|
boolean |
isAnonymous()
|
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 User LDAP_USER1
PropertiesManager
public static final User SPECIAL_CHARS
| Constructor Detail |
|---|
public User(String username,
String password,
String fullName,
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 String getUsername()
public String getName()
Entity
getName in interface Entitypublic String getNameField()
Entity
getNameField in interface Entitypublic String getPassword()
public String getFullName()
public String getDisplayName()
Entity
getDisplayName in interface Entitypublic String getEmail()
public String getUserPopupUrl()
public boolean equals(Object o)
equals in class Objectpublic String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean isAnonymous()
public String getTitle()
getTitle in interface TitledContentpublic String getUrl()
getUrl in interface LinkableContent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||