1 5 package org.exoplatform.services.communication.forum.hibernate; 6 7 import java.util.Date ; 8 import org.exoplatform.services.communication.forum.Post; 9 18 public class PostImpl implements Post { 19 private String id ; 20 private String topicId ; 21 private String forumId ; 22 private String owner ; 23 private Date createdDate ; 24 private String modifiedBy ; 25 private Date modifiedDate ; 26 private String subject ; 27 private String message ; 28 private String remoteAddr ; 29 30 public PostImpl() { 31 } 32 33 36 public String getId() { return id ; } 37 public void setId(String s) { id = s ; } 38 39 42 public String getTopicId() { return topicId ; } 43 public void setTopicId(String id) { topicId = id ; } 44 45 48 public String getForumId() { return forumId ; } 49 public void setForumId(String id) { forumId = id ; } 50 51 54 public String getOwner() { return owner ; } 55 public void setOwner(String s) { owner = s ; } 56 57 60 public Date getCreatedDate() { return createdDate ; } 61 public void setCreatedDate(Date d) { createdDate = d ; } 62 63 public long getCreatedDateINT11() { return createdDate.getTime() ; } 64 public void setCreatedDateINT11(long d) { createdDate = new Date (d * 1000) ; } 65 66 69 public String getModifiedBy() { return modifiedBy ; } 70 public void setModifiedBy(String s) { modifiedBy = s ;} 71 72 75 public Date getModifiedDate() { return modifiedDate ; } 76 public void setModifiedDate(Date d) { modifiedDate = d ;} 77 78 public long getModifiedDateINT11() { return modifiedDate.getTime() ; } 79 public void setModifiedDateINT11(long d) { modifiedDate = new Date (d * 1000) ; } 80 81 84 public String getSubject() { return subject ;} 85 public void setSubject(String s) { subject = s ; } 86 87 90 public String getMessage() { return message ; } 91 public void setMessage(String s) { message = s ; } 92 93 96 public String getRemoteAddr() { return remoteAddr ;} 97 public void setRemoteAddr(String s) { remoteAddr = s ;} 98 } 99 | Popular Tags |