Main Page | Class List | Directories | Class Members

com.forum.nokia.taskmanager.beans.UserBean Class Reference

List of all members.

Public Member Functions

 UserBean ()
void setDatabase (DBAccess db)
List getUsers ()
List getSmsUsers ()
int getSmsUserListSize ()
List getAllUsers ()

Package Attributes

int smsListSize = -1

Detailed Description

An interface bean-class for the JSP-pages to gain access into the database. This class works as a middle entity between the actual database communicator (class DBAccess) and the JSP page. Since JSP can only communicate with classes that obey the bean model (assuming were using JSTL and EL instead of JSP scriplets, as recommended in JSP 2.0 specification), we need a middle entity like this. This arrangement makes it possible to truly separate the view from the model (see "MVC architecture" and "Java Model 2 architecture").


Constructor & Destructor Documentation

com.forum.nokia.taskmanager.beans.UserBean.UserBean  ) 
 

The default constructor, made mandatory by the JavaBeans model.


Member Function Documentation

List com.forum.nokia.taskmanager.beans.UserBean.getAllUsers  ) 
 

Returns a list of ALL users in the system, including the administrators.

Returns:
A list of users.

int com.forum.nokia.taskmanager.beans.UserBean.getSmsUserListSize  ) 
 

A separate function is needed to return the quantity of users that will have to be sent an SMS.

Returns:
The length of the list returned in the previous function.

List com.forum.nokia.taskmanager.beans.UserBean.getSmsUsers  ) 
 

Gets a list of users that need to be sent an SMS to inform them of changes in the task list.

Returns:
A list of users.

List com.forum.nokia.taskmanager.beans.UserBean.getUsers  ) 
 

Retrieves a list of worker- and manager-type users from the database through the DBAO.

Returns:
A list of users.

void com.forum.nokia.taskmanager.beans.UserBean.setDatabase DBAccess  db  ) 
 

This setter function sets the database access object into place.

Parameters:
db The database access object (DBAO).


Member Data Documentation

int com.forum.nokia.taskmanager.beans.UserBean.smsListSize = -1 [package]
 

Retrieving the list of users to be sent an SMS requires two function invocations. For that reason we need a member variable to store data between the invocations.


The documentation for this class was generated from the following file:
Generated on Tue Aug 30 14:22:36 2005 for TaskManagerWebUI by  doxygen 1.4.4