KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portlet > forums > commands > CommandConstants


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.commands;
12
13 import org.jboss.portal.common.command.result.Result;
14 import org.jboss.portal.common.command.result.ResultType;
15
16 /**
17  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
18  * @version $Revision: 1.1.1.1 $
19  */

20 public interface CommandConstants
21 {
22    /**
23     * DOCUMENT_ME
24     *
25     * @version $Revision: 1.1.1.1 $
26     * @author $author$
27     */

28    public class ImmutableResult
29       extends ResultType
30       implements Result
31    {
32       /**
33        * Creates a new {@link ImmutableResult} object.
34        *
35        * @param name DOCUMENT_ME
36        */

37       public ImmutableResult(String JavaDoc name)
38       {
39          super(name);
40       }
41
42       /**
43        * DOCUMENT_ME
44        *
45        * @return DOCUMENT_ME
46        */

47       public ResultType getType()
48       {
49          return this;
50       }
51    }
52
53    /** DOCUMENT_ME */
54    ResultType TYPE_POST_DELETED = SimpleResultType.TYPE_POST_DELETED;
55
56    /** DOCUMENT_ME */
57    ResultType TYPE_COMPOSITE = SimpleResultType.TYPE_COMPOSITE;
58
59    /** DOCUMENT_ME */
60    ImmutableResult TYPE_CANNOT_INSERT_VOTE = new ImmutableResult("TYPE_CANNOT_INSERT_VOTE");
61
62    /** DOCUMENT_ME */
63    ImmutableResult TYPE_CANNOT_OBTAIN_USER_DATA = new ImmutableResult("TYPE_CANNOT_OBTAIN_USER_DATA");
64
65    /** DOCUMENT_ME */
66    ImmutableResult TYPE_VOTE_CAST = new ImmutableResult("TYPE_VOTE_CAST");
67
68    /** DOCUMENT_ME */
69    ImmutableResult TYPE_NO_VOTE_OPTION = new ImmutableResult("TYPE_NO_VOTE_OPTION");
70
71    /** DOCUMENT_ME */
72    ImmutableResult TYPE_REDIRECT = new ImmutableResult("TYPE_REDIRECT");
73
74    /** DOCUMENT_ME */
75    ImmutableResult TYPE_ERROR_IN_POSTING = new ImmutableResult("TYPE_ERROR_IN_POSTING");
76
77    /** DOCUMENT_ME */
78    ImmutableResult TYPE_ERROR_IN_DELETING_POST = new ImmutableResult("TYPE_ERROR_IN_DELETING_POST");
79
80    /** DOCUMENT_ME */
81    ImmutableResult TYPE_ERROR_IN_DELETING_POLL = new ImmutableResult("TYPE_ERROR_IN_DELETING_POLL");
82
83    /** DOCUMENT_ME */
84    ImmutableResult TYPE_POLL_DELETED = new ImmutableResult("TYPE_POLL_DELETED");
85
86    /** DOCUMENT_ME */
87    ImmutableResult TYPE_CONTINUE = new ImmutableResult("TYPE_CONTINUE");
88
89    /** DOCUMENT_ME */
90    ImmutableResult TYPE_FORUM_LOCKED = new ImmutableResult("TYPE_FORUM_LOCKED");
91
92    /** DOCUMENT_ME */
93    ImmutableResult TYPE_ALREADY_VOTED = new ImmutableResult("TYPE_ALREADY_VOTED");
94
95    /** DOCUMENT_ME */
96    ImmutableResult TYPE_NOT_AUTHORIZED = new ImmutableResult("TYPE_NOT_AUTHORIZED");
97
98    /** DOCUMENT_ME */
99    ImmutableResult TYPE_TOPIC_IS_LOCKED = new ImmutableResult("TYPE_TOPIC_IS_LOCKED");
100
101    /** DOCUMENT_ME */
102    ImmutableResult TYPE_CANNOT_XXX_OTHER_POST_WHEN_NOT_MODERATOR =
103       new ImmutableResult("TYPE_CANNOT_XXX_OTHER_POST_WHEN_NOT_MODERATOR");
104
105    /** DOCUMENT_ME */
106    ImmutableResult TYPE_CANNOT_DELETE_REPLIED = new ImmutableResult("TYPE_CANNOT_DELETE_REPLIED");
107
108    /** DOCUMENT_ME */
109    ImmutableResult TYPE_CANNOT_DELETE_POLL = new ImmutableResult("TYPE_CANNOT_DELETE_POLL");
110
111    /** DOCUMENT_ME */
112    ImmutableResult TYPE_FORUM_CREATED = new ImmutableResult("TYPE_FORUM_CREATED");
113
114    /** DOCUMENT_ME */
115    ImmutableResult TYPE_CANNOT_CREATE_FORUM_INVALID_NAME =
116       new ImmutableResult("TYPE_CANNOT_CREATE_FORUM_INVALID_NAME");
117
118    /** DOCUMENT_ME */
119    ImmutableResult TYPE_CANNOT_CREATE_FORUM_INVALID_CATEGORY =
120       new ImmutableResult("TYPE_CANNOT_CREATE_FORUM_INVALID_CATEGORY");
121
122    /** DOCUMENT_ME */
123    ImmutableResult TYPE_CANNOT_CREATE_FORUM_INSERTION_FAILED =
124       new ImmutableResult("TYPE_CANNOT_CREATE_FORUM_INSERTION_FAILED");
125
126    /** DOCUMENT_ME */
127    ImmutableResult TYPE_CATEGORY_CREATED = new ImmutableResult("TYPE_CATEGORY_CREATED");
128
129    /** DOCUMENT_ME */
130    ImmutableResult TYPE_CANNOT_CREATE_CATEGORY_INSERTION_FAILED =
131       new ImmutableResult("TYPE_CANNOT_CREATE_CATEGORY_INSERTION_FAILED");
132
133    /** DOCUMENT_ME */
134    ImmutableResult TYPE_CANNOT_CREATE_CATEGORY_INVALID_NAME =
135       new ImmutableResult("TYPE_CANNOT_CREATE_CATEGORY_INVALID_NAME");
136
137    /** DOCUMENT_ME */
138    ImmutableResult TYPE_FORUM_REMOVED = new ImmutableResult("TYPE_FORUM_REMOVED");
139
140    /** DOCUMENT_ME */
141    ImmutableResult TYPE_CANNOT_REMOVE_FORUM_REMOVAL_FAILED =
142       new ImmutableResult("TYPE_CANNOT_REMOVE_FORUM_REMOVAL_FAILED");
143
144    /** DOCUMENT_ME */
145    ImmutableResult TYPE_FORUM_MOVED_AND_REMOVED = new ImmutableResult("TYPE_FORUM_MOVED_AND_REMOVED");
146
147    /** DOCUMENT_ME */
148    ImmutableResult TYPE_CANNOT_MOVE_AND_REMOVE_FORUM = new ImmutableResult("TYPE_CANNOT_MOVE_AND_REMOVE_FORUM");
149
150    /** DOCUMENT_ME */
151    ImmutableResult TYPE_CATEGORY_REMOVED = new ImmutableResult("TYPE_CATEGORY_REMOVED");
152
153    /** DOCUMENT_ME */
154    ImmutableResult TYPE_CANNOT_REMOVE_CATEGORY = new ImmutableResult("TYPE_CANNOT_REMOVE_CATEGORY");
155
156    /** DOCUMENT_ME */
157    ImmutableResult TYPE_FORUMS_ORDERED = new ImmutableResult("TYPE_FORUMS_ORDERED");
158
159    /** DOCUMENT_ME */
160    ImmutableResult TYPE_CANNOT_ORDER_FORUMS = new ImmutableResult("TYPE_CANNOT_ORDER_FORUMS");
161
162    /** DOCUMENT_ME */
163    ImmutableResult TYPE_CATEGORIES_ORDERED = new ImmutableResult("TYPE_CATEGORIES_ORDERED");
164
165    /** DOCUMENT_ME */
166    ImmutableResult TYPE_CANNOT_ORDER_CATEGORIES = new ImmutableResult("TYPE_CANNOT_ORDER_CATEGORIES");
167
168    /** DOCUMENT_ME */
169    ImmutableResult TYPE_CATEGORY_UPDATED = new ImmutableResult("TYPE_CATEGORY_UPDATED");
170
171    /** DOCUMENT_ME */
172    ImmutableResult TYPE_FORUM_UPDATED = new ImmutableResult("TYPE_FORUM_UPDATED");
173
174    /** DOCUMENT_ME */
175    ImmutableResult TYPE_TOPICS_REMOVED = new ImmutableResult("TYPE_TOPICS_REMOVED");
176
177    /** DOCUMENT_ME */
178    ImmutableResult TYPE_CANNOT_REMOVE_TOPICS = new ImmutableResult("TYPE_CANNOT_REMOVE_TOPICS");
179
180    /** DOCUMENT_ME */
181    ImmutableResult TYPE_TOPIC_MOVED = new ImmutableResult("TYPE_TOPIC_MOVED");
182
183    /** DOCUMENT_ME */
184    ImmutableResult TYPE_CANNOT_MOVE_TOPIC = new ImmutableResult("TYPE_CANNOT_MOVE_TOPIC");
185
186    /** DOCUMENT_ME */
187    ImmutableResult TYPE_TOPIC_LOCKED = new ImmutableResult("TYPE_TOPIC_LOCKED");
188
189    /** DOCUMENT_ME */
190    ImmutableResult TYPE_TOPIC_UNLOCKED = new ImmutableResult("TYPE_TOPIC_UNLOCKED");
191
192    /** DOCUMENT_ME */
193    ImmutableResult TYPE_CANNOT_LOCK_TOPIC_MOVED = new ImmutableResult("TYPE_CANNOT_LOCK_TOPIC_MOVED");
194
195    /** DOCUMENT_ME */
196    ImmutableResult TYPE_NEW_TOPIC_POSTED = new ImmutableResult("TYPE_NEW_TOPIC_POSTED");
197
198    /** DOCUMENT_ME */
199    ImmutableResult TYPE_EDIT_POST_POSTED = new ImmutableResult("TYPE_EDIT_POST_POSTED");
200
201    /** DOCUMENT_ME */
202    ImmutableResult TYPE_REPOSTED = new ImmutableResult("TYPE_REPOSTED");
203
204    /** DOCUMENT_ME */
205    ImmutableResult TYPE_REPLY_POSTED = new ImmutableResult("TYPE_REPLY_POSTED");
206
207    /** DOCUMENT_ME */
208    ImmutableResult TYPE_NO_SUCH_FORUM = new ImmutableResult("TYPE_NO_SUCH_FORUM");
209
210    /** DOCUMENT_ME */
211    ImmutableResult TYPE_NO_SUCH_TOPIC = new ImmutableResult("TYPE_NO_SUCH_TOPIC");
212
213    /** DOCUMENT_ME */
214    ImmutableResult TYPE_NO_SUCH_POST = new ImmutableResult("TYPE_NO_SUCH_POST");
215
216    /** DOCUMENT_ME */
217    ImmutableResult TYPE_CANNOT_QUERY = new ImmutableResult("TYPE_CANNOT_QUERY");
218
219    /** DOCUMENT_ME */
220    ImmutableResult TYPE_INVALID_POST_SUBJECT = new ImmutableResult("TYPE_INVALID_POST_SUBJECT");
221
222    /** DOCUMENT_ME */
223    ImmutableResult TYPE_INVALID_POST_MESSAGE = new ImmutableResult("TYPE_INVALID_POST_MESSAGE");
224
225    /** DOCUMENT_ME */
226    ImmutableResult TYPE_INVALID_POLL_TITLE = new ImmutableResult("TYPE_INVALID_POLL_TITLE");
227
228    /** DOCUMENT_ME */
229    ImmutableResult TYPE_TOO_FEW_POLL_OPTION = new ImmutableResult("TYPE_TOO_FEW_POLL_OPTION");
230
231    /** DOCUMENT_ME */
232    ImmutableResult TYPE_TOO_MANY_POLL_OPTION = new ImmutableResult("TYPE_TOO_MANY_POLL_OPTION");
233
234    /** DOCUMENT_ME */
235    ImmutableResult TYPE_INVALID_POLL_OPTION = new ImmutableResult("TYPE_INVALID_POLL_OPTION");
236
237    /** DOCUMENT_ME */
238    ImmutableResult TYPE_FLOODING_CANNOT_CREATE = new ImmutableResult("TYPE_FLOODING_CANNOT_CREATE");
239
240    /** DOCUMENT_ME */
241    ImmutableResult TYPE_COULD_NOT_OBTAIN_VOTE_DATA = new ImmutableResult("TYPE_COULD_NOT_OBTAIN_VOTE_DATA");
242
243    /** DOCUMENT_ME */
244    ImmutableResult TYPE_CANNOT_ADD_ATTACHMENT = new ImmutableResult("TYPE_CANNOT_ADD_ATTACHMENT");
245
246    /** DOCUMENT_ME */
247    ImmutableResult TYPE_CANNOT_DELETE_ATTACHMENT = new ImmutableResult("TYPE_CANNOT_DELETE_ATTACHMENT");
248
249    /** DOCUMENT_ME */
250    ImmutableResult TYPE_ERROR_IN_DELETING_ATTACHMENT = new ImmutableResult("TYPE_ERROR_IN_DELETING_ATTACHMENT");
251 }
Popular Tags