1 5 package org.exoplatform.services.communication.forum.hibernate; 6 7 import org.exoplatform.services.communication.forum.* ; 8 14 public class WatcherImpl implements Watcher { 15 final static public String TOPIC_TARGET = "topic" ; 16 final static public String FORUM_TARGET = "forum" ; 17 18 private String id ; 19 private String topicId ; 20 private String forumId ; 21 private String target ; 22 private String userName ; 23 private String protocol ; 24 private String address ; 25 26 public WatcherImpl() { } 27 28 public WatcherImpl(Topic topic) { 29 TopicImpl impl = (TopicImpl) topic ; 30 target = TOPIC_TARGET ; 31 topicId = topic.getId() ; 32 forumId = impl.getId(); 33 } 34 35 public WatcherImpl(Forum forum) { 36 target = FORUM_TARGET ; 37 forumId = forum.getId() ; 38 } 39 40 43 public String getId() { return id; } 44 public void setId(String s) { id = s ; } 45 46 49 public String getTopicId() { return topicId; } 50 public void setTopicId(String s) { topicId = s ; } 51 52 55 public String getForumId() { return forumId; } 56 public void setForumId(String s) { forumId = s ; } 57 58 61 public String getTarget() { return target; } 62 public void setTarget(String s) { target = s ; } 63 64 67 public String getUserName() { return userName; } 68 public void setUserName(String username) { this.userName = username ; } 69 70 73 public String getMessageProtocol() { return protocol ; } 74 public void setMessageProtocol(String s) { protocol = s ; } 75 76 79 public String getAddress() { return address ; } 80 public void setAddress(String email) { this.address = email ;} 81 82 } 83 | Popular Tags |