|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.xpn.xwiki.tool.backup.AbstractPackager
com.xpn.xwiki.tool.backup.Importer
public class Importer
Import a set of XWiki documents into an existing database.
| Constructor Summary | |
|---|---|
Importer()
|
|
| Method Summary | |
|---|---|
void |
importDocuments(java.io.File sourceDirectory,
java.lang.String databaseName,
java.io.File hibernateConfig)
Import documents defined in an XML file located in the passed document definition directory into a database defined by its passed name and by an Hibernate configuration file. |
| 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 |
|---|
public Importer()
| Method Detail |
|---|
public void importDocuments(java.io.File sourceDirectory,
java.lang.String databaseName,
java.io.File hibernateConfig)
throws java.lang.Exception
Note: I would have liked to call this method "import" but it's a reserved keyword... Strange that it's not allowed for method names though.
sourceDirectory - the directory where the package.xml file is located and where the documents to import are
locateddatabaseName - 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)
java.lang.Exception - if the import failed for any reason
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||