com.atlassian.confluence.it.export
Class Exporter
java.lang.Object
com.atlassian.confluence.it.export.Exporter
public class Exporter
- extends java.lang.Object
Contains methods for testing export. There are no good reasons why the only export
space method is by webTester and the only site export is by RPC. It's just what
is currently used.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Exporter
public Exporter()
exportSpace
public static java.net.URL exportSpace(Space space,
net.sourceforge.jwebunit.junit.WebTester webTester,
Exporter.ContentOption contentOption)
- Export a space through the web interface.
- Parameters:
webTester - should have the appropriate user logged in already
- Returns:
- a URL from which the space can be downloaded by whatever user was logged in to the WebTester.
exportSite
public static java.net.URL exportSite(ConfluenceRpc rpc,
boolean exportAttachments)
throws java.net.MalformedURLException
- Export a site via RPC.
- Throws:
java.net.MalformedURLException
downloadAndParseExport
public static SimpleSiteStructure downloadAndParseExport(java.net.URL url,
User user)
throws java.lang.Exception
- Throws:
java.lang.Exception
downloadAndReadExport
public static org.dom4j.Document downloadAndReadExport(java.net.URL url,
User user)
throws java.lang.Exception
- Throws:
java.lang.Exception
downloadExportToTemp
public static java.io.File downloadExportToTemp(java.net.URL url,
User user)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2003-2010 Atlassian. All Rights Reserved.