1 5 package org.exoplatform.services.communication.forum; 6 7 import java.util.List ; 8 import org.exoplatform.commons.utils.PageList ; 9 16 public interface ForumService { 17 18 public List getCategories() throws Exception ; 19 public Category getCategory( String id) throws Exception ; 20 public Category addCategory(Category category) throws Exception ; 21 public Category removeCategory( String id) throws Exception ; 22 public Category updateCategory(Category cat) throws Exception ; 23 public Category createCategoryInstance() ; 24 25 public List getForums( String categoryId) throws Exception ; 26 public Forum getForum( String id) throws Exception ; 27 public Forum addForum(Category category, Forum forum) throws Exception ; 28 public Forum removeForum( String id) throws Exception ; 29 public Forum updateForum(Forum forum) throws Exception ; 30 public Forum createForumInstance() ; 31 32 public PageList getTopics( String forumId) throws Exception ; 33 public Topic getTopic( String id) throws Exception ; 34 public Topic addTopic(Forum forum, Topic topic) throws Exception ; 35 public Topic removeTopic( String id) throws Exception ; 36 public Topic updateTopic(Topic topic) throws Exception ; 37 public Topic createTopicInstance() ; 38 39 public PageList getPosts( String topicId) throws Exception ; 40 public Post getPost( String id) throws Exception ; 41 public Post addPost(Topic topic, Post post) throws Exception ; 42 public Post removePost(String id) throws Exception ; 43 public Post updatePost(Post post) throws Exception ; 44 public Post createPostInstance() ; 45 46 public Watcher createWatcher(Forum forum) throws Exception ; 47 public Watcher createWatcher(Topic topic) throws Exception ; 48 public Watcher getWatcher(Topic topic, String userName) throws Exception ; 49 public Watcher getWatcher(Forum forum, String userName) throws Exception ; 50 public void saveWatcher(Watcher watcher) throws Exception ; 51 public void removeWatcher(Watcher watcher) throws Exception ; 52 53 public long getLastModifiedTime() ; 54 } 55 | Popular Tags |