org.mmbase.applications.mmbob
Class ForumManager

java.lang.Object
  extended byorg.mmbase.applications.mmbob.ForumManager

public class ForumManager
extends Object

forumManager ToDo: Write docs!

Author:
Daniel Ockeloen (MMBased)

Field Summary
static String DTD_MMBOBCONFIG_1_0
          DTD resource filename of the mmbob config file DTD version 1.0
static int FASTSYNC
           
static String PUBLIC_ID_MMBOBCONFIG_1_0
          Public ID of the mmbobconfig DTD version 1.0
static int SLOWSYNC
           
 
Constructor Summary
ForumManager()
           
 
Method Summary
static void addWordFilter(String name, String value)
           
static String filterContent(HashMap words, String body)
           
static String filterContent(String body)
           
static String getAccountCreationType()
           
static String getAccountRemovalType()
           
static String getAvatarsGalleryEnabled()
           
static String getAvatarsUploadEnabled()
           
static Cloud getCloud()
          ToDo: Write docs!
static String getContactInfoEnabled()
           
static String getDefaultAccount()
           
static String getDefaultPassword()
           
static String getEmailtext(String role)
           
static String getExternalRootUrl()
           
static HashMap getFilterWords()
           
static String getFooterPath()
           
static Forum getForum(int id)
          Get a forum by it's MMBase node number
static Forum getForum(String id)
          Get a forum by it's MMBase node number
static Forum getForumByAlias(String key)
           
static Forum getForumCloneMaster()
           
static ForumConfig getForumConfig(String name)
           
static Enumeration getForums()
          Get an enumeration of all the forums in the cloud
static int getForumsCount()
          Get the number of forums in the cloud
static String getFromEmailAddress()
           
static String getGuestReadModeType()
           
static String getGuestWriteModeType()
           
static String getHeaderPath()
           
static String getLanguage()
           
static String getLoginModeType()
           
static String getLoginSystemType()
           
static String getLogoutModeType()
           
protected static Map getNamePassword(String id)
          ToDo: Write docs!
static String getNavigationMethod()
           
static int getPostingsOverflowPostArea()
           
static int getPostingsOverflowThreadPage()
           
static int getPostingsPerPage()
           
 int getPostThreadLoadedCount()
           
static int getPreloadChangedThreadsTime()
           
static String getPrivateMessagesEnabled()
           
static int getQuotaMax()
           
static int getQuotaSoftWarning()
           
static int getQuotaWarning()
           
static boolean getReplyOnEachPage()
           
static String getSmileysEnabled()
           
static int getSpeedPostTime()
           
static int getSwapoutUnusedThreadsTime()
           
static String getThreadStartLevel()
           
static String getXSLTPostingsEven()
           
static String getXSLTPostingsOdd()
           
static void init()
          Initialization
static boolean isRunning()
          Determine if the forumManager passed it's initilization
static String longWordWrap(String body)
           
static void maintainMemoryCaches()
          ToDo: Write docs!
static int newForum(String name, String language, String description, String account, String password, String nick, String email)
          Create a new forum
static void nodeDeleted(Node node)
          Remove the given deleted node from the sync queues ToDo: very ugly need to be beter
static void readConfig()
          ToDo: Write docs! Called on init.
static void registerPublicIDs()
          Register the Public Ids for DTDs used by DatabaseReader This method is called by XMLEntityResolver.
static boolean removeForum(int id)
          Remove a forum by it's MMBase node number
static void removeWordFilter(String name)
           
static void saveConfig()
           
static void setAvatarsGalleryEnabled(String mode)
           
static void setAvatarsUploadEnabled(String mode)
           
static void setContactInfoEnabled(String mode)
           
static void setGuestReadModeType(String mode)
           
static void setGuestWriteModeType(String mode)
           
static void setLoginModeType(String mode)
           
static void setLoginSystemType(String system)
           
static void setLogoutModeType(String mode)
           
static void setPostingsPerPage(String number)
           
static void setPrivateMessagesEnabled(String mode)
           
static void setQuotaMax(int max)
           
static void setQuotaMax(String maxs)
           
static void setQuotaSoftWarning(String sws)
           
static void setQuotaWarning(String ws)
           
static void setSmileysEnabled(String mode)
           
static void syncNode(Node node, int queue)
          ToDo: Write docs!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FASTSYNC

public static final int FASTSYNC
See Also:
Constant Field Values

SLOWSYNC

public static final int SLOWSYNC
See Also:
Constant Field Values

DTD_MMBOBCONFIG_1_0

public static final String DTD_MMBOBCONFIG_1_0
DTD resource filename of the mmbob config file DTD version 1.0

See Also:
Constant Field Values

PUBLIC_ID_MMBOBCONFIG_1_0

public static final String PUBLIC_ID_MMBOBCONFIG_1_0
Public ID of the mmbobconfig DTD version 1.0

See Also:
Constant Field Values
Constructor Detail

ForumManager

public ForumManager()
Method Detail

registerPublicIDs

public static void registerPublicIDs()
Register the Public Ids for DTDs used by DatabaseReader This method is called by XMLEntityResolver.


init

public static void init()
Initialization


isRunning

public static boolean isRunning()
Determine if the forumManager passed it's initilization

Returns:
true if the forumManager passed it's initilization, false if it isn't

getForumsCount

public static int getForumsCount()
Get the number of forums in the cloud

Returns:
number of forums

getForums

public static Enumeration getForums()
Get an enumeration of all the forums in the cloud

Returns:
all the forums

getForum

public static Forum getForum(int id)
Get a forum by it's MMBase node number

Parameters:
id - MMBase node number of the forum
Returns:
forum

getForumByAlias

public static Forum getForumByAlias(String key)

getForumCloneMaster

public static Forum getForumCloneMaster()

removeForum

public static boolean removeForum(int id)
Remove a forum by it's MMBase node number

Parameters:
id - MMBase node number of the forum
Returns:
true if the remove action was successful

getForum

public static Forum getForum(String id)
Get a forum by it's MMBase node number

Parameters:
id - MMBase node number of the forum

newForum

public static int newForum(String name,
                           String language,
                           String description,
                           String account,
                           String password,
                           String nick,
                           String email)
Create a new forum

Parameters:
name - Name of the new forum
language - Language of the new forum
description - Description of the new forum
account - account of the creator of the new forum
password - password of the creator of the new forum
Returns:
The MMBase node number of the newly created forum node

syncNode

public static void syncNode(Node node,
                            int queue)
ToDo: Write docs!

Parameters:
node -
queue -

nodeDeleted

public static void nodeDeleted(Node node)
Remove the given deleted node from the sync queues ToDo: very ugly need to be beter

Parameters:
node -

getNamePassword

protected static Map getNamePassword(String id)
ToDo: Write docs!

Parameters:
id -

getDefaultPassword

public static String getDefaultPassword()

getDefaultAccount

public static String getDefaultAccount()

getLanguage

public static String getLanguage()

getCloud

public static Cloud getCloud()
ToDo: Write docs!


readConfig

public static void readConfig()
ToDo: Write docs! Called on init. reads configfile


saveConfig

public static void saveConfig()

maintainMemoryCaches

public static void maintainMemoryCaches()
ToDo: Write docs!


setQuotaMax

public static void setQuotaMax(String maxs)

setQuotaMax

public static void setQuotaMax(int max)

setQuotaSoftWarning

public static void setQuotaSoftWarning(String sws)

setQuotaWarning

public static void setQuotaWarning(String ws)

getQuotaMax

public static int getQuotaMax()

getQuotaSoftWarning

public static int getQuotaSoftWarning()

getQuotaWarning

public static int getQuotaWarning()

getForumConfig

public static ForumConfig getForumConfig(String name)

getAccountCreationType

public static String getAccountCreationType()

getAccountRemovalType

public static String getAccountRemovalType()

getLoginModeType

public static String getLoginModeType()

getLoginSystemType

public static String getLoginSystemType()

setLoginModeType

public static void setLoginModeType(String mode)

setLoginSystemType

public static void setLoginSystemType(String system)

getLogoutModeType

public static String getLogoutModeType()

setLogoutModeType

public static void setLogoutModeType(String mode)

getGuestReadModeType

public static String getGuestReadModeType()

getThreadStartLevel

public static String getThreadStartLevel()

setGuestReadModeType

public static void setGuestReadModeType(String mode)

getGuestWriteModeType

public static String getGuestWriteModeType()

setGuestWriteModeType

public static void setGuestWriteModeType(String mode)

getPreloadChangedThreadsTime

public static int getPreloadChangedThreadsTime()

getSwapoutUnusedThreadsTime

public static int getSwapoutUnusedThreadsTime()

getXSLTPostingsOdd

public static String getXSLTPostingsOdd()

getXSLTPostingsEven

public static String getXSLTPostingsEven()

getAvatarsUploadEnabled

public static String getAvatarsUploadEnabled()

setAvatarsUploadEnabled

public static void setAvatarsUploadEnabled(String mode)

getAvatarsGalleryEnabled

public static String getAvatarsGalleryEnabled()

setAvatarsGalleryEnabled

public static void setAvatarsGalleryEnabled(String mode)

setContactInfoEnabled

public static void setContactInfoEnabled(String mode)

setSmileysEnabled

public static void setSmileysEnabled(String mode)

setPrivateMessagesEnabled

public static void setPrivateMessagesEnabled(String mode)

setPostingsPerPage

public static void setPostingsPerPage(String number)

getContactInfoEnabled

public static String getContactInfoEnabled()

getSmileysEnabled

public static String getSmileysEnabled()

getPrivateMessagesEnabled

public static String getPrivateMessagesEnabled()

getPostingsPerPage

public static int getPostingsPerPage()

getFromEmailAddress

public static String getFromEmailAddress()

getHeaderPath

public static String getHeaderPath()

getFooterPath

public static String getFooterPath()

getNavigationMethod

public static String getNavigationMethod()

getPostThreadLoadedCount

public int getPostThreadLoadedCount()

filterContent

public static String filterContent(String body)

getFilterWords

public static HashMap getFilterWords()

addWordFilter

public static void addWordFilter(String name,
                                 String value)

removeWordFilter

public static void removeWordFilter(String name)

longWordWrap

public static String longWordWrap(String body)

filterContent

public static String filterContent(HashMap words,
                                   String body)

getSpeedPostTime

public static int getSpeedPostTime()

getPostingsOverflowPostArea

public static int getPostingsOverflowPostArea()

getPostingsOverflowThreadPage

public static int getPostingsOverflowThreadPage()

getEmailtext

public static String getEmailtext(String role)

getExternalRootUrl

public static String getExternalRootUrl()

getReplyOnEachPage

public static boolean getReplyOnEachPage()


MMBase build 1.8.1.20060716