Search in sources :

Example 1 with AuthorizeProjectUserRequest

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);
        }
    }
}
Also used : AuthorizeProjectUserRequest(com.webank.wedatasphere.qualitis.project.request.AuthorizeProjectUserRequest)

Aggregations

AuthorizeProjectUserRequest (com.webank.wedatasphere.qualitis.project.request.AuthorizeProjectUserRequest)1