org.mmbase.util.xml.applicationdata
Class FullBackupDataWriter

java.lang.Object
  extended byorg.mmbase.util.xml.applicationdata.FullBackupDataWriter

public class FullBackupDataWriter
extends Object

This is used to export a full backup, by writing all nodes to XML.

Since:
MMBase-1.8
Version:
$Id: FullBackupDataWriter.java,v 1.3 2005/10/07 18:42:49 michiel Exp $
Author:
Pierre van Rooden

Constructor Summary
FullBackupDataWriter()
           
 
Method Summary
static void writeContext(ApplicationReader reader, String targetPath, MMBase mmbase, Logger logger)
          Writes all nodes to XML.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FullBackupDataWriter

public FullBackupDataWriter()
Method Detail

writeContext

public static void writeContext(ApplicationReader reader,
                                String targetPath,
                                MMBase mmbase,
                                Logger logger)
                         throws IOException,
                                SearchQueryException
Writes all nodes to XML.

Parameters:
reader - A ApplicationReader initialised to read the application's description (xml) file
targetPath - The path where to save the application
mmbase - Reference to the MMbase processormodule. Used to retrieve the nodes to write.
logger - Storage for messages which can be displayed to the user.
Throws:
IOException - if a file could not be written
SearchQueryException - if data could not be obtained from the database


MMBase build 1.8.1.20060716