KickJava   Java API By Example, From Geeks To Geeks.

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


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.ContactI;
13 import org.enhydra.pim.business.api.ContactTypeI;
14 import org.enhydra.pim.business.api.PersonI;
15 import org.enhydra.pim.exception.EnhydraPimException;
16
17 import com.lutris.appserver.server.sql.ObjectId;
18
19 /**
20  * @author P.Djojic May 9, 2005 8:55:05 PM
21  *
22  * TODO ContactManagerI
23  */

24 public interface ContactManagerI {
25     /**
26      * @param contact_data
27      * @param contact_type
28      * @param person
29      * @param note
30      */

31     public ContactI newContact(String JavaDoc contact_data, ContactTypeI contact_type, PersonI person, String JavaDoc note);
32
33     /**
34      * @param handle
35      * @param contact_data
36      * @param contact_type
37      * @param person
38      * @param note
39      */

40     public ContactI newContact(BigDecimal JavaDoc handle, String JavaDoc contact_data, ContactTypeI contact_type, PersonI person,
41                     String JavaDoc note);
42
43     public ContactI addContact(ContactI contact, PersonI person, ContactTypeI cType) throws EnhydraPimException;
44
45     public ContactI updateContact(ContactI contact) throws EnhydraPimException;
46
47     public Vector JavaDoc getPersonContacts(PersonI person) throws EnhydraPimException;
48
49     public void removeContact(ContactI contact) throws EnhydraPimException;
50
51     public ContactI findContact(ObjectId oid) throws EnhydraPimException;
52
53     public ContactI findContact(BigDecimal JavaDoc handle) throws EnhydraPimException;
54 }
Popular Tags