org.mmbase.module.tools
Class MMAdmin

java.lang.Object
  extended byorg.mmbase.module.Module
      extended byorg.mmbase.module.ProcessorModule
          extended byorg.mmbase.module.tools.MMAdmin
All Implemented Interfaces:
ProcessorInterface

public class MMAdmin
extends ProcessorModule

Version:
$Id: MMAdmin.java,v 1.83.2.2 2004/06/01 15:36:50 michiel Exp $
Author:
Daniel Ockeloen, Pierre van Rooden
Warning: No Java Documentation Available.

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 getListBuilder(java.lang.String command, java.util.Map params)
          Returns a virtual builder used to create node lists from the results returned by getList().
 MMObjectBuilder getMMObject(java.lang.String path)
          Retrieves a specified builder.
 java.util.Vector getMultilevelCacheEntries()
           
 java.util.Vector getNodeCacheEntries()
           
 boolean getState()
          Wether MMAdmin module was completely initialized (applications auto-deployed and so on).
 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.
protected  boolean installDataSources(java.util.Vector ds, java.lang.String appname, org.mmbase.module.tools.MMAdmin.ApplicationResult result)
           
 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 setBuilderDescription(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, getNodeList, onload, reload, replace, unload
 
Methods inherited from class org.mmbase.module.Module
getInitParameter, getInitParameters, getMaintainer, getMimeType, getMimeTypeFile, getModule, getModule, getModuleInfo, getModules, getName, getProperties, getProperty, getVersion, hasStarted, loadModulesFromDisk, setInitParameter, setMaintainer, setName, setVersion, shutdown, shutdownModules, 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()
Warning: No Java Documentation Available.
Method Detail

init

public void init()
Description copied from class: ProcessorModule
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.

Overrides:
init in class ProcessorModule
Warning: No Java Documentation Available.

getListBuilder

public 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(). 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.

Specified by:
getListBuilder in interface ProcessorInterface
Overrides:
getListBuilder in class ProcessorModule
Parameters:
command - the LIST command for which to retrieve the builder
params - contains the attributes for the list

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.

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

Specified by:
getList in interface ProcessorInterface
Overrides:
getList in class ProcessorModule
Throws:
ParseException
Warning: No Java Documentation Available.

process

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

Specified by:
process in interface ProcessorInterface
Overrides:
process in class ProcessorModule
Warning: No Java Documentation Available.

replace

public java.lang.String replace(scanpage sp,
                                java.lang.String cmds)
Handle a $MOD command

Specified by:
replace in interface ProcessorInterface
Overrides:
replace in class ProcessorModule
Warning: No Java Documentation Available.

setModuleProperty

public void setModuleProperty(java.util.Hashtable vars)
Warning: No Java Documentation Available.

maintainance

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

Overrides:
maintainance in class Module
Warning: No Java Documentation Available.

doRestart

public void doRestart(java.lang.String user)
Warning: No Java Documentation Available.

installDataSources

protected boolean installDataSources(java.util.Vector ds,
                                     java.lang.String appname,
                                     org.mmbase.module.tools.MMAdmin.ApplicationResult result)
Since:
MMBase-1.7
Warning: No Java Documentation Available.

probeCall

public void probeCall()
               throws SearchQueryException
Throws:
SearchQueryException
Warning: No Java Documentation Available.

getState

public boolean getState()
Wether MMAdmin module was completely initialized (applications auto-deployed and so on).

Since:
MMBase-1.7

doModulePosts

public void doModulePosts(java.lang.String command,
                          java.util.Hashtable cmds,
                          java.util.Hashtable vars)
Warning: No Java Documentation Available.

doBuilderPosts

public void doBuilderPosts(java.lang.String command,
                           java.util.Hashtable cmds,
                           java.util.Hashtable vars)
Warning: No Java Documentation Available.

setBuilderGuiName

public void setBuilderGuiName(java.util.Hashtable vars)
Warning: No Java Documentation Available.

setBuilderDescription

public void setBuilderDescription(java.util.Hashtable vars)
Since:
MMBase-1.7
Warning: No Java Documentation Available.

setBuilderGuiType

public void setBuilderGuiType(java.util.Hashtable vars)
Warning: No Java Documentation Available.

setBuilderEditorInput

public void setBuilderEditorInput(java.util.Hashtable vars)
Warning: No Java Documentation Available.

setBuilderEditorList

public void setBuilderEditorList(java.util.Hashtable vars)
Warning: No Java Documentation Available.

setBuilderEditorSearch

public void setBuilderEditorSearch(java.util.Hashtable vars)
Warning: No Java Documentation Available.

setBuilderDBSize

public void setBuilderDBSize(java.util.Hashtable vars)
Warning: No Java Documentation Available.

setBuilderDBMMBaseType

public void setBuilderDBMMBaseType(java.util.Hashtable vars)
Warning: No Java Documentation Available.

setBuilderDBState

public void setBuilderDBState(java.util.Hashtable vars)
Warning: No Java Documentation Available.

setBuilderDBKey

public void setBuilderDBKey(java.util.Hashtable vars)
Warning: No Java Documentation Available.

setBuilderDBNotNull

public void setBuilderDBNotNull(java.util.Hashtable vars)
Warning: No Java Documentation Available.

addBuilderField

public void addBuilderField(java.util.Hashtable vars)
Warning: No Java Documentation Available.

removeBuilderField

public void removeBuilderField(java.util.Hashtable vars)
Warning: No Java Documentation Available.

syncBuilderXML

public void syncBuilderXML(MMObjectBuilder bul,
                           java.lang.String builder)
Warning: No Java Documentation Available.

syncModuleXML

public void syncModuleXML(Module mod,
                          java.lang.String modname)
Warning: No Java Documentation Available.

getMultilevelCacheEntries

public java.util.Vector getMultilevelCacheEntries()
Warning: No Java Documentation Available.

getNodeCacheEntries

public java.util.Vector getNodeCacheEntries()
Warning: No Java Documentation Available.


MMBase build 1.7.1.20041002