university
Interface Directory

All Known Implementing Classes:
CategoryDirectory, DirectoryFacade, UnitDirectory

public interface Directory

Interface of required methods needed for a directory.


Method Summary
 void add(Person person)
          Add a Person to the UniversityDirectory
 java.lang.String listAll()
          List all people in the directory
 void remove(Person person)
          Remove a Person from the UniversityDirectory
 Person search(int id)
          Search for a Person by ID.
 Person search(java.lang.String name)
          Search for a Person by name.
 

Method Detail

add

void add(Person person)
Add a Person to the UniversityDirectory

Parameters:
person - The person to add to the UniversityDirectory

remove

void remove(Person person)
Remove a Person from the UniversityDirectory

Parameters:
person - The person to remove from the UniversityDirectory

listAll

java.lang.String listAll()
List all people in the directory


search

Person search(java.lang.String name)
Search for a Person by name.

Parameters:
name - the name of the Person
Returns:
the person

search

Person search(int id)
Search for a Person by ID.

Parameters:
id - the ID number of the Person
Returns:
the person