RED-1019: Fixed returning numberOfPages
This commit is contained in:
parent
1e7d535a33
commit
1ed9941259
@ -64,8 +64,12 @@ public class RedactionController implements RedactionResource {
|
|||||||
|
|
||||||
log.info("Redaction analysis successful...");
|
log.info("Redaction analysis successful...");
|
||||||
|
|
||||||
return AnalyzeResult.builder().sectionGrid(classifiedDoc.getSectionGrid()).redactionLog(new RedactionLog(classifiedDoc.getRedactionLogEntities(), classifiedDoc.getDictionaryVersion(), classifiedDoc
|
return AnalyzeResult.builder()
|
||||||
.getRulesVersion(), analyzeRequest.getRuleSetId())).build();
|
.sectionGrid(classifiedDoc.getSectionGrid())
|
||||||
|
.redactionLog(new RedactionLog(classifiedDoc.getRedactionLogEntities(), classifiedDoc.getDictionaryVersion(), classifiedDoc
|
||||||
|
.getRulesVersion(), analyzeRequest.getRuleSetId()))
|
||||||
|
.numberOfPages(classifiedDoc.getPages().size())
|
||||||
|
.build();
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new RedactionException(e);
|
throw new RedactionException(e);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user