public class BambooHomeMigrationServiceImpl extends Object implements BambooHomeMigrationService
Constructor and Description |
---|
BambooHomeMigrationServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
exportBambooHomeDirectory(File targetDirectory)
Exports Bamboo Home directory to the given directory, modifying the data on the fly (stripping e.g.
|
List<org.apache.commons.lang3.tuple.Pair<File,String>> |
getBambooHomeDirectoriesToExportSeparately(CloudExportSettings cloudExportSettings)
Obtain a list of directories which will not be exported as part of
BambooHomeMigrationService.exportBambooHomeDirectory(File) . |
@NotNull public List<org.apache.commons.lang3.tuple.Pair<File,String>> getBambooHomeDirectoriesToExportSeparately(CloudExportSettings cloudExportSettings)
BambooHomeMigrationService
BambooHomeMigrationService.exportBambooHomeDirectory(File)
.
These directories should not require any modifications and data truncation and thus, to save resources, can be
separately copied directly to e.g. target zip archive.
Each entry of the list should is a pair of values: source directory (left) and relative path of target directory (right) (relative to exported home directory).
getBambooHomeDirectoriesToExportSeparately
in interface BambooHomeMigrationService
BambooHomeMigrationService.exportBambooHomeDirectory(File)
.public void exportBambooHomeDirectory(@NotNull File targetDirectory) throws CloudExportException
BambooHomeMigrationService
The target directory must exist and must be empty prior to calling this method.
Some directories may not require any modifications, and exporting them may be optimized by directly copying
them e.g. to the target zip archive. This method will not export any entries from BambooHomeMigrationService.getBambooHomeDirectoriesToExportSeparately(CloudExportSettings)
.
exportBambooHomeDirectory
in interface BambooHomeMigrationService
targetDirectory
- directory into which Bamboo home should be exportedCloudExportException
- if any errors occur; the message should be internationalized, as it will be
displayed in the UICopyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.