RED-9717: added fileId to approveresponse

This commit is contained in:
yhampe 2024-08-27 09:44:47 +02:00
parent 5e8d8ea6f6
commit b977a2e46e
2 changed files with 5 additions and 3 deletions

View File

@ -308,7 +308,7 @@ public class StatusController implements StatusResource {
accessControlService.checkAccessPermissionsToDossier(dossierId);
accessControlService.verifyUserIsApprover(dossierId);
ApproveResponse approveResponse = new ApproveResponse(false, new HashMap<>());
ApproveResponse approveResponse = new ApproveResponse(fileId, false, new HashMap<>());
if (!force) {
approveResponse = approvalVerificationService.verifyApprovalOfFile(dossierId, fileId);
}
@ -411,8 +411,8 @@ public class StatusController implements StatusResource {
@Override
@PreAuthorize("hasAuthority('" + SET_STATUS_APPROVED + "')")
public List<ApproveResponse> setStatusApprovedForList(String dossierId,
List<String> fileIds,
@RequestParam(value = FORCE_REQUEST_PARAM, required = false, defaultValue = "false") boolean force) {
List<String> fileIds,
@RequestParam(value = FORCE_REQUEST_PARAM, required = false, defaultValue = "false") boolean force) {
List<ApproveResponse> approveResponses = new ArrayList<>();
accessControlService.checkAccessPermissionsToDossier(dossierId);

View File

@ -18,6 +18,8 @@ import lombok.NoArgsConstructor;
@Builder
public class ApproveResponse {
private String fileId;
private boolean hasWarnings;
private Map<String, List<WarningModel>> fileWarnings = new HashMap<>();