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)
           
 
Method Summary
 void bambooExport(ExportDetailsBean exportDetails)
          Controls Bamboo Export
 void bambooImport(java.lang.String path)
          Controls Bamboo Import
 void bambooImport(java.lang.String path, boolean clearArtifacts)
          Controls Bamboo Import
 java.lang.String planExport(Plan plan)
          Returns XML representation of a Plan and its Project
 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)
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
Controls Bamboo Import

Specified by:
bambooImport in interface ImportExportManager
Parameters:
path - String path of file to import
Throws:
java.lang.InterruptedException
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

planExport

public java.lang.String planExport(Plan plan)
                            throws java.lang.Exception
Description copied from interface: ImportExportManager
Returns XML representation of a Plan and its Project

Specified by:
planExport in interface ImportExportManager
Returns:
Throws:
java.lang.Exception


Copyright © 2011 Atlassian. All Rights Reserved.