use of com.webank.wedatasphere.qualitis.project.request.AuthorizeProjectUserRequest in project Qualitis by WeBankFinTech.
the class ProjectServiceImpl method authorizeUsers.
@Override
public void authorizeUsers(Project savedProject, User userInDb, List<AuthorizeProjectUserRequest> authorizeProjectUserRequests, boolean modify) throws UnExpectedRequestException, PermissionDeniedRequestException, RoleNotFoundException {
if (CollectionUtils.isNotEmpty(authorizeProjectUserRequests)) {
for (AuthorizeProjectUserRequest authorizeProjectUserRequest : authorizeProjectUserRequests) {
authorizeProjectUserRequest.setProjectId(savedProject.getId());
projectUserService.authorizePermission(authorizeProjectUserRequest, userInDb.getId(), modify);
}
}
}
Aggregations