| java.lang.Object net.jforum.view.forum.common.ForumCommon
ForumCommon | public class ForumCommon (Code) | | author: Rafael Steil version: $Id: ForumCommon.java,v 1.24 2007/08/01 22:30:05 rafaelsteil Exp $ |
Method Summary | |
public static void | checkUnreadPosts(Forum forum, Map tracking, long lastVisit) Check if some forum has unread messages. | public static List | getAllCategoriesAndForums(UserSession us, int anonymousUserId, Map tracking, boolean checkUnreadPosts) Gets all forums available to the user.
Parameters: us - An UserSession instance with user information Parameters: anonymousUserId - The id which represents the anonymous user Parameters: tracking - Map instance with information about the topics read by the user Parameters: checkUnreadPosts - true if is to search for unread topics inside the forums, or false if this action is not needed. | public static List | getAllCategoriesAndForums(boolean checkUnreadPosts) | public static List | getAllCategoriesAndForums() | public static void | notifyUsers(Forum f, Topic t, Post post) Sends a "new topic" notification message to all users watching the forum. |
checkUnreadPosts | public static void checkUnreadPosts(Forum forum, Map tracking, long lastVisit)(Code) | | Check if some forum has unread messages.
Parameters: forum - The forum to search for unread messages Parameters: tracking - Tracking of the topics read by the user Parameters: lastVisit - The last visit time of the current user |
getAllCategoriesAndForums | public static List getAllCategoriesAndForums(UserSession us, int anonymousUserId, Map tracking, boolean checkUnreadPosts)(Code) | | Gets all forums available to the user.
Parameters: us - An UserSession instance with user information Parameters: anonymousUserId - The id which represents the anonymous user Parameters: tracking - Map instance with information about the topics read by the user Parameters: checkUnreadPosts - true if is to search for unread topics inside the forums, or false if this action is not needed. A List instance where each record is an instance of a Category object |
notifyUsers | public static void notifyUsers(Forum f, Topic t, Post post)(Code) | | Sends a "new topic" notification message to all users watching the forum.
Parameters: f - The Forum changed Parameters: t - The new topic Parameters: post - the newly created message |
|
|