|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectorg.mmbase.util.xml.applicationdata.FullBackupDataWriter
public class FullBackupDataWriter
This is used to export a full backup, by writing all nodes to XML.
| Constructor Summary | |
|---|---|
FullBackupDataWriter()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FullBackupDataWriter()
| Method Detail |
|---|
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.
IOException - if a file could not be written
SearchQueryException - if data could not be obtained from the database
static void writeNodes(String subTargetPath,
MMBase mmbase,
Logger logger)
throws SearchQueryException
targetPath - The path where to save the application datammb - MMBase object used to retrieve builder informationlogger - Storage for messages which can be displayed to the user.
IOException - if a file could not be written
SearchQueryException - if data could not be obtained from the database
static 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.mmb - 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) nodes
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||