|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--org.mmbase.module.Module
|
+--org.mmbase.module.ProcessorModule
|
+--org.mmbase.module.community.CommunityPrc
This module is the general manager for the community objects (chat and forums).
It processes message posts, retrieves info, and generates lists of messages and users.
In this manner, it is more an application than a module.
The community 'application' consists of the Community, Channel, and Message builder.
The Community builder is a pool of channels
of a similar type (chatbox, forum, or guestbook).
The Channel builder defines a channel - a
'location' which manages a forum discussion or chat.
The Message builder defines a single message - a
persistent message in case of a forum or guestbook, a temporary message in the
case of a chat.
Optional builders that provide additional information are a Moods builder
(associated with a channel, it may provide backgrounds, colors, or other
dressing), a Chatter builder (which hold the users of a chat or forum), or a
Maps builder (used for generating links).
| Constructor Summary | |
CommunityPrc()
Create a Community module instance. |
|
| Method Summary | |
java.util.Vector |
getList(scanpage sp,
StringTagger params,
java.lang.String command)
Generates a list of values from a command to the processor. |
MMObjectBuilder |
getListBuilder(java.lang.String command,
java.util.Map params)
Returns a virtual builder used to create node lists from the results returned by getList(). |
java.util.Vector |
getListTemporaryRelations(StringTagger params)
This function returns a vector, like LIST RELATED does, with the values of the specified fields of the related nodes to a specified node. |
java.util.Vector |
getNodeList(java.lang.Object context,
java.lang.String command,
java.util.Map params)
Generates a list of values from a command to the processor. |
java.util.Vector |
getNodeListTemporaryRelations(java.util.Map params)
This function returns a vector, like LIST RELATED does, with the values of the specified fields of the related nodes to a specified node. |
void |
init()
Initailize the communit. |
boolean |
process(scanpage sp,
java.util.Hashtable cmds,
java.util.Hashtable vars)
Execute the commands provided in the form values. |
java.lang.String |
replace(scanpage sp,
java.lang.String cmds)
Handle a $MOD command. |
| Methods inherited from class org.mmbase.module.ProcessorModule |
cacheCheck, onload, reload, replace, shutdown, unload |
| Methods inherited from class org.mmbase.module.Module |
getClassName, getInitParameter, getInitParameters, getMaintainer, getMimeType, getMimeTypeFile, getModule, getModule, getModuleInfo, getModules, getName, getProperties, getProperty, getVersion, hasStarted, loadModulesFromDisk, maintainance, setClassName, setInitParameter, setMaintainer, setName, setVersion, startModule, startModules, state |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CommunityPrc()
| Method Detail |
public void init()
init in class ProcessorModule
public java.lang.String replace(scanpage sp,
java.lang.String cmds)
replace in class ProcessorModulesp - The scanpage (containing http and user info) that calls the functioncmds - the command to executeString
public boolean process(scanpage sp,
java.util.Hashtable cmds,
java.util.Hashtable vars)
vars parameter. This allows a system that uses the MMCI
(such as jsp) to retrieve the value.
XXX: This is a bit of a sloppy way to pass results, and the actual
mechanics may get changed (formalized) in the future.
- Overrides:
process in class ProcessorModule
- Parameters:
sp - The scanpage (containing http and user info) that calls the functioncmds - the commands to processvars - variables that were set to be used during processing.- Returns:
- the result value as a
String
public MMObjectBuilder getListBuilder(java.lang.String command,
java.util.Map params)
getListBuilder in class ProcessorModulecommand - the LIST command for which to retrieve the builderparams - contains the attributes for the list
public java.util.Vector getNodeList(java.lang.Object context,
java.lang.String command,
java.util.Map params)
throws ParseException
getNodeList in class ProcessorModulecontext - the context of the page or calling application (currently, this should be a scanpage object)command - the list command to execute.params - contains the attributes for the listVector that contains the list values as MMObjectNodes
public java.util.Vector getList(scanpage sp,
StringTagger params,
java.lang.String command)
throws ParseException
getList in class ProcessorModulesp - the page contextparams - contains the attributes for the listcommand - the list command to execute.Vector that contains the list valuespublic java.util.Vector getListTemporaryRelations(StringTagger params)
insrel object are returned.
Both real and temporary nodes are returned.
public java.util.Vector getNodeListTemporaryRelations(java.util.Map params)
insrel object are returned.
Both real and temporary nodes are returned.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||