KickJava   Java API By Example, From Geeks To Geeks.

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


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: AttendeeDO.java,v $
31  * Revision 1.3 2005/04/10 20:09:41 colinmacleod
32  * Added new themes.
33  * Changed id type to String.
34  * Changed i tag to em and b tag to strong.
35  * Improved PicoContainerFactory with NanoContainer scripts.
36  *
37  * Revision 1.2 2005/04/09 17:19:17 colinmacleod
38  * Changed copyright text to GPL v2 explicitly.
39  *
40  * Revision 1.1.1.1 2005/03/10 17:47:46 colinmacleod
41  * Restructured ivata op around Hibernate/PicoContainer.
42  * Renamed ivata groupware.
43  *
44  * Revision 1.1 2004/07/13 19:42:13 colinmacleod
45  * Moved project to POJOs from EJBs.
46  * Applied PicoContainer to services layer (replacing session EJBs).
47  * Applied Hibernate to persistence layer (replacing entity EJBs).
48  *
49  * Revision 1.3 2004/03/21 21:16:22 colinmacleod
50  * Shortened name to ivata op.
51  *
52  * Revision 1.2 2004/02/01 22:07:29 colinmacleod
53  * Added full names to author tags
54  *
55  * Revision 1.1.1.1 2004/01/27 20:58:20 colinmacleod
56  * Moved ivata openportal to SourceForge..
57  *
58  * Revision 1.5 2003/11/03 11:28:48 jano
59  * commiting calendar,
60  * tryinjg to fix deploying problem
61  *
62  * Revision 1.4 2003/10/28 13:10:23 jano
63  * commiting calendar,
64  * still fixing compile and building openGroupware project
65  *
66  * Revision 1.3 2003/10/15 14:03:06 jano
67  * converting to XDoclet
68  *
69  * Revision 1.2 2003/10/15 13:57:23 colin
70  * fixing for XDoclet
71  *
72  * Revision 1.3 2003/05/01 12:13:22 jano
73  * tidy up names of sequeneces
74  *
75  * Revision 1.2 2003/02/25 14:38:13 colin
76  * implemented setModified methods on entity beans thro IvataEntityBean superclass
77  *
78  * Revision 1.1 2003/02/24 19:09:21 colin
79  * moved to business
80  *
81  * Revision 1.9 2003/02/04 17:41:57 colin
82  * copyright notice
83  *
84  * Revision 1.8 2002/09/10 09:05:44 jano
85  * fixing ejbCreate method
86  *
87  * Revision 1.6 2002/08/14 09:25:00 jano
88  * *** empty log message ***
89  *
90  * Revision 1.5 2002/07/15 11:59:25 jano
91  * added property DAYEVENT to EventBean
92  *
93  * Revision 1.4 2002/07/05 10:29:10 colin
94  * changes trying to move project to jano
95  *
96  * Revision 1.3 2002/07/04 12:28:04 colin
97  * resolved conficts
98  *
99  * Revision 1.2 2002/07/04 12:11:34 jano
100  * *** empty log message ***
101  *
102  * Revision 1.1 2002/06/21 12:45:26 colin
103  * restructured com.ivata.groupware.web
104  * -----------------------------------------------------------------------------
105  */

106 package com.ivata.groupware.business.calendar.event.meeting.attendee;
107
108 import com.ivata.groupware.business.addressbook.person.PersonDO;
109 import com.ivata.groupware.business.calendar.event.meeting.MeetingDO;
110 import com.ivata.groupware.container.persistence.BaseDO;
111
112 /**
113  * <p>Every meeting in ivata groupware may have many attendees, each of whom may
114  * or may not be intranet users themselves. This class records which of the
115  * invited attendees have confirmed they will attend.</p>
116  *
117  * @since 2002-06-18
118  * @author Colin MacLeod
119  * <a HREF='mailto:colin.macleod@ivata.com'>colin.macleod@ivata.com</a>
120  * @version $Revision: 1.3 $
121  *
122  * @hibernate.class
123  * table="meeting_attendee"
124  * @hibernate.cache
125  * usage="read-write"
126  */

127 public class AttendeeDO extends BaseDO {
128     /**
129      * <p>Find out whether or not this attendess has confirmed s/he will attend.</p>
130      */

131     private boolean confirmed;
132
133     /**
134      * <p>The meeting this attendee refers to.</p>
135      */

136     private MeetingDO meeting;
137
138     /**
139      * <p>Person who should attend.</p>
140      */

141     private PersonDO person;
142     /**
143      * <p>Find out whether or not this attendess has confirmed s/he will attend.</p>
144      *
145      * @return <code>true</code> if the attendee will attend, otherwise
146      * <code>false</code>.
147      *
148      * @hibernate.property
149      */

150     public final boolean getConfirmed() {
151         return confirmed;
152     }
153     /**
154      * <p>Get the meeting this attendee refers to.</p>
155      *
156      * @return the meeting this attendee refers to.
157      *
158      * @hibernate.many-to-one
159      * class = com.ivata.groupware.business.calendar.event.EventDO
160      */

161     public final MeetingDO getMeeting() {
162         return meeting;
163     }
164     /**
165      * <p>Get person who should attend.</p>
166      *
167      * @return person who should attend.
168      *
169      * @hibernate.many-to-one
170      */

171     public PersonDO getPerson() {
172         return person;
173     }
174
175     /**
176      * <p>Set whether or not this attendess has confirmed s/he will attend.</p>
177      *
178      * @param confirmed <code>true</code> if the attendee will attend, otherwise
179      * <code>false</code>.
180      */

181     public final void setConfirmed(final boolean confirmed) {
182         this.confirmed = confirmed;
183     }
184
185     /**
186      * <p>Set the meeting this attendee refers to.</p>
187      *
188      * @param meeting meeting this attendee refers to.
189      */

190     public final void setMeeting(final MeetingDO meeting) {
191         this.meeting = meeting;
192     }
193
194     /**
195      * <p>Set person who should attend.</p>
196      *
197      * @param person person who should attend.
198      */

199     public final void setPerson(final PersonDO person) {
200         this.person = person;
201     }
202 }
203
Popular Tags