userManager
Interface DBManagerInterface

All Known Implementing Classes:
DBManager

public interface DBManagerInterface


Method Summary
 String getFirstName(String username)
          Method will retreive firstname of the user from the database.
 int getId(String username)
          Method will retreive unique system id of the user from the database.
 String getLastName(String username)
          Method will retreive lastname of the user from the database.
 int getStatus(String username)
          Method will retreive status of the user with the given username.
 void setStatus(String username, int stat)
          Method will set the current online status of the user to the database.
 boolean validateUser(String username, String pwd)
          This method will validate if user's existance in the database by searching the given username and matching it with the password.
 

Method Detail

validateUser

boolean validateUser(String username,
                     String pwd)
This method will validate if user's existance in the database by searching the given username and matching it with the password.

Parameters:
username - username to be searched in the database
password - password to be matched with username
Returns:
boolean true if user exists, else false

setStatus

void setStatus(String username,
               int stat)
Method will set the current online status of the user to the database.

Parameters:
username - username of students whose status will be set

getFirstName

String getFirstName(String username)
Method will retreive firstname of the user from the database.

Parameters:
username - of user whose firstname is looked for
Returns:
String firstname of the user.

getLastName

String getLastName(String username)
Method will retreive lastname of the user from the database.

Parameters:
username - of user whose lastname is looked for
Returns:
String lastname of the user.

getId

int getId(String username)
Method will retreive unique system id of the user from the database.

Parameters:
username - of user whose lastname is looked for
Returns:
String lastname of the user.

getStatus

int getStatus(String username)
Method will retreive status of the user with the given username.

Parameters:
username - username of user whose status is returned
Returns:
int status of username 1-online 0-offline