userManager.user
Class User

java.lang.Object
  extended by userManager.user.User
All Implemented Interfaces:
UserInterface

public class User
extends Object
implements UserInterface

The User class will provide methods to access user's data. The user is built based on it's security level as well as settings and preferences.


Constructor Summary
User()
          CONSTRUCTOR - will construct the user object.
 
Method Summary
 String getFirstName()
          This method will return the first Name of this User object
 int getId()
          This method will return unique system id of the user.
 String getLastName()
          This method will return the Last Name of this User object
 String getUserName()
          This method will return the username of this User object
 void setFirstName(String firstName)
          This method will set the first name of this User object
 void setLastName(String lastName)
          This method will set the last name of this User object
 void setUsername(String username)
          This method will set the username of the user.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

User

public User()
CONSTRUCTOR - will construct the user object. It will get the instance of the DBManager.

Method Detail

setUsername

public void setUsername(String username)
This method will set the username of the user.

Parameters:
username - user's username

setFirstName

public void setFirstName(String firstName)
This method will set the first name of this User object


setLastName

public void setLastName(String lastName)
This method will set the last name of this User object


getId

public int getId()
This method will return unique system id of the user.

Specified by:
getId in interface UserInterface
Returns:
int user's id.

getUserName

public String getUserName()
This method will return the username of this User object

Specified by:
getUserName in interface UserInterface
Returns:
String username

getFirstName

public String getFirstName()
This method will return the first Name of this User object

Specified by:
getFirstName in interface UserInterface
Returns:
String First Name

getLastName

public String getLastName()
This method will return the Last Name of this User object

Specified by:
getLastName in interface UserInterface
Returns:
String last name