Class ExportDescriptor
java.lang.Object
com.atlassian.confluence.importexport.impl.ExportDescriptor
Describes an export, based on the exportDescriptor.properties.
- Since:
- 4.2
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionConstruct a new ExportDescriptor, most likely with the intention of writing it out.ExportDescriptor(Properties properties) -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the BuildNumber specified in the exportDescriptor properties file.Get the CreatedByBuildNumber specified in the exportDescriptor properties file.static ExportDescriptorgetExportDescriptor(Unzipper unzipper) static ExportDescriptorgetExportDescriptor(File exportZip) static Map<String, PluginExportCompatibility> getPluginExportCompatibility(Properties properties) getScope()Source instance type - cloud or server.Version number of Confluence that was used to generate the export.booleanbooleanvoidsaveToOutputStream(OutputStream outputStream) voidsetBackupAttachments(boolean exportAttachments) voidsetBuildNumber(String buildNumber) voidsetCreatedByBuildNumber(String buildNumber) voidsetDefaultUserGroup(String defaultUsersGroup) voidsetObjectsCount(Long objectsCount) Writes the number of objects into content properties.voidsetPluginExportCompatibility(Map<String, PluginExportCompatibility> compatibility) voidsetScope(ExportScope scope) voidsetSource(ExportDescriptor.Source source) voidsetSpaceKey(String spaceKey) voidsetSpaceKeys(Collection<String> spaceKeys) voidsetSupportEntitlementNumber(String supportEntitlementNumber) voidsetVersionNumber(String versionNumber)
-
Constructor Details
-
ExportDescriptor
public ExportDescriptor(Properties properties) throws UnexpectedImportZipFileContents, ImportExportException -
ExportDescriptor
public ExportDescriptor()Construct a new ExportDescriptor, most likely with the intention of writing it out. When reading an ExportDescriptor usegetExportDescriptor(File).
-
-
Method Details
-
getExportDescriptor
public static ExportDescriptor getExportDescriptor(File exportZip) throws UnexpectedImportZipFileContents, ImportExportException -
getExportDescriptor
public static ExportDescriptor getExportDescriptor(Unzipper unzipper) throws UnexpectedImportZipFileContents, ImportExportException, IOException -
getProperties
-
getScope
-
setScope
-
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
-
setPluginExportCompatibility
-
getPluginExportCompatibility
public static Map<String,PluginExportCompatibility> getPluginExportCompatibility(Properties properties) -
getSpaceKey
-
setSpaceKey
-
setSpaceKeys
-
isSpaceImport
public boolean isSpaceImport() -
isSiteImport
public boolean isSiteImport() -
setBackupAttachments
public void setBackupAttachments(boolean exportAttachments) -
getBackupAttachments
public boolean getBackupAttachments() -
saveToOutputStream
- Throws:
IOException
-
setCreatedByBuildNumber
-
getCreatedByBuildNumber
Get the CreatedByBuildNumber specified in the exportDescriptor properties file. If no descriptor is specified this returns null.- Returns:
- the specified BuildNumber or null
-
setDefaultUserGroup
-
getDefaultUserGroup
-
setVersionNumber
-
getVersionNumber
Version number of Confluence that was used to generate the export. -
setSource
-
setObjectsCount
Writes the number of objects into content properties. It is important for XML restore because it will be able to initialise the progress bar from the beginning (it will not need to read and count all the objects at the beginning).- Parameters:
objectsCount- number of objects.- Since:
- 7.20.0
-
getObjectsCount
-
getSource
Source instance type - cloud or server. -
setSupportEntitlementNumber
-
getSupportEntitlementNumber
-