com.atlassian.confluence.importexport.xmlimport
Class FileBackupImporter

java.lang.Object
  extended by com.atlassian.confluence.importexport.Importer
      extended by com.atlassian.confluence.importexport.xmlimport.BackupImporter
          extended by com.atlassian.confluence.importexport.xmlimport.FileBackupImporter

public final class FileBackupImporter
extends BackupImporter


Field Summary
 
Fields inherited from class com.atlassian.confluence.importexport.xmlimport.BackupImporter
CONFLUENCE_IMPORT_USE_LEGACY_IMPORTER, FULL_EXPORT_BACKWARDS_COMPATIBILITY, MINIMUM_BUILD_NUMBER, MINIMUM_FULL_IMPORT_BUILD_NUMBER, MINIMUM_SPACE_IMPORT_BUILD_NUMBER, MINIMUM_VERSION, SPACE_EXPORT_BACKWARDS_COMPATIBILITY
 
Fields inherited from class com.atlassian.confluence.importexport.Importer
context, sessionFactory
 
Constructor Summary
FileBackupImporter()
           
 
Method Summary
protected  java.util.Properties getDescriptorProperties()
           
 java.io.InputStream getXmlEntitiesStream()
           
protected  void importAttachments(ImportProcessorSummary context, java.io.File extractedDir)
          Copies the attachments from the import location into the configured Confluence attachment store.
protected  ImportProcessorSummary importEverything()
           
protected  void postImportAndCleanUp()
          Perform any special logic after the import and post-import tasks are complete.
protected  void preImport()
          Perform any special logic prior to the import starting.
 void setBackupRestoreProviderManager(BackupRestoreProviderManager backupRestoreProviderManager)
           
 void setBandanaConfigMigrator(BandanaConfigMigrator bandanaConfigMigrator)
           
 void setBootstrapManager(BootstrapManager bootstrapManager)
           
 void setPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor)
           
 
Methods inherited from class com.atlassian.confluence.importexport.xmlimport.BackupImporter
deleteAllDatabaseContent, doImportInternal, doSpecialProcessing, getBuildNumberOfImport, getCreatedByBuildNumberOfImport, getExportType, getUpgradeManager, importEntities, importEverything, isBackupAttachments, isBackupSupportedVersion, isExportedDefaultUserGroupPermission, isExportScopeAll, isIncrementalImport, setBandanaManager, setCacheManager, setI18NBeanFactory, setIncrementalImport, setIndexManager, setPluginStateStore, setPostRestoreUpgradeTasks, setPreProcessors, setScheduler, setSchemaHelper, setSettingsManager, setSpaceManager, setTransactionManager, setUpgradeManager, setUserAccessor, setXmlImporter, unIndexAll
 
Methods inherited from class com.atlassian.confluence.importexport.Importer
completeProgessMeter, doImport, getEventPublisher, publishEvent, setContext, setEventPublisher, setPostImportTasks, setSessionFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileBackupImporter

public FileBackupImporter()
Method Detail

preImport

protected void preImport()
                  throws ImportExportException
Description copied from class: Importer
Perform any special logic prior to the import starting. Default implementation does nothing.

Overrides:
preImport in class BackupImporter
Throws:
ImportExportException - if the import should be aborted

postImportAndCleanUp

protected void postImportAndCleanUp()
                             throws ImportExportException
Description copied from class: Importer
Perform any special logic after the import and post-import tasks are complete. This method will run even if the import fails. The default implementation does nothing.

Overrides:
postImportAndCleanUp in class BackupImporter
Throws:
ImportExportException - if the import process should be aborted

importEverything

protected ImportProcessorSummary importEverything()
                                           throws ImportExportException
Overrides:
importEverything in class BackupImporter
Throws:
ImportExportException

importAttachments

protected void importAttachments(ImportProcessorSummary context,
                                 java.io.File extractedDir)
                          throws ImportExportException,
                                 net.sf.hibernate.HibernateException
Copies the attachments from the import location into the configured Confluence attachment store.

Throws:
ImportExportException
net.sf.hibernate.HibernateException

getDescriptorProperties

protected java.util.Properties getDescriptorProperties()
                                                throws ImportExportException
Specified by:
getDescriptorProperties in class BackupImporter
Throws:
ImportExportException

getXmlEntitiesStream

public java.io.InputStream getXmlEntitiesStream()
                                         throws ImportExportException
Specified by:
getXmlEntitiesStream in class BackupImporter
Throws:
ImportExportException

setBandanaConfigMigrator

public void setBandanaConfigMigrator(BandanaConfigMigrator bandanaConfigMigrator)

setBootstrapManager

public void setBootstrapManager(BootstrapManager bootstrapManager)

setBackupRestoreProviderManager

public void setBackupRestoreProviderManager(BackupRestoreProviderManager backupRestoreProviderManager)

setPluginAccessor

public void setPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor)


Copyright © 2003-2014 Atlassian. All Rights Reserved.