KickJava   Java API By Example, From Geeks To Geeks.

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


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.portlet.forums.model.Message;
16
17 /**
18  * A DVC object that groups the message informations for a post.
19  *
20  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
21  * @author <a HREF="mailto:theute@jboss.org">Thomas Heute</a>
22  * @version $Revision: 1.3 $
23  */

24 public class MessageImpl
25    implements Message,
26               Serializable JavaDoc,
27               Cloneable JavaDoc
28 {
29    private String JavaDoc subject = "";
30    private String JavaDoc text = "";
31    private boolean BBCodeEnabled = true;
32    private boolean HTMLEnabled = false;
33    private boolean smiliesEnabled = false;
34    private boolean signatureEnabled = true;
35
36    /**
37     * @hibernate.property
38     * column="jbp_subject"
39     */

40    public String JavaDoc getSubject()
41    {
42       return subject;
43    }
44
45    /**
46     * DOCUMENT_ME
47     *
48     * @param subject DOCUMENT_ME
49     */

50    public void setSubject(String JavaDoc subject)
51    {
52       this.subject = subject;
53    }
54
55    /**
56     * @hibernate.property
57     * column="jbp_text"
58     * type=text
59     */

60    public String JavaDoc getText()
61    {
62       return text;
63    }
64
65    /**
66     * DOCUMENT_ME
67     *
68     * @param text DOCUMENT_ME
69     */

70    public void setText(String JavaDoc text)
71    {
72       this.text = text;
73    }
74
75    /**
76     * DOCUMENT_ME
77     *
78     * @return DOCUMENT_ME
79     */

80    public boolean getBBCodeEnabled()
81    {
82       return BBCodeEnabled;
83    }
84
85    /**
86     * DOCUMENT_ME
87     *
88     * @param BBCodeEnabled DOCUMENT_ME
89     */

90    public void setBBCodeEnabled(boolean BBCodeEnabled)
91    {
92       this.BBCodeEnabled = BBCodeEnabled;
93    }
94
95    /**
96     * DOCUMENT_ME
97     *
98     * @return DOCUMENT_ME
99     */

100    public boolean getHTMLEnabled()
101    {
102       return HTMLEnabled;
103    }
104
105    /**
106     * DOCUMENT_ME
107     *
108     * @param HTMLEnabled DOCUMENT_ME
109     */

110    public void setHTMLEnabled(boolean HTMLEnabled)
111    {
112       this.HTMLEnabled = HTMLEnabled;
113    }
114
115    /**
116     * DOCUMENT_ME
117     *
118     * @return DOCUMENT_ME
119     */

120    public boolean getSmiliesEnabled()
121    {
122       return smiliesEnabled;
123    }
124
125    /**
126     * DOCUMENT_ME
127     *
128     * @param smiliesEnabled DOCUMENT_ME
129     */

130    public void setSmiliesEnabled(boolean smiliesEnabled)
131    {
132       this.smiliesEnabled = smiliesEnabled;
133    }
134
135    /**
136     * DOCUMENT_ME
137     *
138     * @return DOCUMENT_ME
139     */

140    public boolean getSignatureEnabled()
141    {
142       return signatureEnabled;
143    }
144
145    /**
146     * DOCUMENT_ME
147     *
148     * @param signatureEnabled DOCUMENT_ME
149     */

150    public void setSignatureEnabled(boolean signatureEnabled)
151    {
152       this.signatureEnabled = signatureEnabled;
153    }
154 }
Popular Tags