public class FullBackupDataWriter extends Object
| Constructor and Description |
|---|
FullBackupDataWriter() |
| Modifier and Type | Method and Description |
|---|---|
static void |
writeContext(ApplicationReader reader,
String targetPath,
MMBase mmbase,
Logger logger)
Writes all nodes to XML.
|
(package private) static void |
writeNodes(String subTargetPath,
MMBase mmbase,
Logger logger)
Searches the MMBase cloud, collecting all nodes and storing them in data files.
|
(package private) 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.
|
public static void writeContext(ApplicationReader reader, String targetPath, MMBase mmbase, Logger logger) throws SearchQueryException
reader - A ApplicationReader initialised to read the application's description (xml) filetargetPath - The path where to save the applicationmmbase - Reference to the MMbase processormodule. Used to retrieve the nodes to write.logger - Storage for messages which can be displayed to the user.SearchQueryException - if data could not be obtained from the databasestatic void writeNodes(String subTargetPath, MMBase mmbase, Logger logger) throws SearchQueryException
subTargetPath - The path where to save the application datammbase - MMBase object used to retrieve builder informationlogger - Storage for messages which can be displayed to the user.SearchQueryException - if data could not be obtained from the databasestatic void writeNodes(String subTargetPath, MMBase mmbase, Logger logger, MMObjectBuilder builder, List<MMObjectNode> nodes, boolean isRelation)
builder - The builder.nodes - The nodes, must type corresponding to the builder.subTargetPath - Path where the XML file is written.mmbase - MMBase object used to retrieve builder informationlogger - Used to store messages that can be shown to the userisRelation - Indicates whether the nodes to write are data (false) or relation (true) nodesMMBase 1.9-SNAPSHOT - ${javadoctimestamp}