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