Interface ExtendedBackupManager
- All Superinterfaces:
BackupManager
- All Known Implementing Classes:
BackupManagerImpl
Created by The eXo Platform SAS.
Date: 2010
Date: 2010
- Version:
- $Id$
- Author:
- Alex Reshetnyak
-
Field Summary
Fields inherited from interface org.exoplatform.services.jcr.ext.backup.BackupManager
FULL_AND_INCREMENTAL, FULL_BACKUP_ONLY -
Method Summary
Modifier and TypeMethodDescriptionvoidrestoreExistingRepository(File repositoryBackupSetDir, boolean asynchronous) Restore existing repository.voidrestoreExistingRepository(String repositoryBackupIdentifier, boolean asynchronous) Restore existing repository.voidrestoreExistingRepository(String repositoryBackupIdentifier, org.exoplatform.services.jcr.config.RepositoryEntry repositoryEntry, boolean asynchronous) Restore existing repository.voidrestoreExistingRepository(RepositoryBackupChainLog log, org.exoplatform.services.jcr.config.RepositoryEntry repositoryEntry, boolean asynchronous) Restore existing repository.voidrestoreExistingWorkspace(File workspaceBackupSetDir, boolean asynchronous) Restore existing workspace.voidrestoreExistingWorkspace(String workspaceBackupIdentifier, boolean asynchronous) Restore existing workspace.voidrestoreExistingWorkspace(String workspaceBackupIdentifier, String repositoryName, org.exoplatform.services.jcr.config.WorkspaceEntry workspaceEntry, boolean asynchronous) Restore existing workspace.voidrestoreExistingWorkspace(BackupChainLog log, String repositoryName, org.exoplatform.services.jcr.config.WorkspaceEntry workspaceEntry, boolean asynchronous) Restore existing workspace.voidrestoreRepository(File repositoryBackupSetDir, boolean asynchronous) ReprositoryEntry for restore should be contains in BackupChainLog.voidrestoreRepository(String repositoryBackupIdentifier, boolean asynchronous) ReprositoryEntry for restore should be contains in BackupChainLog.voidrestoreWorkspace(File workspaceBackupSetDir, boolean asynchronous) WorkspaceEntry for restore should be contains in BackupChainLog.voidrestoreWorkspace(String workspaceBackupIdentifier, boolean asynchronous) WorkspaceEntry for restore should be contains in BackupChainLog.Methods inherited from interface org.exoplatform.services.jcr.ext.backup.BackupManager
findBackup, findBackup, findRepositoryBackup, findRepositoryBackupId, getBackupDirectory, getBackupsLogs, getCurrentBackups, getCurrentRepositoryBackups, getDefaultIncrementalJobPeriod, getFullBackupType, getIncrementalBackupType, getLastRepositoryRestore, getLastRestore, getMessages, getRepositoryBackupsLogs, getRepositoryRestores, getRestores, restore, restore, restore, restore, startBackup, startBackup, stopBackup, stopBackup
-
Method Details
-
restoreExistingWorkspace
void restoreExistingWorkspace(String workspaceBackupIdentifier, String repositoryName, org.exoplatform.services.jcr.config.WorkspaceEntry workspaceEntry, boolean asynchronous) throws BackupOperationException, BackupConfigurationException Restore existing workspace. Previous data will be deleted. For getting status of workspace restore can use BackupManager.getLastRestore(String repositoryName, String workspaceName) method- Parameters:
workspaceBackupIdentifier- backup identifierworkspaceEntry- new workspace configurationasynchronous- if 'true' restore will be in asynchronous mode (i.e. in separated thread)- Throws:
BackupOperationException- if backup operation exception occurredBackupConfigurationException- if configuration exception occurred
-
restoreExistingWorkspace
void restoreExistingWorkspace(BackupChainLog log, String repositoryName, org.exoplatform.services.jcr.config.WorkspaceEntry workspaceEntry, boolean asynchronous) throws BackupOperationException, BackupConfigurationException Restore existing workspace. Previous data will be deleted. For getting status of workspace restore can use BackupManager.getLastRestore(String repositoryName, String workspaceName) method- Parameters:
log- workspace backup logworkspaceEntry- new workspace configurationasynchronous- if 'true' restore will be in asynchronous mode (i.e. in separated thread)- Throws:
BackupOperationException- if backup operation exception occurredBackupConfigurationException- if configuration exception occurred
-
restoreExistingRepository
void restoreExistingRepository(String repositoryBackupIdentifier, org.exoplatform.services.jcr.config.RepositoryEntry repositoryEntry, boolean asynchronous) throws BackupOperationException, BackupConfigurationException Restore existing repository. Previous data will be deleted. For getting status of repository restore can use BackupManager.getLastRestore(String repositoryName) method- Parameters:
repositoryBackupIdentifier- backup identifierrepositoryEntry- new repository configurationasynchronous- if 'true' restore will be in asynchronous mode (i.e. in separated thread)- Throws:
BackupOperationException- if backup operation exception occurredBackupConfigurationException- if configuration exception occurred
-
restoreExistingRepository
void restoreExistingRepository(RepositoryBackupChainLog log, org.exoplatform.services.jcr.config.RepositoryEntry repositoryEntry, boolean asynchronous) throws BackupOperationException, BackupConfigurationException Restore existing repository. Previous data will be deleted. For getting status of repository restore can use BackupManager.getLastRestore(String repositoryName) method- Parameters:
log- repository backup logrepositoryEntry- new repository configurationasynchronous- if 'true' restore will be in asynchronous mode (i.e. in separated thread)- Throws:
BackupOperationException- if backup operation exception occurredBackupConfigurationException- if configuration exception occurred
-
restoreExistingWorkspace
void restoreExistingWorkspace(String workspaceBackupIdentifier, boolean asynchronous) throws BackupOperationException, BackupConfigurationException Restore existing workspace. Previous data will be deleted. For getting status of workspace restore can use BackupManager.getLastRestore(String repositoryName, String workspaceName) method WorkspaceEntry for restore should be contains in BackupChainLog.- Parameters:
workspaceBackupIdentifier- identifier to workspace backup.asynchronous- if 'true' restore will be in asynchronous mode (i.e. in separated thread)- Throws:
BackupOperationException- if backup operation exception occurredBackupConfigurationException- if configuration exception occurred
-
restoreExistingRepository
void restoreExistingRepository(String repositoryBackupIdentifier, boolean asynchronous) throws BackupOperationException, BackupConfigurationException Restore existing repository. Previous data will be deleted. For getting status of repository restore can use BackupManager.getLastRestore(String repositoryName) method. ReprositoryEntry for restore should be contains in BackupChainLog.- Parameters:
repositoryBackupIdentifier- identifier to repository backup.asynchronous- if 'true' restore will be in asynchronous mode (i.e. in separated thread)- Throws:
BackupOperationException- if backup operation exception occurredBackupConfigurationException- if configuration exception occurred
-
restoreWorkspace
void restoreWorkspace(String workspaceBackupIdentifier, boolean asynchronous) throws BackupOperationException, BackupConfigurationException WorkspaceEntry for restore should be contains in BackupChainLog.- Parameters:
workspaceBackupIdentifier- identifier to workspace backup.asynchronous- if 'true' restore will be in asynchronous mode (i.e. in separated thread)- Throws:
BackupOperationException- if backup operation exception occurredBackupConfigurationException- if configuration exception occurred
-
restoreRepository
void restoreRepository(String repositoryBackupIdentifier, boolean asynchronous) throws BackupOperationException, BackupConfigurationException ReprositoryEntry for restore should be contains in BackupChainLog.- Parameters:
repositoryBackupIdentifier- identifier to repository backup.asynchronous- if 'true' restore will be in asynchronous mode (i.e. in separated thread)- Throws:
BackupOperationException- if backup operation exception occurredBackupConfigurationException- if configuration exception occurred
-
restoreExistingWorkspace
void restoreExistingWorkspace(File workspaceBackupSetDir, boolean asynchronous) throws BackupOperationException, BackupConfigurationException Restore existing workspace. Previous data will be deleted. For getting status of workspace restore can use BackupManager.getLastRestore(String repositoryName, String workspaceName) method WorkspaceEntry for restore should be contains in BackupChainLog.- Parameters:
workspaceBackupSetDir- the directory with backup setasynchronous- if 'true' restore will be in asynchronous mode (i.e. in separated thread)- Throws:
BackupOperationException- if backup operation exception occurredBackupConfigurationException- if configuration exception occurred
-
restoreExistingRepository
void restoreExistingRepository(File repositoryBackupSetDir, boolean asynchronous) throws BackupOperationException, BackupConfigurationException Restore existing repository. Previous data will be deleted. For getting status of repository restore can use BackupManager.getLastRestore(String repositoryName) method. ReprositoryEntry for restore should be contains in BackupChainLog.- Parameters:
repositoryBackupSetDir- the directory with backup setasynchronous- if 'true' restore will be in asynchronous mode (i.e. in separated thread)- Throws:
BackupOperationException- if backup operation exception occurredBackupConfigurationException- if configuration exception occurred
-
restoreWorkspace
void restoreWorkspace(File workspaceBackupSetDir, boolean asynchronous) throws BackupOperationException, BackupConfigurationException WorkspaceEntry for restore should be contains in BackupChainLog.- Parameters:
workspaceBackupSetDir- the directory with backup setasynchronous- if 'true' restore will be in asynchronous mode (i.e. in separated thread)- Throws:
BackupOperationException- if backup operation exception occurredBackupConfigurationException- if configuration exception occurred
-
restoreRepository
void restoreRepository(File repositoryBackupSetDir, boolean asynchronous) throws BackupOperationException, BackupConfigurationException ReprositoryEntry for restore should be contains in BackupChainLog.- Parameters:
repositoryBackupSetDir- the directory with backup setasynchronous- if 'true' restore will be in asynchronous mode (i.e. in separated thread)- Throws:
BackupOperationException- if backup operation exception occurredBackupConfigurationException- if configuration exception occurred
-