Synergy Home Page

au.edu.swin.synergy.plugin.userdb
Class BUser

java.lang.Object
  |
  +--au.edu.swin.synergy.plugin.userdb.BPrivileged
        |
        +--au.edu.swin.synergy.plugin.userdb.BUser
Direct Known Subclasses:
BChatUser

public class BUser
extends BPrivileged
implements Serializable

A BUser provides the details of a particular user including their name, their location (ip address etc.) and other details associated with each user.

Author:
Tristan Austin modified by John Newbigin
See Also:
Serialized Form

Fields inherited from class au.edu.swin.synergy.plugin.userdb.BPrivileged
kAdministrator, kUser
 
Constructor Summary
BUser()
          This is simply the default constructor.
BUser(Long uniqueID, String userName)
          Creates a user object with the given user name and the ip address of the client machine
BUser(String userName)
          Creates a user object with the given user name and the ip address of the client machine Please complete the missing tags for BUser
 
Method Summary
 String getAlias()
          Gets the alias of this user
 String getEmailAddress()
          Gets the users email address
 String getFullName()
          Gets the full name of the user
 Vector getGroups()
           
 String getPassword()
          Gets this users password
 boolean isInGroup(int group)
           
 void setAlias(String alias)
          Sets this users alias to the value specified
 void setEmailAddress(String newEmailAddress)
          Sets the users email address
 void setFullName(String newFullName)
          Sets the users full name to that specified
 void setGroups(Vector fGroups)
           
 void setPassword(String fPassword)
          Enables the setting to password.
 
Methods inherited from class au.edu.swin.synergy.plugin.userdb.BPrivileged
addMember, equals, getComments, getMembers, getName, getPrivilege, getUniqueID, isNew, removeAllMembers, removeMember, setComments, setMembers, setName, setPrivilege, setUniqueID, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BUser

public BUser()
This is simply the default constructor. It may be used to create an empty user to be filled in. Please complete the missing tags for BUser
Parameters:
-  

BUser

public BUser(String userName)
      throws BInvalidPropertyException
Creates a user object with the given user name and the ip address of the client machine Please complete the missing tags for BUser
Parameters:
-  

BUser

public BUser(Long uniqueID,
             String userName)
      throws BInvalidPropertyException
Creates a user object with the given user name and the ip address of the client machine
Method Detail

getPassword

public String getPassword()
Gets this users password
Parameters:
Gets - the unecrypted password

setPassword

public void setPassword(String fPassword)
Enables the setting to password.
Parameters:
password - The unencrypted password of the user

getFullName

public String getFullName()
Gets the full name of the user
Returns:
The full name of the user

setFullName

public void setFullName(String newFullName)
Sets the users full name to that specified
Parameters:
newFullName - The new full name of the user

getEmailAddress

public String getEmailAddress()
Gets the users email address
Returns:
The users email address

setEmailAddress

public void setEmailAddress(String newEmailAddress)
Sets the users email address
Parameters:
newEmailAddress - Their new email address

getAlias

public String getAlias()
Gets the alias of this user
Parameters:
-  
Returns:
The alias of this user as a String. Please complete the missing tags for getAlias
Pre Condition:
 
Post Condition:
 

setAlias

public void setAlias(String alias)
Sets this users alias to the value specified
Parameters:
alias - The new alias for this user Please complete the missing tags for setAlias
Returns:
 
Pre Condition:
 
Post Condition:
 

getGroups

public Vector getGroups()

setGroups

public void setGroups(Vector fGroups)

isInGroup

public boolean isInGroup(int group)

Synergy Home Page