org.mmbase.module.tools
Class MMImport
java.lang.Object
|
+--org.mmbase.module.Module
|
+--org.mmbase.module.ProcessorModule
|
+--org.mmbase.module.tools.MMImport
- All Implemented Interfaces:
- ProcessorInterface
- public class MMImport
- extends ProcessorModule
The module which provides access to the multimedia database
it creates, deletes and gives you methods to keep track of
multimedia objects. It does not give you direct methods for
inserting and reading them thats done by other objects
- Author:
- Daniel Ockeloen
|
Method Summary |
void |
doImportXML(java.util.Hashtable cmds,
java.util.Hashtable vars)
|
java.util.Vector |
getList(scanpage sp,
StringTagger tagger,
java.lang.String value)
Generate a list of values from a command to the processor |
void |
init()
Initializes the module. |
java.lang.String |
loadFile(java.lang.String filename)
|
void |
maintainance()
maintainance call called by the admin module every x seconds. |
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.Module |
getClassName, getInitParameter, getInitParameters, getMaintainer, getMimeType, getMimeTypeFile, getModule, getModule, getModuleInfo, getModules, getName, getProperties, getProperty, getVersion, hasStarted, loadModulesFromDisk, setClassName, setInitParameter, setMaintainer, setName, setVersion, shutdownModules, startModule, startModules, state |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MMImport
public MMImport()
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
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 contextparams - contains the attributes for the listcommand - 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
maintainance
public void maintainance()
- Description copied from class:
Module
- maintainance call called by the admin module every x seconds.
- Overrides:
maintainance in class Module
doImportXML
public void doImportXML(java.util.Hashtable cmds,
java.util.Hashtable vars)
loadFile
public java.lang.String loadFile(java.lang.String filename)
MMBase build 1.6.5.20030923