org.olat.modules.wiki
Class WikiForumCallback

java.lang.Object
  extended by org.olat.modules.wiki.WikiForumCallback
All Implemented Interfaces:
ForumCallback

public class WikiForumCallback
extends java.lang.Object
implements ForumCallback

Description:
Security callback for enabling disabling some functions in the forums used in the wiki

Initial Date: May 24, 2006

Author:
guido

Constructor Summary
WikiForumCallback(boolean isGuestOnly, boolean isModerator)
           
 
Method Summary
 SubscriptionContext getSubscriptionContext()
           
 boolean mayArchiveForum()
           
 boolean mayDeleteMessageAsModerator()
           
 boolean mayEditMessageAsModerator()
           
 boolean mayFilterForUser()
           
 boolean mayOpenNewThread()
           
 boolean mayReplyMessage()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WikiForumCallback

public WikiForumCallback(boolean isGuestOnly,
                         boolean isModerator)
Method Detail

mayOpenNewThread

public boolean mayOpenNewThread()
Specified by:
mayOpenNewThread in interface ForumCallback
Returns:
if allowed to open a new forum thread

mayReplyMessage

public boolean mayReplyMessage()
Specified by:
mayReplyMessage in interface ForumCallback
Returns:
if the current user may reply to messages

mayEditMessageAsModerator

public boolean mayEditMessageAsModerator()
Specified by:
mayEditMessageAsModerator in interface ForumCallback
Returns:
if allowed to moderate

mayDeleteMessageAsModerator

public boolean mayDeleteMessageAsModerator()
Specified by:
mayDeleteMessageAsModerator in interface ForumCallback
Returns:
if allowed to delete non-owned messages

mayArchiveForum

public boolean mayArchiveForum()
Specified by:
mayArchiveForum in interface ForumCallback
Returns:
true if allowed to archive the whole forum or threads of it

mayFilterForUser

public boolean mayFilterForUser()
Specified by:
mayFilterForUser in interface ForumCallback
Returns:
true if allowed to filter the whole forum

getSubscriptionContext

public SubscriptionContext getSubscriptionContext()
Specified by:
getSubscriptionContext in interface ForumCallback
Returns:
the subscriptionContext. if null, then no subscription must be offered