Package com.xpn.xwiki.tool.backup
Class Exporter
- java.lang.Object
-
- com.xpn.xwiki.tool.backup.Exporter
-
public class Exporter extends Object
Export a set of XWiki documents from an existing database into the file system.- Version:
- $Id: 82167471c499742a0136e64b7a84644183acd772 $
-
-
Constructor Summary
Constructors Constructor Description Exporter(OldCoreHelper oldCoreHelper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
exportDocuments(File exportDirectory, String wikiId)
Export documents from an existing loaded XWiki database.
-
-
-
Constructor Detail
-
Exporter
public Exporter(OldCoreHelper oldCoreHelper)
- Parameters:
oldCoreHelper
- various tools to manipulate oldcore APIs
-
-
Method Detail
-
exportDocuments
public void exportDocuments(File exportDirectory, String wikiId) 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 documentswikiId
- the wiki to export- Throws:
Exception
- if the export failed for any reason
-
-