1 11 package org.jboss.portlet.forums.impl; 12 13 import java.io.Serializable ; 14 import java.util.Collection ; 15 import java.util.Date ; 16 import java.util.List ; 17 18 import org.jboss.portlet.forums.model.Forum; 19 import org.jboss.portlet.forums.model.Post; 20 import org.jboss.portlet.forums.model.Poster; 21 import org.jboss.portlet.forums.model.Topic; 22 23 30 public class TopicImpl 31 implements Serializable , 32 Topic 33 { 34 private Integer id; 35 private Collection posts; 36 private Forum forum; 37 private int viewCount; 38 private Date date; 39 private int replies; 40 private Post firstPost; 41 private Post lastPost; 42 private Date lastPostDate; 43 private Date editDate; 44 private Poster poster; 45 private int type; 46 private int status; 47 private Topic target; 48 private String subject; 49 private List watches; 50 51 54 public TopicImpl() 55 { 56 } 57 58 63 public Integer getID() 64 { 65 return id; 66 } 67 68 73 public void setID(Integer id) 74 { 75 this.id = id; 76 } 77 78 82 public Collection getPosts() 83 { 84 return posts; 85 } 86 87 92 public void setPosts(java.util.Collection value) 93 { 94 posts = value; 95 } 96 97 102 public Forum getForum() 103 { 104 return forum; 105 } 106 107 112 public void setForum(Forum forum) 113 { 114 this.forum = forum; 115 } 116 117 123 public int getViewCount() 124 { 125 return viewCount; 126 } 127 128 133 public void setViewCount(int viewCount) 134 { 135 this.viewCount = viewCount; 136 } 137 138 144 public int getReplies() 145 { 146 return replies; 147 } 148 149 154 public void setReplies(int replies) 155 { 156 this.replies = replies; 157 } 158 159 164 public Post getFirstPost() 165 { 166 return firstPost; 167 } 168 169 174 public void setFirstPost(Post post) 175 { 176 this.firstPost = post; 177 } 178 179 184 public Post getLastPost() 185 { 186 return lastPost; 187 } 188 189 194 public void setLastPost(Post post) 195 { 196 forum.setLastPost(post); 197 this.lastPost = post; 198 } 199 200 206 public Date getLastPostDate() 207 { 208 return lastPostDate; 209 } 210 211 216 public void setLastPostDate(Date lastPostDate) 217 { 218 this.lastPostDate = lastPostDate; 219 } 220 221 226 public Poster getPoster() 227 { 228 return poster; 229 } 230 231 236 public void setPoster(Poster poster) 237 { 238 this.poster = poster; 239 } 240 241 247 public int getType() 248 { 249 return type; 250 } 251 252 257 public void setType(int type) 258 { 259 this.type = type; 260 } 261 262 268 public int getStatus() 269 { 270 return status; 271 } 272 273 278 public void setStatus(int status) 279 { 280 this.status = status; 281 } 282 283 288 public Topic getTarget() 289 { 290 return target; 291 } 292 293 298 public void setTarget(Topic target) 299 { 300 this.target = target; 301 } 302 303 309 public String getSubject() 310 { 311 return subject; 312 } 313 314 319 public void setSubject(String subject) 320 { 321 this.subject = subject; 322 } 323 324 334 public List getWatches() 335 { 336 return watches; 337 } 338 339 public void setWatches(List watches) 340 { 341 this.watches = watches; 342 } 343 } | Popular Tags |