Add parsed text to publication entities.
This commit is contained in:
@@ -8,6 +8,7 @@ public record Publication(
|
||||
String key,
|
||||
String title,
|
||||
String text,
|
||||
String parsedText,
|
||||
String description,
|
||||
ZonedDateTime creationDate,
|
||||
UUID illustrationId,
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
package org.codiki.domain.publication.model.builder;
|
||||
|
||||
import org.codiki.domain.publication.model.Author;
|
||||
import org.codiki.domain.publication.model.Publication;
|
||||
|
||||
import java.time.ZonedDateTime;
|
||||
import java.util.UUID;
|
||||
|
||||
import org.codiki.domain.category.model.Category;
|
||||
import org.codiki.domain.publication.model.Author;
|
||||
import org.codiki.domain.publication.model.Publication;
|
||||
|
||||
public class PublicationBuilder {
|
||||
private UUID id;
|
||||
private String key;
|
||||
private String title;
|
||||
private String text;
|
||||
private String parsedText;
|
||||
private String description;
|
||||
private ZonedDateTime creationDate;
|
||||
private UUID illustrationId;
|
||||
@@ -30,6 +30,7 @@ public class PublicationBuilder {
|
||||
.withKey(publication.key())
|
||||
.withTitle(publication.title())
|
||||
.withText(publication.text())
|
||||
.withParsedText(publication.parsedText())
|
||||
.withDescription(publication.description())
|
||||
.withCreationDate(publication.creationDate())
|
||||
.withIllustrationId(publication.illustrationId())
|
||||
@@ -57,6 +58,11 @@ public class PublicationBuilder {
|
||||
return this;
|
||||
}
|
||||
|
||||
public PublicationBuilder withParsedText(String parsedText) {
|
||||
this.parsedText = parsedText;
|
||||
return this;
|
||||
}
|
||||
|
||||
public PublicationBuilder withDescription(String description) {
|
||||
this.description = description;
|
||||
return this;
|
||||
@@ -88,6 +94,7 @@ public class PublicationBuilder {
|
||||
key,
|
||||
title,
|
||||
text,
|
||||
parsedText,
|
||||
description,
|
||||
creationDate,
|
||||
illustrationId,
|
||||
|
||||
Reference in New Issue
Block a user