KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portlet > forums > model > Topic


1 /*****************************************
2  * *
3  * JBoss Portal: The OpenSource Portal *
4  * *
5  * Forums JBoss Portlet *
6  * *
7  * Distributable under GPL license. *
8  * See terms of license at gnu.org. *
9  * *
10  *****************************************/

11 package org.jboss.portlet.forums.model;
12
13 import java.util.Collection JavaDoc;
14 import java.util.Date JavaDoc;
15 import java.util.List JavaDoc;
16
17 /**
18  * @author <a HREF="mailto:theute@jboss.org">Thomas Heute</a>
19  * @version $Revision: 1.4 $
20  */

21 public interface Topic
22 {
23    /**
24     * DOCUMENT_ME
25     *
26     * @return DOCUMENT_ME
27     */

28    Integer JavaDoc getID();
29
30    /**
31     * DOCUMENT_ME
32     *
33     * @param value DOCUMENT_ME
34     */

35    void setPosts(Collection JavaDoc value);
36
37    /**
38     * DOCUMENT_ME
39     *
40     * @return DOCUMENT_ME
41     */

42    Collection JavaDoc getPosts();
43
44    /**
45     * DOCUMENT_ME
46     *
47     * @return DOCUMENT_ME
48     */

49    Forum getForum();
50
51    /**
52     * DOCUMENT_ME
53     *
54     * @param forum DOCUMENT_ME
55     */

56    void setForum(Forum forum);
57
58    /**
59     * DOCUMENT_ME
60     *
61     * @return DOCUMENT_ME
62     */

63    int getViewCount();
64
65    /**
66     * DOCUMENT_ME
67     *
68     * @param views DOCUMENT_ME
69     */

70    void setViewCount(int views);
71
72    /**
73     * DOCUMENT_ME
74     *
75     * @return DOCUMENT_ME
76     */

77    int getReplies();
78
79    /**
80     * DOCUMENT_ME
81     *
82     * @param replies DOCUMENT_ME
83     */

84    void setReplies(int replies);
85
86    /**
87     * DOCUMENT_ME
88     *
89     * @return DOCUMENT_ME
90     */

91    Post getFirstPost();
92
93    /**
94     * DOCUMENT_ME
95     *
96     * @param post DOCUMENT_ME
97     */

98    void setFirstPost(Post post);
99
100    /**
101     * DOCUMENT_ME
102     *
103     * @return DOCUMENT_ME
104     */

105    Post getLastPost();
106
107    /**
108     * DOCUMENT_ME
109     *
110     * @param id DOCUMENT_ME
111     */

112    void setLastPost(Post id);
113
114    /**
115     * DOCUMENT_ME
116     *
117     * @return DOCUMENT_ME
118     */

119    Date JavaDoc getLastPostDate();
120
121    /**
122     * DOCUMENT_ME
123     *
124     * @param lastPostDate DOCUMENT_ME
125     */

126    void setLastPostDate(Date JavaDoc lastPostDate);
127
128    /**
129     * DOCUMENT_ME
130     *
131     * @return DOCUMENT_ME
132     */

133 // Date getCreateDate();
134

135    /**
136     * DOCUMENT_ME
137     *
138     * @param date DOCUMENT_ME
139     */

140 // void setCreateDate(Date date);
141

142    /**
143     * DOCUMENT_ME
144     *
145     * @return DOCUMENT_ME
146     */

147 // Date getEditDate();
148

149    /**
150     * DOCUMENT_ME
151     *
152     * @param editDate DOCUMENT_ME
153     */

154 // void setEditDate(Date editDate);
155

156    /**
157     * DOCUMENT_ME
158     *
159     * @return DOCUMENT_ME
160     */

161    Poster getPoster();
162
163    /**
164     * DOCUMENT_ME
165     *
166     * @param poster DOCUMENT_ME
167     */

168    void setPoster(Poster poster);
169
170    /**
171     * DOCUMENT_ME
172     *
173     * @return DOCUMENT_ME
174     */

175    int getType();
176
177    /**
178     * DOCUMENT_ME
179     *
180     * @param type DOCUMENT_ME
181     */

182    void setType(int type);
183
184    /**
185     * DOCUMENT_ME
186     *
187     * @return DOCUMENT_ME
188     */

189    int getStatus();
190
191    /**
192     * DOCUMENT_ME
193     *
194     * @param status DOCUMENT_ME
195     */

196    void setStatus(int status);
197
198    /**
199     * DOCUMENT_ME
200     *
201     * @return DOCUMENT_ME
202     */

203    Topic getTarget();
204
205    /**
206     * DOCUMENT_ME
207     *
208     * @param target DOCUMENT_ME
209     */

210    void setTarget(Topic target);
211
212    /**
213     * DOCUMENT_ME
214     *
215     * @return DOCUMENT_ME
216     */

217    String JavaDoc getSubject();
218
219    /**
220     * DOCUMENT_ME
221     *
222     * @param subject DOCUMENT_ME
223     */

224    void setSubject(String JavaDoc subject);
225
226    /**
227     * @return
228     */

229    List JavaDoc getWatches();
230 }
Popular Tags