RED-5028: Added flag for enabling figure detection
This commit is contained in:
parent
ff225b4260
commit
c5aacabb6a
@ -576,12 +576,14 @@ public class FileStatusService {
|
|||||||
|
|
||||||
boolean reanalyse = fileModel.isReanalysisRequired() || manualRedactionReanalyse;
|
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);
|
addToFigureDetectionRequestQueue(dossierId, fileId);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!reanalyse && !fileManagementStorageService.objectExists(dossierId, fileId, FileType.TABLES) && settings.isCvServiceEnabled()) {
|
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);
|
addToTableParsingRequestQueue(dossierId, fileId);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -32,4 +32,6 @@ public class FileManagementServiceSettings {
|
|||||||
|
|
||||||
private boolean cvServiceEnabled;
|
private boolean cvServiceEnabled;
|
||||||
|
|
||||||
|
private boolean figureDetectionEnabled;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user