KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * $$Id: LastTopic.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  * Alex Pavlov <alexnet@sourceforge.net>
23  *
24  * ***** END LICENSE BLOCK ***** */

25 package org.jresearch.gossip.beans.forum;
26
27 /**
28  * DOCUMENT ME!
29  *
30  * @author dbelov
31  */

32 public class LastTopic extends Topic {
33
34     /**
35      *
36      */

37     private static final long serialVersionUID = 633866999173490937L;
38
39     private int forumid;
40
41     private String JavaDoc forumName;
42
43     private int mod_flag;
44
45     private Message rootMessage;
46
47     /**
48      * DOCUMENT ME!
49      *
50      * @return
51      */

52     public int getForumid() {
53         return forumid;
54     }
55
56     /**
57      * DOCUMENT ME!
58      *
59      * @return
60      */

61     public int getMod_flag() {
62         return mod_flag;
63     }
64
65     /**
66      * DOCUMENT ME!
67      *
68      * @param i
69      */

70     public void setForumid(int i) {
71         forumid = i;
72     }
73
74     /**
75      * DOCUMENT ME!
76      *
77      * @param i
78      */

79     public void setMod_flag(int i) {
80         mod_flag = i;
81     }
82
83     /**
84      * DOCUMENT ME!
85      *
86      * @return
87      */

88     public String JavaDoc getForumName() {
89         return forumName;
90     }
91
92     /**
93      * DOCUMENT ME!
94      *
95      * @param string
96      */

97     public void setForumName(String JavaDoc string) {
98         forumName = string;
99     }
100
101     /**
102      * get root message in topic.
103      *
104      * @return root message in topic.
105      */

106     public Message getRootMessage() {
107         return rootMessage;
108     }
109
110     /**
111      * Assign root message for topic.
112      *
113      * @param message
114      * new root message
115      */

116     public void setRootMessage(Message message) {
117         rootMessage = message;
118     }
119
120 }
121
Popular Tags