Class UserAccountClientSide

java.lang.Object
  |
  +--UserAccountClientSide

public class UserAccountClientSide
extends java.lang.Object

Class UserAccount defines the functionality of the generic user account by setting username, password or quota (if necessary constructor is used) Class UserAccount is supposed to be used only within Server


Constructor Summary
UserAccountClientSide(java.lang.String userName, java.lang.String password, int ID, int messagesQuota)
          Creates a new UserAccountClientSide object
 
Method Summary
 void changePassword(java.lang.String password)
          Changes the old password with the newly password
 void changeQuota(int messagesQuota)
          Chnages the quota of the user account
 java.lang.String getPassword()
          Returns the user password
 int getUserID()
          Returns the user ID
 java.lang.String getUserName()
          Returns the user name
 int getUserQuota()
          Returns the user password
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserAccountClientSide

public UserAccountClientSide(java.lang.String userName,
                             java.lang.String password,
                             int ID,
                             int messagesQuota)
Creates a new UserAccountClientSide object
Parameters:
String - username
String - password
int - node ID
int - message quota
REQUIRES:
MODIFIES: this
EFFECTS: Creates a new UserAccountClientSide object
Method Detail

changePassword

public void changePassword(java.lang.String password)
Changes the old password with the newly password
Parameters:
String - new password
REQUIRES:
MODIFIES: this
EFFECTS: Chnages the password in the user account

changeQuota

public void changeQuota(int messagesQuota)
Chnages the quota of the user account
Parameters:
int - new quota
REQUIRES:
MODIFIES: this
EFFECTS: Changes the quota in the user account

getPassword

public java.lang.String getPassword()
Returns the user password
Returns:
String user password
REQUIRES:
MODIFIES:
EFFECTS: Returns the user password

getUserID

public int getUserID()
Returns the user ID
Returns:
String user ID
REQUIRES:
MODIFIES:
EFFECTS: Returns the user ID

getUserName

public java.lang.String getUserName()
Returns the user name
Returns:
String user name
REQUIRES:
MODIFIES:
EFFECTS: Returns the user name

getUserQuota

public int getUserQuota()
Returns the user password
Returns:
String user quota
REQUIRES:
MODIFIES:
EFFECTS: Returns the user quota