com.atlassian.confluence.importexport.impl
Class ExportDescriptor

java.lang.Object
  extended by 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.
 
Method Summary
 BuildNumber getBuildNumber()
          Get the BuildNumber specified in the exportDescriptor properties file.
static ExportDescriptor getExportDescriptor(File exportZip)
           
 Properties getProperties()
           
 ExportScope getScope()
           
 String getSpaceKey()
           
 boolean isSpaceImport()
           
 void setBackupAttachments(boolean exportAttachments)
           
 void setBuildNumber(String buildNumber)
           
 void setScope(ExportScope scope)
           
 void setSpaceKey(String spaceKey)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExportDescriptor

public ExportDescriptor()
Construct a new ExportDescriptor, most likely with the intention of writing it out. When reading an ExportDescriptor use getExportDescriptor(File).

Method Detail

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)


Copyright © 2003-2012 Atlassian. All Rights Reserved.