1 43 package net.jforum.dao; 44 45 import java.util.List ; 46 47 import net.jforum.entities.Forum; 48 import net.jforum.entities.ForumStats; 49 import net.jforum.entities.LastPostInfo; 50 51 61 public interface ForumDAO 62 { 63 71 public Forum selectById(int forumId) throws Exception ; 72 73 80 public List selectAll() throws Exception ; 81 82 94 public Forum setOrderUp(Forum forum, Forum related) throws Exception ; 95 96 107 public Forum setOrderDown(Forum forum, Forum related) throws Exception ; 108 109 116 public void delete(int forumId) throws Exception ; 117 118 125 public void update(Forum forum) throws Exception ; 126 127 134 public int addNew(Forum forum) throws Exception ; 135 136 143 public void setLastPost(int forumId, int postId) throws Exception ; 144 145 152 public void incrementTotalTopics(int forumId, int count) throws Exception ; 153 154 161 public void decrementTotalTopics(int forumId, int count) throws Exception ; 162 163 170 public LastPostInfo getLastPostInfo(int forumId) throws Exception ; 171 172 179 public List getModeratorList(int forumId) throws Exception ; 180 181 187 public int getTotalMessages() throws Exception ; 188 189 195 public int getTotalTopics(int forumId) throws Exception ; 196 197 198 204 public int getMaxPostId(int forumId) throws Exception ; 205 206 214 public void moveTopics(String [] topics, int fromForumId, int toForumId) throws Exception ; 215 216 225 public List checkUnreadTopics(int forumId, long lastVisit) throws Exception ; 226 227 234 public void setModerated(int categoryId, boolean status) throws Exception ; 235 236 241 public ForumStats getBoardStatus() throws Exception ; 242 243 244 253 public List notifyUsers(Forum forum) throws Exception ; 254 255 256 264 public void subscribeUser(int forumId, int userId) throws Exception ; 265 266 275 public boolean isUserSubscribed(int forumId, int userId) throws Exception ; 276 277 284 public void removeSubscription(int forumId, int userId) throws Exception ; 285 286 292 public void removeSubscriptionByForum(int forumId) throws Exception ; 293 294 295 } | Popular Tags |