1 11 package org.jboss.portlet.forums.impl; 12 13 import java.io.Serializable ; 14 import java.util.Collection ; 15 import java.util.List ; 16 import java.util.Set ; 17 18 import org.jboss.portlet.forums.model.Category; 19 import org.jboss.portlet.forums.model.Forum; 20 import org.jboss.portlet.forums.model.Post; 21 22 31 public class ForumImpl 32 implements Serializable , 33 Forum 34 { 35 38 public ForumImpl() 39 { 40 } 41 42 private Category category; 43 private String description; 44 private Integer id; 45 private Post lastPost; 46 private String name; 47 private int order; 48 private int topicCount; 49 private int postCount; 50 private boolean pruneEnable; 51 private int pruneNext; 52 private int status; 53 private List topics; 54 private Collection watch; 55 private int type; 56 private List watches; 57 58 63 public Category getCategory() 64 { 65 return category; 66 } 67 68 73 public void setCategory(Category category) 74 { 75 this.category = category; 76 } 77 78 84 public String getDescription() 85 { 86 return description; 87 } 88 89 94 public void setDescription(String description) 95 { 96 this.description = description; 97 } 98 99 104 public Integer getID() 105 { 106 return id; 107 } 108 109 private void setID(Integer id) 110 { 111 this.id = id; 112 } 113 114 119 public Post getLastPost() 120 { 121 return lastPost; 122 } 123 124 129 public void setLastPost(Post lastPost) 130 { 131 this.lastPost = lastPost; 132 } 133 134 140 public String getName() 141 { 142 return name; 143 } 144 145 150 public void setName(String name) 151 { 152 this.name = name; 153 } 154 155 161 public int getOrder() 162 { 163 return order; 164 } 165 166 171 public void setOrder(int order) 172 { 173 this.order = order; 174 } 175 176 182 public int getTopicCount() 183 { 184 return topicCount; 185 } 186 187 192 public void setTopicCount(int size) 193 { 194 this.topicCount = size; 195 } 196 197 200 public void addTopicSize() 201 { 202 setTopicCount(topicCount + 1); 203 } 204 205 211 public int getPostCount() 212 { 213 return postCount; 214 } 215 216 221 public void setPostCount(int size) 222 { 223 this.postCount = size; 224 } 225 226 229 public void addPostSize() 230 { 231 setPostCount(postCount + 1); 232 } 233 234 240 public boolean getPruneEnable() 241 { 242 return pruneEnable; 243 } 244 245 250 public void setPruneEnable(boolean enable) 251 { 252 this.pruneEnable = enable; 253 } 254 255 261 public int getPruneNext() 262 { 263 return pruneNext; 264 } 265 266 271 public void setPruneNext(int next) 272 { 273 this.pruneNext = next; 274 } 275 276 282 public int getStatus() 283 { 284 return status; 285 } 286 287 292 public void setStatus(int status) 293 { 294 this.status = status; 295 } 296 297 307 public List getTopics() 308 { 309 return topics; 310 } 311 312 317 public void setTopics(List value) 318 { 319 topics = value; 320 } 321 322 332 public Collection getForumWatch() 333 { 334 return watch; 335 } 336 337 342 public void setForumWatch(Collection watch) 343 { 344 this.watch = watch; 345 } 346 347 352 public int getType() 353 { 354 return type; 355 } 356 357 362 public void setType(int type) 363 { 364 this.type = type; 365 } 366 367 377 public List getWatches() 378 { 379 return watches; 380 } 381 382 public void setWatches(List watches) 383 { 384 this.watches = watches; 385 } 386 } | Popular Tags |