RED-9717: added fileId to approveresponse
This commit is contained in:
parent
5e8d8ea6f6
commit
b977a2e46e
@ -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);
|
||||
|
||||
@ -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<>();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user