@Override
public void makeProjectPrivate(long actor, long projectId) {
if (!ruleValidator.hasWriteAccessOnProject(actor, projectId))
throw new AccessDenied("User have no permission to make project private");
final Project project = findProject(projectId);
final ImmutableMap<User, AccessLevel> oldCollaborators = copyOf(project.getSharing().getAllCollaborators());
project.getSharing().setType(Sharing.Type.PRIVATE);
final Project saved = saveProject(project);
updateExperimentSharing(project);