|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--au.edu.swin.synergy.plugin.rooms.BUser
A BUser provides the details of a particular user including their name, their location (ip address etc.) and other details associated with each user.
Field Summary | |
static int |
kAdministrator
The constant identifying the privilage "administrator" |
static int |
kUser
The constant identifying the privilage "user" |
Constructor Summary | |
BUser()
Creates a user object with no values |
|
BUser(String userName)
Creates a user object with the given user name and the ip address of the client machine |
Method Summary | |
void |
doChangePassword(String fPassword)
Please complete the missing tags for doChangePassword |
boolean |
doCheckPassword(String fPassword)
Please complete the missing tags for doCheckPassword |
boolean |
equals(Object user)
Determines whether this user is equal to the user passed in. |
String |
getEmailAddress()
Gets the users email address |
String |
getFullName()
Gets the full name of the user |
String |
getOldUserName()
Gets the new user name for this user |
String |
getPassword()
Gets this users password |
int |
getPrivilage()
Supplies the privilage associated with this user. |
String |
getUserName()
Gets the user name of this user |
void |
setEmailAddress(String newEmailAddress)
Sets the users email address |
void |
setFullName(String newFullName)
Sets the users full name to that specified |
void |
setNewUserName(String newUserName)
Sets the new user name of the user to that specified. |
void |
setPassword(String fPassword)
Enables the setting to password. |
void |
setPrivilage(int privilage)
Sets the privilage of this user to that specified |
void |
setUserName(String userName)
Sets the user name to that specified |
String |
toString()
Returns a representation of the user as a string |
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final int kUser
public static final int kAdministrator
Constructor Detail |
public BUser(String userName)
public BUser()
Method Detail |
public String getPassword()
Gets
- the unecrypted passwordpublic void setPassword(String fPassword)
password
- The unencrypted password of the userpublic String getUserName()
public void setUserName(String userName)
userName
- The user name of this userpublic String getOldUserName()
public int getPrivilage()
public String getFullName()
public String getEmailAddress()
public void setNewUserName(String newUserName)
newUesrName
- The new user name for this userpublic void setPrivilage(int privilage)
privilage
- The new privilage of the userpublic void setFullName(String newFullName)
newFullName
- The new full name of the userpublic void setEmailAddress(String newEmailAddress)
newEmailAddress
- Their new email addresspublic void doChangePassword(String fPassword)
- public boolean doCheckPassword(String fPassword)
- public boolean equals(Object user)
user
- The user to comparepublic String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |