package com.oreilly.jent.people.ejb;

import javax.ejb.EJBLocalObject;

import com.oreilly.jent.people.InvalidSearchException;
import com.oreilly.jent.people.PersistenceException;
import com.oreilly.jent.people.Person;
import com.oreilly.jent.people.SearchArg;


/**
 * Remote client interface for the EJB component
 */
public interface PeopleFinderLocal extends EJBLocalObject {
    /**
     * findPeople: Search the underlying person information using the 
     *   search parameters provided in the arguments.  This method
     *   supports the same search parameters as those supported by the
     *   PersonDAO interface.
     * @param searchParams Search parameters.
     * @return Array of Person beans representing the results.
     * @throws RemoteException
     */
    public Person[] findPeople(SearchArg[] args)
    	    throws InvalidSearchException, PersistenceException;
}
