org.mmbase.module.tools
Class MMImport

java.lang.Object
  extended byorg.mmbase.module.Module
      extended byorg.mmbase.module.ProcessorModule
          extended byorg.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

Constructor Summary
MMImport()
           
 
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. 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.
 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.ProcessorModule
cacheCheck, getListBuilder, 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

MMImport

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

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

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

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

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.7.4.20050922