diff --git a/model/src/main/java/one/nem/lacerta/model/document/DocumentDetail.java b/model/src/main/java/one/nem/lacerta/model/document/DocumentDetail.java index 28ac2287..e7cdacdc 100644 --- a/model/src/main/java/one/nem/lacerta/model/document/DocumentDetail.java +++ b/model/src/main/java/one/nem/lacerta/model/document/DocumentDetail.java @@ -1,67 +1,18 @@ package one.nem.lacerta.model.document; +import java.nio.file.Path; import java.util.Date; +import one.nem.lacerta.model.document.path.DocumentPath; +import one.nem.lacerta.model.document.DocumentMeta; + public class DocumentDetail { - String id; - String title; - Date createdAt; - Date updatedAt; + DocumentMeta meta; + DocumentPath path; String author; String defaultBranch; - - // Getter - - public String getId() { - return id; - } - - public String getTitle() { - return title; - } - - public Date getCreatedAt() { - return createdAt; - } - - public Date getUpdatedAt() { - return updatedAt; - } - - public String getAuthor() { - return author; - } - - public String getDefaultBranch() { - return defaultBranch; - } - - // Setter - - public void setId(String id) { - this.id = id; - } - - public void setTitle(String title) { - this.title = title; - } - - public void setCreatedAt(Date createdAt) { - this.createdAt = createdAt; - } - - public void setUpdatedAt(Date updatedAt) { - this.updatedAt = updatedAt; - } - - public void setAuthor(String author) { - this.author = author; - } - - public void setDefaultBranch(String defaultBranch) { - this.defaultBranch = defaultBranch; - } + Path fullPath; } 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 2640c2dc..837e5d28 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 @@ -1,5 +1,7 @@ package one.nem.lacerta.model.document; +import java.util.ArrayList; +import one.nem.lacerta.model.document.tag.DocumentTag; import java.util.Date; public class DocumentMeta { @@ -7,8 +9,8 @@ public class DocumentMeta { String id; String title; Date updatedAt; - String author; - String defaultBranch; + Date createdAt; + ArrayList tags; // TODO-rca: Getter, Setter }