com.atlassian.crowd.migration
Interface XmlMigrationManager
- All Known Implementing Classes:
- XmlMigrationManagerImpl
public interface XmlMigrationManager
|
Method Summary |
long |
exportXml(java.lang.String path,
java.util.Map options)
Exports the Crowd server's state to an XML file. |
long |
importXml(java.lang.String path)
Imports exported Crowd server state from an XML file. |
exportXml
long exportXml(java.lang.String path,
java.util.Map options)
throws java.lang.Exception
- Exports the Crowd server's state to an XML file.
This exports data from the Crowd database, crowd.cfg.xml and crowd.properties.
The XML file will be a Crowd 2.x export, incompatible with Crowd 1.x.
- Parameters:
path - file path of export XML.options - export options.
- Returns:
- time taken to export (milliseconds).
- Throws:
java.lang.Exception - something went wrong during the export.
importXml
long importXml(java.lang.String path)
throws java.lang.Exception
- Imports exported Crowd server state from an XML file.
The XML file can be a Crowd 1.x export or a Crowd 2.x export.
- Parameters:
path - file path of the XML backup to import.
- Returns:
- time taken to import (milliseconds).
- Throws:
java.lang.Exception - something went wrong during the import.
Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.