Pull request #546: RED-5028: Added flag for enabling figure detection
Merge in RED/persistence-service from RED-5028 to master * commit 'c5aacabb6ab8cb3fd0f5e37011fb0d3e40b8c0f0': RED-5028: Added flag for enabling figure detection
This commit is contained in:
commit
a502aef632
@ -576,12 +576,14 @@ public class FileStatusService {
|
||||
|
||||
boolean reanalyse = fileModel.isReanalysisRequired() || manualRedactionReanalyse;
|
||||
|
||||
if (!reanalyse && !fileManagementStorageService.objectExists(dossierId, fileId, FileType.FIGURE) && settings.isCvServiceEnabled()) {
|
||||
if (!reanalyse && !fileManagementStorageService.objectExists(dossierId, fileId, FileType.FIGURE) && settings.isFigureDetectionEnabled()) {
|
||||
log.debug("Add file: {} from dossier {} to Figure Detection queue", fileId, dossierId);
|
||||
addToFigureDetectionRequestQueue(dossierId, fileId);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!reanalyse && !fileManagementStorageService.objectExists(dossierId, fileId, FileType.TABLES) && settings.isCvServiceEnabled()) {
|
||||
log.debug("Add file: {} from dossier {} to Cv Service queue", fileId, dossierId);
|
||||
addToTableParsingRequestQueue(dossierId, fileId);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -32,4 +32,6 @@ public class FileManagementServiceSettings {
|
||||
|
||||
private boolean cvServiceEnabled;
|
||||
|
||||
private boolean figureDetectionEnabled;
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user