package ejava.ejb.personnel;

import java.rmi.RemoteException;

/**
   The Registrar is the front door to personnel actions by client 
   applications. All compound methods having to do with managing personnel
   are handled by this interface.
*/
public interface RegistrarBI {
   /**
      Adds the requested person to the system. Takes care of generating
      a unqiue primary key for the individual and recording them.
   */
   Person add(String firstName, String lastName,
              String address, String phoneNumber) 
	      throws PersonnelException, RemoteException;

   /**
      Returns an XML listing of each matching person. The first and
      lastName parameters will be matched using %name% wildcards.
   */
   String listPersonnelByName(String firstName, String lastName)
      throws PersonnelException, RemoteException;
}
