KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > ivata > groupware > business > calendar > event > meeting > MeetingDO


1 /*
2  * Copyright (c) 2001 - 2005 ivata limited.
3  * All rights reserved.
4  * -----------------------------------------------------------------------------
5  * ivata groupware may be redistributed under the GNU General Public
6  * License as published by the Free Software Foundation;
7  * version 2 of the License.
8  *
9  * These programs are free software; you can redistribute them and/or
10  * modify them under the terms of the GNU General Public License
11  * as published by the Free Software Foundation; version 2 of the License.
12  *
13  * These programs are distributed in the hope that they will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16  *
17  * See the GNU General Public License in the file LICENSE.txt for more
18  * details.
19  *
20  * If you would like a copy of the GNU General Public License write to
21  *
22  * Free Software Foundation, Inc.
23  * 59 Temple Place - Suite 330
24  * Boston, MA 02111-1307, USA.
25  *
26  *
27  * To arrange commercial support and licensing, contact ivata at
28  * http://www.ivata.com/contact.jsp
29  * -----------------------------------------------------------------------------
30  * $Log: MeetingDO.java,v $
31  * Revision 1.2 2005/04/09 17:19:16 colinmacleod
32  * Changed copyright text to GPL v2 explicitly.
33  *
34  * Revision 1.1.1.1 2005/03/10 17:47:46 colinmacleod
35  * Restructured ivata op around Hibernate/PicoContainer.
36  * Renamed ivata groupware.
37  *
38  * Revision 1.1 2004/07/13 19:42:13 colinmacleod
39  * Moved project to POJOs from EJBs.
40  * Applied PicoContainer to services layer (replacing session EJBs).
41  * Applied Hibernate to persistence layer (replacing entity EJBs).
42  *
43  * Revision 1.3 2004/03/21 21:16:22 colinmacleod
44  * Shortened name to ivata op.
45  *
46  * Revision 1.2 2004/02/01 22:07:29 colinmacleod
47  * Added full names to author tags
48  *
49  * Revision 1.1.1.1 2004/01/27 20:58:20 colinmacleod
50  * Moved ivata openportal to SourceForge..
51  *
52  * Revision 1.3 2004/01/19 21:13:14 colin
53  * Removed minutes for ivata groupware v0.9
54  *
55  * Revision 1.2 2003/10/15 13:57:23 colin
56  * fixing for XDoclet
57  *
58  * Revision 1.1 2003/02/24 19:09:21 colin
59  * moved to business
60  *
61  * Revision 1.11 2003/02/13 08:45:42 colin
62  * conversion to Struts/popups
63  *
64  * Revision 1.10 2003/02/04 17:41:57 colin
65  * copyright notice
66  *
67  * Revision 1.9 2002/10/24 10:00:28 peter
68  * added libraryItemTopic field
69  *
70  * Revision 1.8 2002/10/22 08:24:19 peter
71  * added libraryItemId field
72  *
73  * Revision 1.7 2002/10/14 16:00:48 colin
74  * changed checkLibraryItemExist to checkLibraryItemExists
75  *
76  * Revision 1.6 2002/09/10 08:21:12 jano
77  * field libraryItemExist was add, its information if we allready have minutes for that meeting, it's mean library item
78  *
79  * Revision 1.5 2002/09/09 14:28:57 jano
80  * libraryItemId did add to meetingDO|
81  *
82  * Revision 1.4 2002/09/03 15:05:59 jano
83  * i don't know
84  *
85  * Revision 1.3 2002/08/16 13:38:57 jano
86  * *** empty log message ***
87  *
88  * Revision 1.2 2002/08/07 16:18:55 jano
89  * *** empty log message ***
90  *
91  * Revision 1.1 2002/06/21 12:45:01 colin
92  * restructured com.ivata.groupware.web
93  * -----------------------------------------------------------------------------
94  */

95 package com.ivata.groupware.business.calendar.event.meeting;
96
97
98 import java.util.Set JavaDoc;
99
100 import com.ivata.groupware.business.addressbook.person.PersonDO;
101 import com.ivata.groupware.business.calendar.event.EventDO;
102
103
104 /**
105  * <p>Represents a meeting which takes place in the organization. This is
106  * responsible for storing the details of the meeting, and interacting with the
107  * library to create the minutes and agenda.</p>
108  *
109  * @since 2002-06-18
110  * @author Colin MacLeod
111  * <a HREF='mailto:colin.macleod@ivata.com'>colin.macleod@ivata.com</a>
112  * @version $Revision: 1.2 $
113  * @see MeetingBean
114  *
115  * @hibernate.joined-subclass
116  * table="meeting"
117  * @hibernate.joined-subclass-key
118  * column="calendar_event"
119  */

120 public class MeetingDO extends EventDO {
121     /**
122      * <p>Stores all people who will attend the meeting.</p>
123      */

124     private Set JavaDoc attendees;
125
126     /**
127      * <p>Stores categories of meeting minutes.</p>
128      */

129     private Set JavaDoc categories;
130
131     /**
132      * <p>Stores person in charge of the meeting.</p>
133      */

134     private PersonDO chairPerson;
135
136     /**
137      * <p>Stores the client-specific text describing the location of the
138      * meeting.</p>
139      */

140     private String JavaDoc location;
141
142     /**
143      * <p>Get all people who will attend the meeting.</p>
144      *
145      * @return people who will attend the meeting.
146      *
147      * @nosuch.hibernate.set
148      * @nosuch.hibernate.collection-key
149      * column="meeting"
150      * @nosuch.hibernate.collection-one-to-many
151      * class="com.ivata.groupware.business.calendar.event.meeting.attendee.AttendeeDO"
152      */

153     public final Set JavaDoc getAttendees() {
154         return attendees;
155     }
156
157     /**
158      * <p>Get all meeting categories.</p>
159      *
160      * @return all meeting categories.
161      *
162      * @nosuch.hibernate.set
163      * @nosuch.hibernate.collection-key
164      * column="meeting"
165      * @nosuch.hibernate.collection-one-to-many
166      * class="com.ivata.groupware.business.calendar.event.meeting.category.MeetingCategoryDO"
167      */

168     public final Set JavaDoc getCategories() {
169         return categories;
170     }
171
172     /**
173      * <p>Get the person who is in charge of the meeting.</p>
174      *
175      * @return current value of the person in charge of the meeting.
176      * @hibernate.many-to-one
177      * column="chair_person"
178      */

179     public PersonDO getChairPerson() {
180         return chairPerson;
181     }
182
183     /**
184      * <p>Get the location of the meeting.</p>
185      *
186      * @return current value of client-specific location text.
187      * @hibernate.property
188      */

189     public final String JavaDoc getLocation() {
190         return location;
191     }
192
193     /**
194      * <p>Set all people who will attend the meeting.</p>
195      *
196      * @param people who will attend the meeting.
197      */

198     public final void setAttendees(final Set JavaDoc attendees) {
199         this.attendees = attendees;
200     }
201
202     /**
203      * <p>Set all of meeting categories.</p>
204      *
205      * @param categories new value of category names.
206      */

207     public final void setCategories(final Set JavaDoc categories) {
208         this.categories = categories;
209     }
210
211     /**
212      * <p>Set the person who is in charge of the meeting.</p>
213      *
214      * @param chairPerson new value of the person in
215      * charge of the meeting.
216      */

217     public final void setChairPerson(final PersonDO chairPerson) {
218         this.chairPerson = chairPerson;
219     }
220
221     /**
222      * <p>Set the location of the meeting.</p>
223      *
224      * @param location new value of client-specific location text.
225      */

226     public final void setLocation(final String JavaDoc location) {
227         this.location = location;
228     }
229 }
230
Popular Tags