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);
}
// check if we need to use restore with same configuration as original
// it allows to use atomic restore in cluster env
boolean isSameConfigRestore = false;