1 7 package org.enhydra.pim.business; 8 9 import java.math.BigDecimal ; 10 import java.util.Vector ; 11 12 import org.enhydra.pim.business.api.OwnerI; 13 import org.enhydra.pim.business.api.PersonI; 14 import org.enhydra.pim.exception.EnhydraPimException; 15 16 import com.lutris.appserver.server.sql.ObjectId; 17 18 23 public interface PersonManagerI { 24 31 public PersonI newPerson(OwnerI owner, String firstname, String lastname, String nicname, String note); 32 33 41 public PersonI newPerson(BigDecimal handle, OwnerI owner, String firstname, String lastname, String nicname, 42 String note); 43 44 public PersonI addPerson(PersonI person, OwnerI owner) throws EnhydraPimException; 45 46 public PersonI updatePerson(PersonI person, OwnerI owner) throws EnhydraPimException; 47 48 public Vector getOwnerPersons(OwnerI owner) throws EnhydraPimException; 49 50 public void removePerson(PersonI person) throws EnhydraPimException; 51 52 public PersonI findPerson(ObjectId oid) throws EnhydraPimException; 53 54 public PersonI findPerson(BigDecimal handle) throws EnhydraPimException; 55 56 public Vector findPersonsByQuery(OwnerI owner, String firstname, String lastname, String nicname, String note, 57 String contactType, String contactData) throws EnhydraPimException; 58 59 public Vector findPersonsByQuery(BigDecimal ownerhandle, String firstname, String lastname, String nicname, 60 String note, String contactType, String contactData) throws EnhydraPimException; 61 } | Popular Tags |