1 53 54 55 package com.Yasna.forum; 56 57 import java.util.*; 58 59 91 public interface ForumMessage { 92 93 98 public int getID(); 99 100 105 public Date getCreationDate(); 106 107 118 public void setCreationDate(Date creationDate) throws UnauthorizedException; 119 120 128 public Date getModifiedDate(); 129 130 140 public void setModifiedDate(Date modifiedDate) throws UnauthorizedException; 141 142 150 public String getSubject(); 151 152 165 public String getUnfilteredSubject(); 166 167 173 public void setSubject(String subject) throws UnauthorizedException; 174 175 181 public void setReplyPrivateUserId(int replyPrivateUserId) throws UnauthorizedException; 182 183 189 public void setApprovment(boolean approved) throws UnauthorizedException; 190 191 192 200 public String getBody(); 201 202 215 public String getUnfilteredBody(); 216 217 223 public void setBody(String body) throws UnauthorizedException; 224 225 231 public int getReplyPrivateUserId(); 232 233 238 public boolean isPrivate(); 239 240 246 public User getUser(); 247 248 260 public String getProperty(String name); 261 262 276 public String getUnfilteredProperty(String name); 277 278 287 public void setProperty(String name, String value); 288 289 294 public Iterator propertyNames(); 295 296 302 public boolean isAnonymous(); 303 304 310 public boolean isApproved(); 311 312 317 public ForumThread getForumThread(); 318 319 329 public boolean hasPermission(int type); 330 335 public MessageRanking getRanking(); 336 343 public void setRanking(int para) throws UnauthorizedException; 344 } 345 346 | Popular Tags |