RED-9139: move document to module in redaction-service
* add feature version
This commit is contained in:
parent
073ac12cf7
commit
6a50d45947
@ -8,7 +8,7 @@ plugins {
|
|||||||
|
|
||||||
group = "com.knecon.fforesight"
|
group = "com.knecon.fforesight"
|
||||||
|
|
||||||
val documentVersion by rootProject.extra { "4.425.0-RED9139.13" }
|
val documentVersion by rootProject.extra { "4.425.0-RED9139.14" }
|
||||||
|
|
||||||
java.sourceCompatibility = JavaVersion.VERSION_17
|
java.sourceCompatibility = JavaVersion.VERSION_17
|
||||||
java.targetCompatibility = JavaVersion.VERSION_17
|
java.targetCompatibility = JavaVersion.VERSION_17
|
||||||
|
|||||||
@ -12,6 +12,7 @@ import java.util.LinkedList;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.NoSuchElementException;
|
import java.util.NoSuchElementException;
|
||||||
|
import java.util.Objects;
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
@ -62,7 +63,6 @@ public class DocumentGraphFactory {
|
|||||||
|
|
||||||
Document documentGraph = new Document();
|
Document documentGraph = new Document();
|
||||||
|
|
||||||
|
|
||||||
Context context = new Context(documentGraph);
|
Context context = new Context(documentGraph);
|
||||||
|
|
||||||
document.getPages()
|
document.getPages()
|
||||||
@ -123,7 +123,7 @@ public class DocumentGraphFactory {
|
|||||||
node = Headline.builder().documentTree(context.getDocumentTree()).build();
|
node = Headline.builder().documentTree(context.getDocumentTree()).build();
|
||||||
} else if (originalTextBlock.isToDuplicate() && layoutParsingType.equals(LayoutParsingType.REDACT_MANAGER)) {
|
} else if (originalTextBlock.isToDuplicate() && layoutParsingType.equals(LayoutParsingType.REDACT_MANAGER)) {
|
||||||
node = DuplicatedParagraph.builder().documentTree(context.getDocumentTree()).build();
|
node = DuplicatedParagraph.builder().documentTree(context.getDocumentTree()).build();
|
||||||
} else if (originalTextBlock.getClassification().equals(PageBlockType.TABLE_OF_CONTENTS_ITEM)) {
|
} else if (Objects.equals(originalTextBlock.getClassification(), PageBlockType.TABLE_OF_CONTENTS_ITEM)) {
|
||||||
node = TableOfContentsItem.builder().documentTree(context.getDocumentTree()).build();
|
node = TableOfContentsItem.builder().documentTree(context.getDocumentTree()).build();
|
||||||
} else {
|
} else {
|
||||||
node = Paragraph.builder().documentTree(context.getDocumentTree()).build();
|
node = Paragraph.builder().documentTree(context.getDocumentTree()).build();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user