KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > pim > business > PersonManagerI


1 /*
2  * Created on May 9, 2005
3  *
4  * TODO To change the template for this generated file go to
5  * Window - Preferences - Java - Code Style - Code Templates
6  */

7 package org.enhydra.pim.business;
8
9 import java.math.BigDecimal JavaDoc;
10 import java.util.Vector JavaDoc;
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 /**
19  * @author P.Djojic May 9, 2005 8:53:20 PM
20  *
21  * TODO PersonManagerI
22  */

23 public interface PersonManagerI {
24     /**
25      * @param user
26      * @param firstname
27      * @param lastname
28      * @param nicname
29      * @param note
30      */

31     public PersonI newPerson(OwnerI owner, String JavaDoc firstname, String JavaDoc lastname, String JavaDoc nicname, String JavaDoc note);
32
33     /**
34      * @param handle
35      * @param user
36      * @param firstname
37      * @param lastname
38      * @param nicname
39      * @param note
40      */

41     public PersonI newPerson(BigDecimal JavaDoc handle, OwnerI owner, String JavaDoc firstname, String JavaDoc lastname, String JavaDoc nicname,
42                     String JavaDoc 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 JavaDoc 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 JavaDoc handle) throws EnhydraPimException;
55
56     public Vector JavaDoc findPersonsByQuery(OwnerI owner, String JavaDoc firstname, String JavaDoc lastname, String JavaDoc nicname, String JavaDoc note,
57                     String JavaDoc contactType, String JavaDoc contactData) throws EnhydraPimException;
58
59     public Vector JavaDoc findPersonsByQuery(BigDecimal JavaDoc ownerhandle, String JavaDoc firstname, String JavaDoc lastname, String JavaDoc nicname,
60                     String JavaDoc note, String JavaDoc contactType, String JavaDoc contactData) throws EnhydraPimException;
61 }
Popular Tags