From 45e6b9ab0561dd38c1114f9de2ccc4d6d21af135 Mon Sep 17 00:00:00 2001 From: r-ca Date: Sat, 27 Jan 2024 17:20:02 +0900 Subject: [PATCH] =?UTF-8?q?DocumentMeta=E3=81=AB=E3=83=95=E3=83=A9?= =?UTF-8?q?=E3=82=B0=E3=82=92=E8=BF=BD=E5=8A=A0,=20=E3=82=B3=E3=83=B3?= =?UTF-8?q?=E3=82=B9=E3=83=88=E3=83=A9=E3=82=AF=E3=82=BF,=20Getter/Setter?= =?UTF-8?q?=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lacerta/model/document/DocumentMeta.java | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/model/src/main/java/one/nem/lacerta/model/document/DocumentMeta.java b/model/src/main/java/one/nem/lacerta/model/document/DocumentMeta.java index ed686d0c..fb396801 100644 --- a/model/src/main/java/one/nem/lacerta/model/document/DocumentMeta.java +++ b/model/src/main/java/one/nem/lacerta/model/document/DocumentMeta.java @@ -36,6 +36,10 @@ public class DocumentMeta { // TODO-rca: JavaDoc対応 String author; + boolean isCombineChild; + + boolean isCombineParent; + // Constructor public DocumentMeta() { @@ -48,6 +52,8 @@ public class DocumentMeta { // TODO-rca: JavaDoc対応 this.parentId = null; this.updatedAt = new Date(); this.createdAt = new Date(); + this.isCombineChild = false; + this.isCombineParent = false; } public DocumentMeta(String title, String author) { @@ -73,6 +79,17 @@ public class DocumentMeta { // TODO-rca: JavaDoc対応 this.author = author; } + public DocumentMeta(String id, String title, Date updatedAt, Date createdAt, String parentId, String author, boolean isCombineChild, boolean isCombineParent) { + this.id = id; + this.title = title; + this.updatedAt = updatedAt; + this.createdAt = createdAt; + this.parentId = parentId; + this.author = author; + this.isCombineChild = isCombineChild; + this.isCombineParent = isCombineParent; + } + // Getter /** @@ -117,6 +134,20 @@ public class DocumentMeta { // TODO-rca: JavaDoc対応 return author; } + /** + * ドキュメントの結合子フラグ(boolean)を取得する + */ + public boolean getIsCombineChild() { + return isCombineChild; + } + + /** + * ドキュメントの結合親フラグ(boolean)を取得する + */ + public boolean getIsCombineParent() { + return isCombineParent; + } + // Setter /** @@ -167,6 +198,22 @@ public class DocumentMeta { // TODO-rca: JavaDoc対応 this.author = author; } + /** + * ドキュメントの結合子フラグ(boolean)を設定する + * @param isCombineChild ドキュメントの結合子フラグ + */ + public void setIsCombineChild(boolean isCombineChild) { + this.isCombineChild = isCombineChild; + } + + /** + * ドキュメントの結合親フラグ(boolean)を設定する + * @param isCombineParent ドキュメントの結合親フラグ + */ + public void setIsCombineParent(boolean isCombineParent) { + this.isCombineParent = isCombineParent; + } + /** * updatedAtを現在時刻に設定する */