01: /**
02: * $Id: Group.java,v 1.4 2003/03/28 19:32:18 dpolla Exp $
03: * Copyright 2002 Sun Microsystems, Inc. All
04: * rights reserved. Use of this product is subject
05: * to license terms. Federal Acquisitions:
06: * Commercial Software -- Government Users
07: * Subject to Standard License Terms and
08: * Conditions.
09: *
10: * Sun, Sun Microsystems, the Sun logo, and iPlanet
11: * are trademarks or registered trademarks of Sun Microsystems,
12: * Inc. in the United States and other countries.
13: */package com.sun.addressbook;
14:
15: import java.util.Map;
16: import java.util.HashMap;
17: import java.util.Properties;
18:
19: /**
20: * Group - Group bean corresponding to a group in
21: * address book.
22: *
23: *
24: */
25:
26: public class Group extends Element {
27:
28: public Group() {
29: this .elementType = Element.GROUP;
30: }
31:
32: /*
33: * Constructor. Can be used while creating a new Group bean while
34: * adding a group to the address book.
35: * @param cn common name corresponding to the group.
36: * @param description Description for the group.
37: */
38:
39: public Group(String cn, String description) {
40: this (null, cn, description, null);
41: }
42:
43: /*
44: * Constructor
45: * @param un unique name corresponding to the group.
46: * @param cn common name corresponding to the group.
47: * @param description Description for the group.
48: * @param memberofpab The address book this group belongs to
49: * @param entryid Group index of the Group.
50: * Used while fetching from the collection.
51: */
52:
53: public Group(String un, String cn, String description,
54: String entryid) {
55: this.un = un;
56: this.cn = cn;
57: this.description = description;
58: this.entryid = entryid;
59: this.elementType = Element.GROUP;
60: }
61:
62: }
|