1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package sample.contact;
17
18 import java.util.List;
19
20
21 /***
22 * Interface for the application's services layer.
23 *
24 * @author Ben Alex
25 * @version $Id: ContactManager.java,v 1.4 2005/11/04 04:15:57 benalex Exp $
26 */
27 public interface ContactManager {
28
29
30 public List getAll();
31
32 public List getAllRecipients();
33
34 public Contact getById(Long id);
35
36 public Contact getRandomContact();
37
38 public void addPermission(Contact contact, String recipient,
39 Integer permission);
40
41 public void create(Contact contact);
42
43 public void delete(Contact contact);
44
45 public void deletePermission(Contact contact, String recipient);
46 }