use of io.lumeer.api.model.Project in project engine by Lumeer.
the class ProjectFacadeIT method createProjectWithStrangerPermissions.
private Project createProjectWithStrangerPermissions(final String code) {
Project project = new JsonProject(code, NAME, ICON, COLOR, null, null);
project.getPermissions().updateUserPermissions(USER_PERMISSION, new SimplePermission(STRANGER_USER, Collections.singleton(Role.MANAGE)));
project.getPermissions().updateGroupPermissions(GROUP_PERMISSION);
return projectDao.createProject(project);
}
Aggregations