return syncCount;
}
@RequiredPermission(Permission.MANAGE_REPOSITORIES)
public void cancelSync(Subject subject, int repoId) throws ContentException {
ContentServerPluginContainer pc;
try {
pc = ContentManagerHelper.getPluginContainer();
} catch (Exception e) {
throw new RuntimeException(e);
}
Repo repo = this.getRepo(subject, repoId);
try {
pc.cancelRepoSync(subject, repo);
} catch (SchedulerException e) {
throw new ContentException(e);
}
RepoSyncResults results = this.getMostRecentSyncResults(subject, repo.getId());