university
Interface PersonList

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
PersonListImpl

public interface PersonList
extends java.rmi.Remote

Interface for the PersonList.


Method Summary
 void addPerson(PersonAdapter person)
          Adds a person to the remote directory.
 java.lang.String ListAll()
          Lists all people that are contained in the remote directory.
 void removePerson(int ID)
          Remove a person to the remote directory.
 

Method Detail

addPerson

void addPerson(PersonAdapter person)
               throws java.rmi.RemoteException
Adds a person to the remote directory.

Parameters:
person - The person to be added to the list.
Throws:
java.rmi.RemoteException

removePerson

void removePerson(int ID)
                  throws java.rmi.RemoteException
Remove a person to the remote directory.

Parameters:
ID - The ID number of the person to be removed from the list.
Throws:
java.rmi.RemoteException

ListAll

java.lang.String ListAll()
                         throws java.rmi.RemoteException
Lists all people that are contained in the remote directory.

Returns:
String a string listing all people in the list.
Throws:
java.rmi.RemoteException