com.atlassian.bamboo.migration
Class ImportExportManagerImpl

java.lang.Object
  extended by com.atlassian.bamboo.migration.ImportExportManagerImpl
All Implemented Interfaces:
ImportExportManager

public class ImportExportManagerImpl
extends java.lang.Object
implements ImportExportManager


Constructor Summary
ImportExportManagerImpl(DeletionService deletionService, XmlMigrator xmlMigrator, com.opensymphony.xwork.TextProvider textProvider, AdminErrorHandler adminErrorHandler, DummyResultsSummaryCache dummyResultsSummaryCache, ImmutablePlanCacheService immutablePlanCacheService)
           
 
Method Summary
 void bambooExport(ExportDetailsBean exportDetails)
          Controls Bamboo Export
 void bambooImport(java.lang.String path)
          Execute first phase of import.
 void bambooImport(java.lang.String path, boolean clearArtifacts)
          Controls Bamboo Import
 void bambooOsgiDependentImport(java.lang.String path)
          Execute second phase of import.
 void validateImport(java.lang.String path)
          Validates Bamboo import file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImportExportManagerImpl

public ImportExportManagerImpl(DeletionService deletionService,
                               XmlMigrator xmlMigrator,
                               com.opensymphony.xwork.TextProvider textProvider,
                               AdminErrorHandler adminErrorHandler,
                               DummyResultsSummaryCache dummyResultsSummaryCache,
                               ImmutablePlanCacheService immutablePlanCacheService)
Method Detail

bambooExport

public void bambooExport(ExportDetailsBean exportDetails)
                  throws java.lang.Exception
Description copied from interface: ImportExportManager
Controls Bamboo Export

Specified by:
bambooExport in interface ImportExportManager
Parameters:
exportDetails - ExportDetailsBean containing any information required to do the export
Throws:
java.lang.InterruptedException
java.lang.Exception

bambooImport

public void bambooImport(java.lang.String path)
                  throws java.lang.Exception
Description copied from interface: ImportExportManager
Execute first phase of import. All non-OSGI mappers are executed. Note that

Specified by:
bambooImport in interface ImportExportManager
Parameters:
path - String path of file to import
Throws:
java.lang.InterruptedException
java.lang.Exception

bambooOsgiDependentImport

public void bambooOsgiDependentImport(java.lang.String path)
                               throws java.lang.Exception
Description copied from interface: ImportExportManager
Execute second phase of import. Only OSGI mappers are executed.

Specified by:
bambooOsgiDependentImport in interface ImportExportManager
Parameters:
path - String path of file to import
Throws:
java.lang.Exception

bambooImport

public void bambooImport(java.lang.String path,
                         boolean clearArtifacts)
                  throws java.lang.Exception
Description copied from interface: ImportExportManager
Controls Bamboo Import

Specified by:
bambooImport in interface ImportExportManager
Parameters:
path - String path of file to import
clearArtifacts - artifact directory is erased prior the import iff true
Throws:
java.lang.InterruptedException
java.lang.Exception

validateImport

public void validateImport(java.lang.String path)
                    throws java.lang.Exception
Description copied from interface: ImportExportManager
Validates Bamboo import file

Specified by:
validateImport in interface ImportExportManager
Parameters:
path - String path of file to import
Throws:
java.lang.Exception - when import file is not valid


Copyright © 2012 Atlassian. All Rights Reserved.