| java.lang.Object org.mmbase.util.xml.applicationdata.FullBackupDataWriter
FullBackupDataWriter | public class FullBackupDataWriter (Code) | | This is used to export a full backup, by writing all nodes to XML.
since: MMBase-1.8 author: Pierre van Rooden version: $Id: FullBackupDataWriter.java,v 1.8 2007/02/25 17:56:58 nklasens Exp $ |
Method Summary | |
public static void | writeContext(ApplicationReader reader, String targetPath, MMBase mmbase, Logger logger) Writes all nodes to XML.
Parameters: reader - A ApplicationReader initialised to read the application's description (xml) file Parameters: targetPath - The path where to save the application Parameters: mmbase - Reference to the MMbase processormodule. | static void | writeNodes(String subTargetPath, MMBase mmbase, Logger logger) Searches the MMBase cloud, collecting all nodes and storing them in data files. | static void | writeNodes(String subTargetPath, MMBase mmbase, Logger logger, MMObjectBuilder builder, List<MMObjectNode> nodes, boolean isRelation) Writes the nodes of a particular type to the corresponding XML file. |
writeContext | public static void writeContext(ApplicationReader reader, String targetPath, MMBase mmbase, Logger logger) throws SearchQueryException(Code) | | Writes all nodes to XML.
Parameters: reader - A ApplicationReader initialised to read the application's description (xml) file Parameters: targetPath - The path where to save the application Parameters: mmbase - Reference to the MMbase processormodule. Used to retrieve the nodes to write. Parameters: logger - Storage for messages which can be displayed to the user. throws: IOException - if a file could not be written throws: SearchQueryException - if data could not be obtained from the database |
writeNodes | static void writeNodes(String subTargetPath, MMBase mmbase, Logger logger) throws SearchQueryException(Code) | | Searches the MMBase cloud, collecting all nodes and storing them in data files.
Parameters: targetPath - The path where to save the application data Parameters: mmb - MMBase object used to retrieve builder information Parameters: logger - Storage for messages which can be displayed to the user. throws: IOException - if a file could not be written throws: SearchQueryException - if data could not be obtained from the database |
writeNodes | static void writeNodes(String subTargetPath, MMBase mmbase, Logger logger, MMObjectBuilder builder, List<MMObjectNode> nodes, boolean isRelation)(Code) | | Writes the nodes of a particular type to the corresponding XML file.
Parameters: builder - The builder. Parameters: nodes - The nodes, must type corresponding to the builder. Parameters: subTargetPath - Path where the XML file is written. Parameters: mmb - MMBase object used to retrieve builder information Parameters: logger - Used to store messages that can be shown to the user Parameters: isRelation - Indicates whether the nodes to write are data (false) or relation (true) nodes |
|
|