repoService.getRepository(repositoryName);
// workspace should be existed
if (!workspaceAlreadyExist(repositoryName, workspaceEntry.getName()))
{
throw new WorkspaceRestoreException("Workspace \"" + workspaceEntry.getName() + "\" should be existed in repository \"" + repositoryName + "\".");
}
}
catch (RepositoryException e)
{
throw new WorkspaceRestoreException("Repository \"" + repositoryName + "\" should be existed", e);
}
catch (RepositoryConfigurationException e)
{
throw new WorkspaceRestoreException("Repository \"" + repositoryName + "\" should be existed", e);
}
JobExistedWorkspaceRestore jobRestore =
new JobExistedWorkspaceRestore(repoService, this, repositoryName, log, workspaceEntry);
restoreJobs.add(jobRestore);