mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2026-11-02 11:37:37 +00:00
タイトルからDocumentMetaをつくれるように
This commit is contained in:
1 file changed
+6
@@ -4,6 +4,7 @@ import java.util.ArrayList;
|
|||||||
import one.nem.lacerta.model.document.tag.DocumentTag;
|
import one.nem.lacerta.model.document.tag.DocumentTag;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ドキュメントのメタデータ
|
* ドキュメントのメタデータ
|
||||||
@@ -59,6 +60,11 @@ public class DocumentMeta {
|
|||||||
this.title = title;
|
this.title = title;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public DocumentMeta(String title) { // title only
|
||||||
|
this.id = UUID.randomUUID().toString(); // 新規作成時想定なのでコンストラクタで生成してしまう(使う人が楽なので)
|
||||||
|
this.title = title;
|
||||||
|
}
|
||||||
|
|
||||||
// Getter
|
// Getter
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in new issue
Block a user