1 25 26 27 package org.nemesis.forum; 28 29 import java.util.Date ; 30 import java.util.Iterator ; 31 32 import org.nemesis.forum.exception.UnauthorizedException; 33 34 66 public interface Message { 67 68 69 71 72 73 78 public int getID(); 79 80 85 public Date getCreationDate(); 86 87 98 public void setCreationDate(Date creationDate) throws UnauthorizedException; 99 100 108 public Date getModifiedDate(); 109 110 120 public void setModifiedDate(Date modifiedDate) throws UnauthorizedException; 121 122 130 public String getSubject(); 131 132 145 public String getUnfilteredSubject(); 146 147 153 public void setSubject(String subject) throws UnauthorizedException; 154 155 163 public String getBody(); 164 165 178 public String getUnfilteredBody(); 179 180 186 public void setBody(String body) throws UnauthorizedException; 187 188 194 public User getUser(); 195 196 208 public String getProperty(String name); 209 210 224 public String getUnfilteredProperty(String name); 225 226 235 public void setProperty(String name, String value); 236 237 242 public Iterator propertyNames(); 243 244 250 public boolean isAnonymous(); 251 252 257 public ForumThread getForumThread(); 258 259 269 public boolean hasPermission(int type); 270 271 275 public boolean isApproved(); 276 277 public void setApproved(boolean approved) throws UnauthorizedException; 278 } 279 280 | Popular Tags |