org.olat.modules.fo.archiver
Class ForumArchiveManager

java.lang.Object
  extended by org.olat.modules.fo.archiver.ForumArchiveManager

public class ForumArchiveManager
extends java.lang.Object

Initial Date: Nov 11, 2005

Author:
Alexander Schneider

Method Summary
 java.lang.String applyFormatter(ForumFormatter forumFormatter, long forumId, ForumCallback forumCallback)
          If the forumCallback is null no restriction applies to the forum archiver.
 java.lang.String applyFormatterForOneThread(ForumFormatter forumFormatter, long forumId, long topMessageId)
          It is assumed that if the caller of this method is allowed to see the forum thread starting from topMessageId, then he also has the right to archive it, so no need for a ForumCallback.
static ForumArchiveManager getInstance()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ForumArchiveManager getInstance()
Returns:
the singleton

applyFormatter

public java.lang.String applyFormatter(ForumFormatter forumFormatter,
                                       long forumId,
                                       ForumCallback forumCallback)
If the forumCallback is null no restriction applies to the forum archiver. (that is it can archive all threads no matter the status)

Parameters:
forumFormatter -
forumId -
forumCallback -
Returns:

applyFormatterForOneThread

public java.lang.String applyFormatterForOneThread(ForumFormatter forumFormatter,
                                                   long forumId,
                                                   long topMessageId)
It is assumed that if the caller of this method is allowed to see the forum thread starting from topMessageId, then he also has the right to archive it, so no need for a ForumCallback.

Parameters:
forumFormatter -
forumId -
topMessageId -
Returns:
the message thread as String formatted