use of org.pmiops.workbench.model.IdVerificationListResponse in project workbench by all-of-us.
the class ProfileController method getIdVerificationsForReview.
@Override
@AuthorityRequired({ Authority.REVIEW_ID_VERIFICATION })
public ResponseEntity<IdVerificationListResponse> getIdVerificationsForReview() {
IdVerificationListResponse response = new IdVerificationListResponse();
List<Profile> responseList = new ArrayList<Profile>();
try {
for (User user : userService.getNonVerifiedUsers()) {
responseList.add(profileService.getProfile(user));
}
} catch (ApiException e) {
log.log(Level.INFO, "Error calling FireCloud", e);
return ResponseEntity.status(e.getCode()).build();
}
response.setProfileList(responseList);
return ResponseEntity.ok(response);
}
Aggregations