| java.lang.Object net.jforum.dao.generic.AutoKeys net.jforum.dao.generic.GenericForumDAO
GenericForumDAO | public class GenericForumDAO extends AutoKeys implements net.jforum.dao.ForumDAO(Code) | | author: Rafael Steil author: Vanessa Sabino author: socialnetwork@gmail.com, adding "watch forum" methods. version: $Id: GenericForumDAO.java,v 1.33 2007/08/24 23:11:35 rafaelsteil Exp $ |
Method Summary | |
public int | addNew(Forum forum) | public List | checkUnreadTopics(int forumId, long lastVisit) | protected int | countForumPosts(int forumId) | public void | decrementTotalTopics(int forumId, int count) | public void | delete(int forumId) | public int | discoverForumId(String listEmail) | protected Forum | fillForum(ResultSet rs) | public ForumStats | getBoardStatus() | public LastPostInfo | getLastPostInfo(int forumId) | public int | getMaxPostId(int forumId) | public List | getModeratorList(int forumId) | public int | getTotalMessages() | public int | getTotalTopics(int forumId) | public void | incrementTotalTopics(int forumId, int count) | public boolean | isUserSubscribed(int forumId, int userId) | public void | moveTopics(String[] topics, int fromForumId, int toForumId) | public List | notifyUsers(Forum forum) | public void | removeSubscription(int forumId, int userId) | public void | removeSubscriptionByForum(int forumId) Remove all subscriptions on a forum, such as when a forum is locked. | public List | selectAll() | public Forum | selectById(int forumId) | public void | setLastPost(int forumId, int postId) | public void | setModerated(int categoryId, boolean status) | public Forum | setOrderDown(Forum forum, Forum related) | public Forum | setOrderUp(Forum forum, Forum related) | public void | subscribeUser(int forumId, int userId) | public void | update(Forum forum) |
countForumPosts | protected int countForumPosts(int forumId)(Code) | | |
isUserSubscribed | public boolean isUserSubscribed(int forumId, int userId)(Code) | | |
notifyUsers | public List notifyUsers(Forum forum)(Code) | | This code is writen by looking at GenericTopicDAO.java
|
removeSubscription | public void removeSubscription(int forumId, int userId)(Code) | | |
removeSubscriptionByForum | public void removeSubscriptionByForum(int forumId)(Code) | | Remove all subscriptions on a forum, such as when a forum is locked. It is not used now.
Parameters: forumId - int |
subscribeUser | public void subscribeUser(int forumId, int userId)(Code) | | |
|
|