Package com.atlassian.bamboo.migration
Class ImportExportManagerImpl
- java.lang.Object
-
- com.atlassian.bamboo.migration.ImportExportManagerImpl
-
- All Implemented Interfaces:
ImportExportManager
public class ImportExportManagerImpl extends Object implements ImportExportManager
-
-
Constructor Summary
Constructors Constructor Description ImportExportManagerImpl(DeletionService deletionService, XmlMigrator xmlMigrator, com.opensymphony.xwork2.TextProvider textProvider, AdminErrorHandler adminErrorHandler, DummyResultsSummaryCache dummyResultsSummaryCache, ImmutablePlanCacheService immutablePlanCacheService, ClusterAwareLifecycleManager clusterAwareLifecycleManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bambooExport(ExportDetailsBean exportDetails)
Controls Bamboo Exportvoid
bambooImport(String path)
Execute first phase of import.void
bambooImport(String path, boolean clearArtifacts)
Controls Bamboo Importvoid
bambooOsgiDependentImport(String path)
Execute second phase of import.void
resetGenerators()
void
validateImport(String path)
Validates Bamboo import file
-
-
-
Constructor Detail
-
ImportExportManagerImpl
public ImportExportManagerImpl(DeletionService deletionService, XmlMigrator xmlMigrator, com.opensymphony.xwork2.TextProvider textProvider, AdminErrorHandler adminErrorHandler, DummyResultsSummaryCache dummyResultsSummaryCache, ImmutablePlanCacheService immutablePlanCacheService, ClusterAwareLifecycleManager clusterAwareLifecycleManager)
-
-
Method Detail
-
bambooExport
public void bambooExport(ExportDetailsBean exportDetails) throws Exception
Description copied from interface:ImportExportManager
Controls Bamboo Export- Specified by:
bambooExport
in interfaceImportExportManager
- Parameters:
exportDetails
- ExportDetailsBean containing any information required to do the export- Throws:
InterruptedException
Exception
-
bambooImport
public void bambooImport(String path) throws Exception
Description copied from interface:ImportExportManager
Execute first phase of import. All non-OSGI mappers are executed. Note that- Specified by:
bambooImport
in interfaceImportExportManager
- Parameters:
path
- String path of file to import- Throws:
InterruptedException
Exception
-
bambooOsgiDependentImport
public void bambooOsgiDependentImport(String path) throws Exception
Description copied from interface:ImportExportManager
Execute second phase of import. Only OSGI mappers are executed.- Specified by:
bambooOsgiDependentImport
in interfaceImportExportManager
- Parameters:
path
- String path of file to import- Throws:
Exception
-
bambooImport
public void bambooImport(String path, boolean clearArtifacts) throws Exception
Description copied from interface:ImportExportManager
Controls Bamboo Import- Specified by:
bambooImport
in interfaceImportExportManager
- Parameters:
path
- String path of file to importclearArtifacts
- artifact directory is erased prior the import iff true- Throws:
InterruptedException
Exception
-
validateImport
public void validateImport(String path) throws Exception
Description copied from interface:ImportExportManager
Validates Bamboo import file- Specified by:
validateImport
in interfaceImportExportManager
- Parameters:
path
- String path of file to import- Throws:
Exception
- when import file is not valid
-
resetGenerators
public void resetGenerators()
- Specified by:
resetGenerators
in interfaceImportExportManager
-
-