com.atlassian.confluence.importexport.impl
Class ExportDescriptor
java.lang.Object
com.atlassian.confluence.importexport.impl.ExportDescriptor
public class ExportDescriptor
- extends Object
Describes an export, based on the exportDescriptor.properties.
- Since:
- 4.2
Constructor Summary |
ExportDescriptor()
Construct a new ExportDescriptor, most likely with the intention of writing it out. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExportDescriptor
public ExportDescriptor()
- Construct a new ExportDescriptor, most likely with the intention of writing it out. When reading an
ExportDescriptor use
getExportDescriptor(File)
.
getExportDescriptor
public static ExportDescriptor getExportDescriptor(File exportZip)
throws UnexpectedImportZipFileContents,
ImportExportException
- Throws:
UnexpectedImportZipFileContents
ImportExportException
getProperties
public Properties getProperties()
getScope
public ExportScope getScope()
throws ExportScope.IllegalExportScopeException
- Throws:
ExportScope.IllegalExportScopeException
setScope
public void setScope(ExportScope scope)
getBuildNumber
public BuildNumber getBuildNumber()
- Get the BuildNumber specified in the exportDescriptor properties file. If no descriptor is specified
this returns null.
- Returns:
- the specified BuildNumber or null
setBuildNumber
public void setBuildNumber(String buildNumber)
getSpaceKey
public String getSpaceKey()
setSpaceKey
public void setSpaceKey(String spaceKey)
isSpaceImport
public boolean isSpaceImport()
setBackupAttachments
public void setBackupAttachments(boolean exportAttachments)