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
 
Fields inherited from class com.atlassian.confluence.importexport.Importer
context, sessionFactory
 
Constructor Summary
FileBackupImporter()
           
 
Method Summary
protected  Properties getDescriptorProperties()
           
 InputStream getXmlEntitiesStream()
           
protected  void importAttachments(ImportProcessorSummary context, 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 setBandanaConfigMigrator(BandanaConfigMigrator bandanaConfigMigrator)
           
 void setBootstrapManager(BootstrapManager bootstrapManager)
           
 
Methods inherited from class com.atlassian.confluence.importexport.xmlimport.BackupImporter
completeProgessMeter, deleteAllDatabaseContent, doImportInternal, doSpecialProcessing, getBuildNumberOfImport, getExportType, importEntities, importEverything, isBackupAttachments, isIncrementalImport, makeXmlImporter, setCacheManager, setFilterList, setI18NBeanFactory, setIncrementalImport, setIndexManager, setObjectPersisterFactory, setPostRestoreUpgradeTasks, setScheduler, setSchemaHelper, setSpaceManager, setUpgradeManager, setUserAccessor, unIndexAll
 
Methods inherited from class com.atlassian.confluence.importexport.Importer
doImport, 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,
                                 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 Properties getDescriptorProperties()
                                      throws ImportExportException
Specified by:
getDescriptorProperties in class BackupImporter
Throws:
ImportExportException

getXmlEntitiesStream

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

setBandanaConfigMigrator

public void setBandanaConfigMigrator(BandanaConfigMigrator bandanaConfigMigrator)

setBootstrapManager

public void setBootstrapManager(BootstrapManager bootstrapManager)


Copyright © 2003-2011 Atlassian. All Rights Reserved.