userManager
Interface ActiveInterface

All Known Implementing Classes:
Active

public interface ActiveInterface


Method Summary
 String getFirstName(String username)
          Method will iterate Active users ArrayList, searches for a user that matchs the given username.
 String getLastName(String username)
          Method will return Last name of the give username.
 ArrayList<String> getList()
          This method will return ArrayList of username of Users that are in the ActiveList.
 ArrayList<User> getUsers()
          This method will return ArrayList of User objects that are in the ActiveList.
 void insert(User user)
          Method will insert a user object into the Active ArrayList.
 void remove(String username)
          Method will remove a user from the Active table.
 int size()
          Method will return size of the Active ArrayList.
 

Method Detail

insert

void insert(User user)
Method will insert a user object into the Active ArrayList.

Parameters:
user - User Authenticated user object to be listed.

getFirstName

String getFirstName(String username)
Method will iterate Active users ArrayList, searches for a user that matchs the given username. If found, method will return the first name.

Parameters:
username - username used to search for the user
Returns:
String First Name of user with the given username.

getLastName

String getLastName(String username)
Method will return Last name of the give username. It will iterate Active users ArrayList, searches for a user that matchs the given username. If found, method will return the last name.

Parameters:
username - username used to search for the user
Returns:
String Last Name of user with the given username.

getList

ArrayList<String> getList()
This method will return ArrayList of username of Users that are in the ActiveList. List reflects usersnames that are currently online.

Returns:
ArrayList Current users online

getUsers

ArrayList<User> getUsers()
This method will return ArrayList of User objects that are in the ActiveList. List reflects users that are currently online.

Returns:
ArrayList Current users online

remove

void remove(String username)
Method will remove a user from the Active table. Method will iterate through the Active list searching for a user with the given username and if found will remove the object and decrement the count.

Parameters:
username - of user to be removed from list.

size

int size()
Method will return size of the Active ArrayList. Size reflects count of students that are currently online.