KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * $$Id: Topic.java,v 1.3 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 import java.util.Date JavaDoc;
33
34 /**
35  * DOCUMENT ME!
36  *
37  * @author Bel
38  */

39 public class Topic implements Serializable JavaDoc {
40     /**
41      *
42      */

43     private static final long serialVersionUID = 3890758454824674572L;
44
45     private long messagesCount;
46
47     private Message lastMessage;
48
49     private Date JavaDoc lintime;
50
51     private int threadid;
52
53     private int sortby;
54
55     private int locked;
56
57     private String JavaDoc subject;
58
59     /**
60      * DOCUMENT ME!
61      *
62      * @return DOCUMENT ME!
63      */

64     public Date JavaDoc getLintime() {
65         return lintime;
66     }
67
68     /**
69      * DOCUMENT ME!
70      *
71      * @return DOCUMENT ME!
72      */

73     public int getThreadid() {
74         return threadid;
75     }
76
77     /**
78      * DOCUMENT ME!
79      *
80      * @param lintime
81      * DOCUMENT ME!
82      */

83     public void setLintime(Date JavaDoc lintime) {
84         this.lintime = lintime;
85     }
86
87     /**
88      * DOCUMENT ME!
89      *
90      * @param threadid
91      * DOCUMENT ME!
92      */

93     public void setThreadid(int threadid) {
94         this.threadid = threadid;
95     }
96
97     /**
98      * DOCUMENT ME!
99      *
100      * @return
101      */

102     public Message getLastMessage() {
103         return lastMessage;
104     }
105
106     /**
107      * DOCUMENT ME!
108      *
109      * @param message
110      */

111     public void setLastMessage(Message message) {
112         lastMessage = message;
113     }
114
115     /**
116      * DOCUMENT ME!
117      *
118      * @return
119      */

120     public String JavaDoc getSubject() {
121         return subject;
122     }
123
124     /**
125      * DOCUMENT ME!
126      *
127      * @param string
128      */

129     public void setSubject(String JavaDoc string) {
130         subject = string;
131     }
132
133     /**
134      * DOCUMENT ME!
135      *
136      * @return
137      */

138     public long getMessagesCount() {
139         return messagesCount;
140     }
141
142     /**
143      * DOCUMENT ME!
144      *
145      * @param i
146      */

147     public void setMessagesCount(long i) {
148         messagesCount = i;
149     }
150
151     /**
152      * DOCUMENT ME!
153      *
154      * @return
155      */

156     public int getSortby() {
157         return sortby;
158     }
159
160     /**
161      * DOCUMENT ME!
162      *
163      * @param i
164      */

165     public void setSortby(int i) {
166         sortby = i;
167     }
168
169     /**
170      * DOCUMENT ME!
171      *
172      * @return
173      */

174     public int getLocked() {
175         return locked;
176     }
177
178     /**
179      * DOCUMENT ME!
180      *
181      * @param i
182      */

183     public void setLocked(int i) {
184         locked = i;
185     }
186
187 }
188
Popular Tags