com.atlassian.confluence.it
Class User

java.lang.Object
  extended by com.atlassian.confluence.it.User

public class User
extends java.lang.Object

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 TEST
          A 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
 boolean equals(java.lang.Object o)
           
 java.lang.String getEmail()
           
 java.lang.String getFullName()
           
 java.lang.String getPassword()
           
 java.lang.String getUsername()
          The name the user gives to log into the system.
 int hashCode()
           
 boolean isAnonymous()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ANONYMOUS

public static final User ANONYMOUS
Represents anonymous users, IE those who haven't logged in.


ADMIN

public static final User ADMIN
A sample administrator user. May or may not have permissions, depending on your test.


TEST

public static final User TEST
A sample test user. May or may not have permissions, depending on your test.

Constructor Detail

User

public 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.

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 java.lang.String getUsername()
The name the user gives to log into the system.


getPassword

public java.lang.String getPassword()

getFullName

public java.lang.String getFullName()

getEmail

public java.lang.String getEmail()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

isAnonymous

public boolean isAnonymous()


Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.