KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jresearch > gossip > beans > forum > Forum


1 /*
2  * $$Id: Forum.java,v 1.4 2005/06/07 12:31:55 bel70 Exp $$
3  *
4  * ***** BEGIN LICENSE BLOCK *****
5  * The contents of this file are subject to the Mozilla Public License
6  * Version 1.1 (the "License"); you may not use this file except in
7  * compliance with the License. You may obtain a copy of the License
8  * at http://www.mozilla.org/MPL/
9  *
10  * Software distributed under the License is distributed on an "AS IS"
11  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
12  * the License for the specific language governing rights and
13  * limitations under the License.
14  *
15  * The Original Code is JGossip forum code.
16  *
17  * The Initial Developer of the Original Code is the JResearch, Org.
18  * Portions created by the Initial Developer are Copyright (C) 2004
19  * the Initial Developer. All Rights Reserved.
20  *
21  * Contributor(s):
22  * Dmitry Belov <bel@jresearch.org>
23  *
24  * ***** END LICENSE BLOCK ***** */

25 /*
26  * Created on 07.05.2003
27  *
28  */

29 package org.jresearch.gossip.beans.forum;
30
31 import java.io.Serializable JavaDoc;
32
33 /**
34  * DOCUMENT ME!
35  *
36  * @author Bel
37  */

38 public class Forum implements Serializable JavaDoc {
39     /**
40      *
41      */

42     private static final long serialVersionUID = 4496160881013569622L;
43
44     private String JavaDoc description;
45
46     private int groupid;
47
48     private int forumid;
49
50     private int locked;
51
52     private String JavaDoc sort;
53
54     private String JavaDoc title;
55
56     private int threadsCount;
57
58     private int messCount;
59
60     private Message lastMessage;
61
62     private int lastMessThreadId;
63
64     /**
65      * @return Returns the messCount.
66      */

67     public int getMessCount() {
68         return messCount;
69     }
70
71     /**
72      * @param messCount
73      * The messCount to set.
74      */

75     public void setMessCount(int messCount) {
76         this.messCount = messCount;
77     }
78
79     /**
80      * DOCUMENT ME!
81      *
82      * @return DOCUMENT ME!
83      */

84     public String JavaDoc getDescription() {
85         return description;
86     }
87
88     /**
89      * DOCUMENT ME!
90      *
91      * @return DOCUMENT ME!
92      */

93     public int getForumid() {
94         return forumid;
95     }
96
97     /**
98      * DOCUMENT ME!
99      *
100      * @return DOCUMENT ME!
101      */

102     public String JavaDoc getSort() {
103         return sort;
104     }
105
106     /**
107      * DOCUMENT ME!
108      *
109      * @return DOCUMENT ME!
110      */

111     public String JavaDoc getTitle() {
112         return title;
113     }
114
115     /**
116      * DOCUMENT ME!
117      *
118      * @return DOCUMENT ME!
119      */

120     public int getLocked() {
121         return locked;
122     }
123
124     /**
125      * DOCUMENT ME!
126      *
127      * @param description
128      * DOCUMENT ME!
129      */

130     public void setDescription(String JavaDoc description) {
131         this.description = description;
132     }
133
134     /**
135      * DOCUMENT ME!
136      *
137      * @param forumid
138      * DOCUMENT ME!
139      */

140     public void setForumid(int forumid) {
141         this.forumid = forumid;
142     }
143
144     /**
145      * DOCUMENT ME!
146      *
147      * @param locked
148      * DOCUMENT ME!
149      */

150     public void setLocked(int locked) {
151         this.locked = locked;
152     }
153
154     /**
155      * DOCUMENT ME!
156      *
157      * @param sort
158      * DOCUMENT ME!
159      */

160     public void setSort(String JavaDoc sort) {
161         this.sort = sort;
162     }
163
164     /**
165      * DOCUMENT ME!
166      *
167      * @param title
168      * DOCUMENT ME!
169      */

170     public void setTitle(String JavaDoc title) {
171         this.title = title;
172     }
173
174     /**
175      * DOCUMENT ME!
176      *
177      * @param threadsCount
178      * DOCUMENT ME!
179      */

180     public void setThreadsCount(int threadsCount) {
181         this.threadsCount = threadsCount;
182     }
183
184     /**
185      * DOCUMENT ME!
186      *
187      * @return DOCUMENT ME!
188      */

189     public int getThreadsCount() {
190         return threadsCount;
191     }
192
193     /**
194      * DOCUMENT ME!
195      *
196      * @param lastMessage
197      * DOCUMENT ME!
198      */

199     public void setLastMessage(Message lastMessage) {
200         this.lastMessage = lastMessage;
201     }
202
203     /**
204      * DOCUMENT ME!
205      *
206      * @return DOCUMENT ME!
207      */

208     public Message getLastMessage() {
209         return lastMessage;
210     }
211
212     /**
213      * DOCUMENT ME!
214      *
215      * @param lastMessThreadId
216      * DOCUMENT ME!
217      */

218     public void setLastMessThreadId(int lastMessThreadId) {
219         this.lastMessThreadId = lastMessThreadId;
220     }
221
222     /**
223      * DOCUMENT ME!
224      *
225      * @return DOCUMENT ME!
226      */

227     public int getLastMessThreadId() {
228         return lastMessThreadId;
229     }
230
231     /**
232      * DOCUMENT ME!
233      *
234      * @return
235      */

236     public int getGroupid() {
237         return groupid;
238     }
239
240     /**
241      * DOCUMENT ME!
242      *
243      * @param i
244      */

245     public void setGroupid(int i) {
246         groupid = i;
247     }
248 }
249
Popular Tags