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 voidbambooExport(ExportDetailsBean exportDetails)Controls Bamboo ExportvoidbambooImport(String path)Execute first phase of import.voidbambooImport(String path, boolean clearArtifacts)Controls Bamboo ImportvoidbambooOsgiDependentImport(String path)Execute second phase of import.voidresetGenerators()voidvalidateImport(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:ImportExportManagerControls Bamboo Export- Specified by:
bambooExportin interfaceImportExportManager- Parameters:
exportDetails- ExportDetailsBean containing any information required to do the export- Throws:
InterruptedExceptionException
-
bambooImport
public void bambooImport(String path) throws Exception
Description copied from interface:ImportExportManagerExecute first phase of import. All non-OSGI mappers are executed. Note that- Specified by:
bambooImportin interfaceImportExportManager- Parameters:
path- String path of file to import- Throws:
InterruptedExceptionException
-
bambooOsgiDependentImport
public void bambooOsgiDependentImport(String path) throws Exception
Description copied from interface:ImportExportManagerExecute second phase of import. Only OSGI mappers are executed.- Specified by:
bambooOsgiDependentImportin 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:ImportExportManagerControls Bamboo Import- Specified by:
bambooImportin interfaceImportExportManager- Parameters:
path- String path of file to importclearArtifacts- artifact directory is erased prior the import iff true- Throws:
InterruptedExceptionException
-
validateImport
public void validateImport(String path) throws Exception
Description copied from interface:ImportExportManagerValidates Bamboo import file- Specified by:
validateImportin interfaceImportExportManager- Parameters:
path- String path of file to import- Throws:
Exception- when import file is not valid
-
resetGenerators
public void resetGenerators()
- Specified by:
resetGeneratorsin interfaceImportExportManager
-
-