1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 package de.bea.domingo.groupware;
23
24 import java.util.Iterator;
25
26 /***
27 * Interface to the mail functionality of a Notes address book.
28 *
29 * @author <a href=mailto:schwarz_dot_dan_at_gmail_dot_com>Daniel Schwarz</a>
30 */
31 public interface AddressBook {
32
33 /***
34 * Returns an iterator over all contacts in the Address Book.
35 *
36 * <p>
37 * Should return in alphabetical order
38 * </p>
39 *
40 * @return iterator over all contacts in the Address Book
41 */
42
43 Iterator getContacts();
44
45 /***
46 * Indicates if a database is a Personal Address Book.
47 *
48 * @return <code>true</code> if the database is a Personal Address Book,
49 * <code>false</code> if the database is not Personal Address Book
50 */
51 boolean isPrivate();
52
53 /***
54 * Indicates if a database is a Public Address Book.
55 *
56 * @return <code>true</code> if the database is a Public Address Book,
57 * <code>false</code> if the database is not Public Address Book
58 */
59 boolean isPublic();
60
61 /***
62 * Returns the title of the Address Book.
63 *
64 * @return title
65 */
66 String getTitle();
67
68 }