1 53 54 106 107 package com.Yasna.forum; 108 109 import java.util.*; 110 import java.io.*; 111 112 123 public abstract class ForumMessageFilter implements ForumMessage, Serializable 124 { 125 126 129 protected ForumMessage message = null; 130 131 136 public ForumMessageFilter() { 137 } 139 140 145 public ForumMessageFilter(ForumMessage message) { 146 this.message = message; 147 } 148 149 155 public abstract ForumMessageFilter clone(ForumMessage message); 156 157 162 public abstract String getName(); 163 164 171 public abstract String getDescription(); 172 173 182 public String getDocumentationURL() { 183 return null; 184 } 185 186 191 public abstract String getAuthor(); 192 193 201 public abstract int getMajorVersion(); 202 203 211 public abstract int getMinorVersion(); 212 213 219 public abstract String getFilterProperty(String name); 220 221 227 public abstract String getFilterPropertyDescription(String name); 228 229 234 public abstract Enumeration filterPropertyNames(); 235 236 246 public abstract void setFilterProperty(String name, String value) 247 throws IllegalArgumentException ; 248 249 254 public void saveFilterProperties() { 255 }; 259 260 262 public int getID() { 263 return message.getID(); 264 } 265 266 public Date getCreationDate() { 267 return message.getCreationDate(); 268 } 269 270 public void setCreationDate(Date creationDate) throws UnauthorizedException 271 { 272 message.setCreationDate(creationDate); 273 } 274 275 public Date getModifiedDate() { 276 return message.getModifiedDate(); 277 } 278 279 public void setModifiedDate(Date modifiedDate) throws UnauthorizedException 280 { 281 message.setModifiedDate(modifiedDate); 282 } 283 284 public String getSubject() { 285 return message.getSubject(); 286 } 287 288 public int getReplyPrivateUserId() { 289 return message.getReplyPrivateUserId(); 290 } 291 292 public boolean isPrivate() { 293 return message.isPrivate(); 294 } 295 296 public String getUnfilteredSubject() { 297 return message.getUnfilteredSubject(); 298 } 299 300 public void setSubject(String subject) throws UnauthorizedException { 301 message.setSubject(subject); 302 } 303 304 public void setReplyPrivateUserId(int replyPrivateUserId) throws UnauthorizedException { 305 message.setReplyPrivateUserId(replyPrivateUserId); 306 } 307 308 public String getBody() { 309 return message.getBody(); 310 } 311 312 public String getUnfilteredBody() { 313 return message.getUnfilteredBody(); 314 } 315 316 public void setBody(String body) throws UnauthorizedException { 317 this.message.setBody(body); 318 } 319 320 public void setApprovment(boolean approve) throws UnauthorizedException { 321 this.message.setApprovment(approve); 322 } 323 324 public User getUser() { 325 return message.getUser(); 326 } 327 328 public String getProperty(String name) { 329 return message.getProperty(name); 330 } 331 332 public String getUnfilteredProperty(String name) { 333 return message.getUnfilteredBody(); 334 } 335 336 public void setProperty(String name, String value) { 337 message.setProperty(name, value); 338 } 339 340 public Iterator propertyNames() { 341 return message.propertyNames(); 342 } 343 344 public boolean isAnonymous() { 345 return message.isAnonymous(); 346 } 347 348 public boolean isApproved() { 349 return message.isApproved(); 350 } 351 352 public ForumThread getForumThread() { 353 return message.getForumThread(); 354 } 355 356 public boolean hasPermission(int type) { 357 return message.hasPermission(type); 358 } 359 public MessageRanking getRanking(){ 360 return message.getRanking(); 361 } 362 public void setRanking(int para) throws UnauthorizedException{ 363 message.setRanking(para); 364 } 365 366 367 369 public String toString() { 370 return message.toString(); 371 } 372 } 373 | Popular Tags |