Package com.orchestranetworks.addon.dama.ext.backuprestore
Provides the interfaces and classes to perform backup and restore operations on the {addon.label.full} dataset.
-
Backup the {addon.label.full} dataset:
//Use
BackupRestoreFactory
to get an instance ofBackupService
. BackupService backupService = BackupRestoreFactory.getBackupService(); //Create a new instance ofBackupSpec
with the name of the backup file, folder for the backup file and EBX® session. BackupSpec backupSpec = new BackupSpec(aSession, "aFileName", aFolder); //Backup the {addon.label.full} dataset and return aFile as the backup File. File backupFile = backupService.backup(backupSpec); -
Restore digital assets to a specified location:
//Use
BackupRestoreFactory
to get an instance ofRestoreService
. RestoreService restoreService = BackupRestoreFactory.getRestoreService(); //Create a new instance ofRestoreSpec
with the location of the backup file and EBX® session. RestoreSpec restoreSpec = new RestoreSpec(backupFile, aSession); //Get an instance ofRestoreDetail
. RestoreDetail restoreDetail = restoreService.getRestoreDetails(restoreSpec); //Get the drive's information and input new drive location. List<DriveInformation> driveInformations = restoreDetail.getDriveInformations(); driveInformations.get(0).setNewLocation("aString"); //Restore the {addon.label.full} dataset with 'restoreDetail' //OperationExecutionStatus
will be returned as the result of the execution. OperationExecutionStatus status = restoreService.restore(restoreDetail);
-
Interface Summary Interface Description BackupService Defines the backup service.DriveInformation Defines the drive information.RestoreDetail Defines the restore detail.RestoreService Defines the restore service. -
Class Summary Class Description BackupRestoreFactory Defines the backup restore factory.BackupSpec Defines the backup specifications.RestoreSpec Defines the restore service specifications.