}
@Override
public void setTitle(Workspace workspace, String title, User user) {
if (!hasWritePermissions(workspace.getWorkspaceId(), user)) {
throw new LumifyAccessDeniedException("user " + user.getUserId() + " does not have write access to workspace " + workspace.getWorkspaceId(), user, workspace.getWorkspaceId());
}
Authorizations authorizations = userRepository.getAuthorizations(user);
Vertex workspaceVertex = getVertexFromWorkspace(workspace, authorizations);
WorkspaceLumifyProperties.TITLE.setProperty(workspaceVertex, title, VISIBILITY.getVisibility(), authorizations);
getGraph().flush();