KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portlet > forums > impl > ForumWatchImpl


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

11 package org.jboss.portlet.forums.impl;
12
13 import java.io.Serializable JavaDoc;
14
15 import org.jboss.portal.core.model.User;
16 import org.jboss.portlet.forums.model.Forum;
17 import org.jboss.portlet.forums.model.ForumWatch;
18 import org.jboss.portlet.forums.model.Poster;
19
20 /**
21  * Watchers of forums.
22  *
23  * @hibernate.joined-subclass
24  * table="jbp_forums_forumswatch"
25  *
26  * @hibernate.joined-subclass-key
27  * column="jbp_id"
28  *
29  * @author <a HREF="mailto:julien@jboss.org">Julien Viet </a>
30  * @author <a HREF="mailto:theute@jboss.org">Thomas Heute </a>
31  * @version $Revision: 1.6 $
32  */

33 public class ForumWatchImpl
34    extends WatchImpl
35    implements Serializable JavaDoc,
36               ForumWatch
37 {
38    private Forum forum;
39    private int mode;
40
41    /**
42     * Creates a new {@link ForumWatchImpl} object.
43     */

44    public ForumWatchImpl()
45    {
46    }
47
48    /**
49     * @hibernate.many-to-one
50     * column="jbp_forum_id"
51     * class="org.jboss.portlet.forums.impl.ForumImpl"
52     */

53    public Forum getForum()
54    {
55       return forum;
56    }
57
58    /**
59     * DOCUMENT_ME
60     *
61     * @param forum DOCUMENT_ME
62     */

63    public void setForum(Forum forum)
64    {
65       this.forum = forum;
66    }
67 }
Popular Tags