com.xpn.xwiki.tool.backup
Class Exporter

java.lang.Object
  extended by com.xpn.xwiki.tool.backup.AbstractPackager
      extended by com.xpn.xwiki.tool.backup.Exporter

public class Exporter
extends AbstractPackager

Export a set of XWiki documents from an existing database into the file system.

Version:
$Id$

Constructor Summary
Exporter()
           
 
Method Summary
 void exportDocuments(File exportDirectory, String databaseName, File hibernateConfig)
          Export documents from an existing loaded XWiki database.
 
Methods inherited from class com.xpn.xwiki.tool.backup.AbstractPackager
createXWikiContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Exporter

public Exporter()
Method Detail

exportDocuments

public void exportDocuments(File exportDirectory,
                            String databaseName,
                            File hibernateConfig)
                     throws Exception
Export documents from an existing loaded XWiki database. The database is defined by its passed name and by an Hibernate configuration file.

Parameters:
exportDirectory - the directory where to export the documents
databaseName - some database name (TODO: find out what this name is really)
hibernateConfig - the Hibernate config fill containing the database definition (JDBC driver, username and password, etc)
Throws:
Exception - if the export failed for any reason


Copyright © 2004-2012 XWiki. All Rights Reserved.