userManager
Interface UserManagerInterface

All Known Implementing Classes:
UserManager

public interface UserManagerInterface


Field Summary
static ActiveInterface active
           
static AuthenticateInterface authenticate
           
static DBManagerInterface dbManager
           
 
Method Summary
 boolean authenticate(String username, String password)
          This method will verify that a given username and password matches a user credentials to login into the system.
 void logout(String username)
          This method will logout the user from the system by removing it from active users table and marks user status field as 0 for inactive.
 

Field Detail

active

static final ActiveInterface active

dbManager

static final DBManagerInterface dbManager

authenticate

static final AuthenticateInterface authenticate
Method Detail

authenticate

boolean authenticate(String username,
                     String password)
This method will verify that a given username and password matches a user credentials to login into the system. If a match is found it returns true, else it returns false. If it returns true, the method will login the user.

Parameters:
String - userName username value to be authenticated.
String - password password value to be authenticated.
Returns:
Boolean Authentication result.

logout

void logout(String username)
This method will logout the user from the system by removing it from active users table and marks user status field as 0 for inactive.