* {@inheritDoc}
*/
public void restoreRepository(String repositoryBackupIdentifier, boolean asynchronous)
throws BackupOperationException, BackupConfigurationException
{
RepositoryBackupChainLog backupChainLog = null;
for (RepositoryBackupChainLog chainLog : getRepositoryBackupsLogs())
{
if (chainLog.getBackupId().equals(repositoryBackupIdentifier))
{
backupChainLog = chainLog;
break;
}
}
if (backupChainLog == null)
{
throw new BackupConfigurationException("Can not found backup of repository with id \""
+ repositoryBackupIdentifier + "\"");
}
try
{
this.restore(backupChainLog, backupChainLog.getOriginalRepositoryEntry(), asynchronous);
}
catch (RepositoryException e)
{
throw new RepositoryRestoreExeption("Repository \"" + backupChainLog.getOriginalRepositoryEntry().getName()
+ "\" was not restored", e);
}
catch (RepositoryConfigurationException e)
{
throw new RepositoryRestoreExeption("Repository \"" + backupChainLog.getOriginalRepositoryEntry().getName()
+ "\" was not restored", e);
}
}