This commit is contained in:
Timo Bejan 2021-08-05 13:13:48 +03:00
parent b08cdd3a07
commit 4bdca5644a
3 changed files with 0 additions and 28 deletions

View File

@ -1,14 +0,0 @@
package com.iqser.red.service.redaction.v1.model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class RedactionServiceDetails {
private int analysisVersion;
}

View File

@ -8,10 +8,6 @@ import org.springframework.web.bind.annotation.RequestBody;
public interface RedactionResource {
String RULE_SET_PARAMETER_NAME = "dossierTemplateId";
String RULE_SET_PATH_VARIABLE = "/{" + RULE_SET_PARAMETER_NAME + "}";
@PostMapping(value = "/annotate", produces = MediaType.APPLICATION_JSON_VALUE, consumes = MediaType.APPLICATION_JSON_VALUE)
AnnotateResponse annotate(@RequestBody AnnotateRequest annotateRequest);
@ -30,7 +26,4 @@ public interface RedactionResource {
@PostMapping(value = "/redaction-log/preview", consumes = MediaType.APPLICATION_JSON_VALUE)
RedactionLog getRedactionLog(@RequestBody RedactionRequest redactionRequest);
@PostMapping(value = "/details", produces = MediaType.APPLICATION_JSON_VALUE)
RedactionServiceDetails getRedactionServiceDetails();
}

View File

@ -39,7 +39,6 @@ public class RedactionController implements RedactionResource {
private final PdfSegmentationService pdfSegmentationService;
private final RedactionStorageService redactionStorageService;
private final RedactionLogMergeService redactionLogMergeService;
private final RedactionServiceSettings redactionServiceSettings;
public AnnotateResponse annotate(@RequestBody AnnotateRequest annotateRequest) {
@ -164,12 +163,6 @@ public class RedactionController implements RedactionResource {
}
}
@Override
public RedactionServiceDetails getRedactionServiceDetails() {
return new RedactionServiceDetails(redactionServiceSettings.getAnalysisVersion());
}
private RedactionResult convert(PDDocument document, int numberOfPages) throws IOException {
try (ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream()) {