com.atlassian.confluence.importexport.impl
Class ExportUtils

java.lang.Object
  extended by com.atlassian.confluence.importexport.impl.ExportUtils

public class ExportUtils
extends java.lang.Object


Field Summary
static java.lang.String PROP_BACKUP_ATTACHMENTS
           
static java.lang.String PROP_BUILD_NUMBER
           
static java.lang.String PROP_EXPORT_TYPE
           
 
Constructor Summary
ExportUtils()
           
 
Method Summary
static java.util.Properties getExportDescriptor(java.io.File exportZip, boolean cleanup)
           
static java.lang.String getExportTypeFromExportZip(java.io.File exportZip)
          extracts only the exportDescriptor.properties from an export zip and determine the type of export
static java.lang.String getExportTypeFromExportZip(java.io.File exportZip, boolean cleanup)
           
static java.lang.String getSpaceKeyFromExportZip(java.io.File exportZip)
          parses entities.xml file and extracts the first space key it finds
static boolean isSpaceImport(java.io.File importFile)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_BUILD_NUMBER

public static final java.lang.String PROP_BUILD_NUMBER
See Also:
Constant Field Values

PROP_EXPORT_TYPE

public static final java.lang.String PROP_EXPORT_TYPE
See Also:
Constant Field Values

PROP_BACKUP_ATTACHMENTS

public static final java.lang.String PROP_BACKUP_ATTACHMENTS
See Also:
Constant Field Values
Constructor Detail

ExportUtils

public ExportUtils()
Method Detail

getExportTypeFromExportZip

public static java.lang.String getExportTypeFromExportZip(java.io.File exportZip)
                                                   throws ImportExportException,
                                                          UnexpectedImportZipFileContents
extracts only the exportDescriptor.properties from an export zip and determine the type of export

Parameters:
exportZip -
Throws:
ImportExportException
UnexpectedImportZipFileContents

getExportTypeFromExportZip

public static java.lang.String getExportTypeFromExportZip(java.io.File exportZip,
                                                          boolean cleanup)
                                                   throws ImportExportException,
                                                          UnexpectedImportZipFileContents
Throws:
ImportExportException
UnexpectedImportZipFileContents

getExportDescriptor

public static java.util.Properties getExportDescriptor(java.io.File exportZip,
                                                       boolean cleanup)
                                                throws ImportExportException,
                                                       UnexpectedImportZipFileContents
Throws:
ImportExportException
UnexpectedImportZipFileContents

isSpaceImport

public static boolean isSpaceImport(java.io.File importFile)
                             throws ImportExportException,
                                    UnexpectedImportZipFileContents
Throws:
ImportExportException
UnexpectedImportZipFileContents

getSpaceKeyFromExportZip

public static java.lang.String getSpaceKeyFromExportZip(java.io.File exportZip)
                                                 throws ImportExportException,
                                                        UnexpectedImportZipFileContents
parses entities.xml file and extracts the first space key it finds

Parameters:
exportZip -
Throws:
ImportExportException
UnexpectedImportZipFileContents


Copyright © 2003-2010 Atlassian. All Rights Reserved.