1 53 54 106 107 package com.Yasna.forum; 108 109 import java.util.Date ; 110 import java.util.Iterator ; 111 112 149 public interface ForumThread { 150 151 154 public int getID(); 155 156 163 public String getName(); 164 165 168 public Date getCreationDate(); 169 170 181 public void setCreationDate(Date creationDate) throws UnauthorizedException; 182 183 187 public Date getModifiedDate(); 188 189 200 public void setModifiedDate(Date modifiedDate) throws UnauthorizedException; 201 202 208 public boolean isApproved(); 209 210 216 public void setApprovment(boolean approved) throws UnauthorizedException; 217 218 221 public Forum getForum(); 222 223 228 public ForumMessage getMessage(int messageID) 229 throws ForumMessageNotFoundException; 230 231 236 public ForumMessage getRootMessage(); 237 238 243 public int getMessageCount(); 244 251 public int getReadCount(); 252 253 260 public void addReadCount(); 261 262 263 269 public void addMessage(ForumMessage parentMessage, ForumMessage newMessage) throws UnauthorizedException; 270 271 282 public void deleteMessage(ForumMessage message) 283 throws UnauthorizedException; 284 285 308 public void moveMessage(ForumMessage message, ForumThread newThread, 309 ForumMessage parentMessage) throws UnauthorizedException, 310 IllegalArgumentException ; 311 312 316 public TreeWalker treeWalker(); 317 318 321 public Iterator messages(); 322 323 331 public Iterator messages(int startIndex, int numResults); 332 333 341 public boolean hasPermission(int type); 342 public ThreadType getThreadType(); 343 public boolean isSticky(); 344 public void setSticky(boolean param) throws UnauthorizedException; 345 public boolean isClosed(); 346 public void setClosed(boolean param) throws UnauthorizedException; 347 } 348 | Popular Tags |