|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.util.functions.FunctionProvider
org.mmbase.module.Module
org.mmbase.module.ProcessorModule
The Processor Module extends the basic module to the Processor interface so it can perform for servscan (pagelets).
| Nested Class Summary | |
protected class |
ProcessorModule.GetNodeListFunction
Function implementation around getNodeList(Object, String, Map). |
protected class |
ProcessorModule.ProcessFunction
Function implementation around process(PageInfo, Hashtable, Hashtable). |
protected class |
ProcessorModule.ReplaceFunction
Function implementation around replace(PageInfo, String). |
| Field Summary | |
protected static Parameter.Wrapper |
PARAM_PAGEINFO
|
protected static Parameter[] |
PARAMS_PAGEINFO
|
| Fields inherited from class org.mmbase.module.Module |
getMaintainerFunction, getVersionFunction |
| Fields inherited from class org.mmbase.util.functions.FunctionProvider |
functions, getFunctions |
| Constructor Summary | |
ProcessorModule()
|
|
| Method Summary | |
boolean |
cacheCheck(PageInfo sp,
String cmd)
Do a cache check (304) for this request. |
Vector |
getList(PageInfo sp,
StringTagger params,
String command)
Generate a list of values from a command to the processor. |
MMObjectBuilder |
getListBuilder(String command,
Map params)
Used to create node lists from the results returned by ProcessorInterface.getList(org.mmbase.util.PageInfo, org.mmbase.util.StringTagger, java.lang.String).
The default method does not associate the builder with a cloud (mmbase module),
so processormodules that need this association need to override this method.
Note that different lists may return different builders. |
Vector |
getNodeList(Object context,
String command,
Map params)
This method is a wrapper around getList(PageInfo, StringTagger, String) |
void |
init()
Initializes the module. Init must be overridden to read the environment variables it needs. This method is called by Module.startModule(), which makes sure it is not called
more than once. You should not call init() directly, call startModule() instead. |
void |
onload()
prepares the module when loaded. Onload must be overridden to execute methods that need to be performed when the module is loaded but before any other modules are initailized. This method is called by Module.startModules(). You should not call onload() directly. |
boolean |
process(PageInfo sp,
Hashtable cmds,
Hashtable vars)
Execute the commands provided in the form values. |
void |
reload()
Deprecated. called by nothing |
String |
replace(PageInfo sp,
String command)
Replace a command by a string. |
String |
replace(PageInfo sp,
StringTagger command)
Replace a command by a string. who the hell uses this (daniel) |
void |
unload()
Deprecated. called by nothing |
| Methods inherited from class org.mmbase.module.Module |
getInitParameter, getInitParameters, getMaintainer, getModule, getModule, getModuleInfo, getModuleLoader, getModuleReader, getModules, getName, getProperties, getProperty, getVersion, hasStarted, maintainance, setInitParameter, setMaintainer, setName, setVersion, shutdown, shutdownModules, startModule, startModules, state |
| Methods inherited from class org.mmbase.util.functions.FunctionProvider |
addFunction, createParameters, getFunction, getFunctions, getFunctionValue, newFunctionInstance |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final Parameter[] PARAMS_PAGEINFO
protected static final Parameter.Wrapper PARAM_PAGEINFO
| Constructor Detail |
public ProcessorModule()
| Method Detail |
public MMObjectBuilder getListBuilder(String command,
Map params)
ProcessorInterface.getList(org.mmbase.util.PageInfo, org.mmbase.util.StringTagger, java.lang.String).
The default method does not associate the builder with a cloud (mmbase module),
so processormodules that need this association need to override this method.
Note that different lists may return different builders.
getListBuilder in interface ProcessorInterfacecommand - the LIST command for which to retrieve the builderparams - contains the attributes for the list
public Vector getNodeList(Object context,
String command,
Map params)
getList(PageInfo, StringTagger, String)
getNodeList in interface ProcessorInterfacecontext - The PageInfo object. It beats me why it is Object and not PageInfo. I think it's silly.command - The command to executeparams - Parameters, they will be added to the StringTagger.
Vector that contains the list values contained in MMObjectNode objects
public Vector getList(PageInfo sp,
StringTagger params,
String command)
ProcessorInterface
getList in interface ProcessorInterfacesp - the page contextparams - contains the attributes for the listcommand - the list command to execute.
public boolean process(PageInfo sp,
Hashtable cmds,
Hashtable vars)
process in interface ProcessorInterfacesp - the page contextcmds - contains the list of commands to runvars - contains the attributes for the process
public String replace(PageInfo sp,
String command)
replace in interface ProcessorInterfacesp - the page contextcommand - the command to execute.
public String replace(PageInfo sp,
StringTagger command)
replace in interface ProcessorInterfacesp - the page contextcommand - the command to execute
public boolean cacheCheck(PageInfo sp,
String cmd)
cacheCheck in interface ProcessorInterfacesp - the page contextcmd - the command to execute.public void reload()
public void unload()
public void init()
Module.startModule(), which makes sure it is not called
more than once. You should not call init() directly, call startModule() instead.
init in class Modulepublic void onload()
Module.startModules(). You should not call onload() directly.
onload in class Module
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||