01: /***
02: * jwma Java WebMail
03: * Copyright (c) 2000-2003 jwma team
04: *
05: * jwma is free software; you can distribute and use this source
06: * under the terms of the BSD-style license received along with
07: * the distribution.
08: ***/package dtw.webmail.model;
09:
10: /**
11: * Interface for <tt>JwmaContactGroup</tt> implementations.
12: * This is the interface any specialized implementation
13: * has to expose internal to controllers and models.
14: *
15: * @author Dieter Wimberger
16: * @version 0.9.7 07/02/2003
17: */
18: public interface JwmaContactGroupImpl extends JwmaContactGroup {
19:
20: /**
21: * Sets the name of this <tt>JwmaContactGroupImpl</tt>.
22: *
23: * @param name the name of this group as <tt>String</tt>.
24: */
25: public void setName(String name);
26:
27: /**
28: * Sets the comments about this <tt>JwmaContactGroupImpl</tt>.
29: *
30: * @param comments the comments about this group as <tt>String</tt>.
31: */
32: public void setComments(String comments);
33:
34: /**
35: * Adds a <tt>JwmaContactImpl</tt> instance to this
36: * contact database.
37: *
38: * @param contact the <tt>JwmaContactImpl</tt> to be added.
39: */
40: public void addContact(JwmaContactImpl contact);
41:
42: /**
43: * Removes a <tt>JwmaContactImpl</tt> instance from this
44: * contact database.
45: *
46: * @param contact the <tt>JwmaContactImpl</tt> to be removed.
47: */
48: public void removeContact(JwmaContactImpl contact);
49:
50: /**
51: * Tests if this <tt>JwmaContactGroupImpl</tt> contains a
52: * contact with the given unique identifier.
53: *
54: * @param uid a unique identifier of a contact.
55: *
56: * @return true if contained, false otherwise.
57: */
58: public boolean containsContact(String uid);
59:
60: }// interface JwmaContactGroupImpl
|