org.mmbase.module.tools
Class MMAdmin

java.lang.Object
  |
  +--org.mmbase.module.Module
        |
        +--org.mmbase.module.ProcessorModule
              |
              +--org.mmbase.module.tools.MMAdmin
All Implemented Interfaces:
ProcessorInterface
Direct Known Subclasses:
MMExamples

public class MMAdmin
extends ProcessorModule

Version:
11 May 2001
Author:
Daniel Ockeloen, Pierre van Rooden

Constructor Summary
MMAdmin()
           
 
Method Summary
 void addBuilderField(java.util.Hashtable vars)
           
 void doBuilderPosts(java.lang.String command, java.util.Hashtable cmds, java.util.Hashtable vars)
           
 void doModulePosts(java.lang.String command, java.util.Hashtable cmds, java.util.Hashtable vars)
           
 void doRestart(java.lang.String user)
           
 java.util.Vector getList(scanpage sp, StringTagger tagger, java.lang.String value)
          Generate a list of values from a command to the processor
 MMObjectBuilder getMMObject(java.lang.String path)
          Retrieves a specified builder.
 java.util.Vector getMultilevelCacheEntries()
           
 java.util.Vector getNodeCacheEntries()
           
 void init()
          Initializes the module.
 void maintainance()
          maintainance call called by the admin module every x seconds.
 void probeCall()
           
 boolean process(scanpage sp, java.util.Hashtable cmds, java.util.Hashtable vars)
          Execute the commands provided in the form values
 void removeBuilderField(java.util.Hashtable vars)
           
 java.lang.String replace(scanpage sp, java.lang.String cmds)
          Handle a $MOD command
 void setBuilderDBKey(java.util.Hashtable vars)
           
 void setBuilderDBMMBaseType(java.util.Hashtable vars)
           
 void setBuilderDBNotNull(java.util.Hashtable vars)
           
 void setBuilderDBSize(java.util.Hashtable vars)
           
 void setBuilderDBState(java.util.Hashtable vars)
           
 void setBuilderEditorInput(java.util.Hashtable vars)
           
 void setBuilderEditorList(java.util.Hashtable vars)
           
 void setBuilderEditorSearch(java.util.Hashtable vars)
           
 void setBuilderGuiName(java.util.Hashtable vars)
           
 void setBuilderGuiType(java.util.Hashtable vars)
           
 void setModuleProperty(java.util.Hashtable vars)
           
 void syncBuilderXML(MMObjectBuilder bul, java.lang.String builder)
           
 void syncModuleXML(Module mod, java.lang.String modname)
           
 
Methods inherited from class org.mmbase.module.ProcessorModule
cacheCheck, getListBuilder, getNodeList, 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, 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

MMAdmin

public MMAdmin()
Method Detail

init

public void init()
Description copied from class: Module
Initializes the module. Init can 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.
Overrides:
init in class ProcessorModule

getMMObject

public MMObjectBuilder getMMObject(java.lang.String path)
Retrieves a specified builder. The builder's name can be extended with the subpath of that builder's configuration file. i.e. 'core/typedef' or 'basic/images'. The subpath part is ignored.
Parameters:
name - The path of the builder to retrieve
Returns:
a MMObjectBuilder is found, null otherwise

getList

public java.util.Vector getList(scanpage sp,
                                StringTagger tagger,
                                java.lang.String value)
                         throws ParseException
Generate a list of values from a command to the processor
Overrides:
getList in class ProcessorModule
Following copied from class: org.mmbase.module.ProcessorModule
Parameters:
sp - the page context
params - contains the attributes for the list
command - the list command to execute.

process

public boolean process(scanpage sp,
                       java.util.Hashtable cmds,
                       java.util.Hashtable vars)
Execute the commands provided in the form values
Overrides:
process in class ProcessorModule

replace

public java.lang.String replace(scanpage sp,
                                java.lang.String cmds)
Handle a $MOD command
Overrides:
replace in class ProcessorModule

setModuleProperty

public void setModuleProperty(java.util.Hashtable vars)

maintainance

public void maintainance()
Description copied from class: Module
maintainance call called by the admin module every x seconds.
Overrides:
maintainance in class Module

doRestart

public void doRestart(java.lang.String user)

probeCall

public void probeCall()

doModulePosts

public void doModulePosts(java.lang.String command,
                          java.util.Hashtable cmds,
                          java.util.Hashtable vars)

doBuilderPosts

public void doBuilderPosts(java.lang.String command,
                           java.util.Hashtable cmds,
                           java.util.Hashtable vars)

setBuilderGuiName

public void setBuilderGuiName(java.util.Hashtable vars)

setBuilderGuiType

public void setBuilderGuiType(java.util.Hashtable vars)

setBuilderEditorInput

public void setBuilderEditorInput(java.util.Hashtable vars)

setBuilderEditorList

public void setBuilderEditorList(java.util.Hashtable vars)

setBuilderEditorSearch

public void setBuilderEditorSearch(java.util.Hashtable vars)

setBuilderDBSize

public void setBuilderDBSize(java.util.Hashtable vars)

setBuilderDBMMBaseType

public void setBuilderDBMMBaseType(java.util.Hashtable vars)

setBuilderDBState

public void setBuilderDBState(java.util.Hashtable vars)

setBuilderDBKey

public void setBuilderDBKey(java.util.Hashtable vars)

setBuilderDBNotNull

public void setBuilderDBNotNull(java.util.Hashtable vars)

addBuilderField

public void addBuilderField(java.util.Hashtable vars)

removeBuilderField

public void removeBuilderField(java.util.Hashtable vars)

syncBuilderXML

public void syncBuilderXML(MMObjectBuilder bul,
                           java.lang.String builder)

syncModuleXML

public void syncModuleXML(Module mod,
                          java.lang.String modname)

getMultilevelCacheEntries

public java.util.Vector getMultilevelCacheEntries()

getNodeCacheEntries

public java.util.Vector getNodeCacheEntries()


MMBase 2001