mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2026-11-07 19:47:36 +00:00
Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c49062618e | ||
|
|
000a26645e |
No files matched your search
@@ -116,7 +116,6 @@ public class DocumentImpl implements Document{
|
|||||||
|
|
||||||
documentDetail.setMeta(documentMeta);
|
documentDetail.setMeta(documentMeta);
|
||||||
documentDetail.setAuthor(documentEntity.author);
|
documentDetail.setAuthor(documentEntity.author);
|
||||||
documentDetail.setPath(documentPath);
|
|
||||||
documentDetail.setDefaultBranch(documentEntity.defaultBranch);
|
documentDetail.setDefaultBranch(documentEntity.defaultBranch);
|
||||||
|
|
||||||
return documentDetail;
|
return documentDetail;
|
||||||
@@ -133,7 +132,6 @@ public class DocumentImpl implements Document{
|
|||||||
|
|
||||||
documentDetail.setMeta(meta);
|
documentDetail.setMeta(meta);
|
||||||
documentDetail.setAuthor("author"); // TODO-rca: SharedPrefを扱う機能を作ってそこから取得するようにする or Gitの設定を参照するようにする
|
documentDetail.setAuthor("author"); // TODO-rca: SharedPrefを扱う機能を作ってそこから取得するようにする or Gitの設定を参照するようにする
|
||||||
documentDetail.setPath(new DocumentPath(deviceInfoUtils.getExternalStorageDirectoryString(), meta.getId()));
|
|
||||||
documentDetail.setDefaultBranch("master"); // TODO-rca: SharedPrefを扱う機能を作ってそこから取得するようにする?
|
documentDetail.setDefaultBranch("master"); // TODO-rca: SharedPrefを扱う機能を作ってそこから取得するようにする?
|
||||||
|
|
||||||
return documentDetail;
|
return documentDetail;
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import java.nio.file.Path;
|
|||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
import one.nem.lacerta.model.document.path.DocumentPath;
|
import one.nem.lacerta.model.document.path.DocumentPath;
|
||||||
|
import one.nem.lacerta.model.PublicPath;
|
||||||
import one.nem.lacerta.model.document.DocumentMeta;
|
import one.nem.lacerta.model.document.DocumentMeta;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -19,9 +20,9 @@ public class DocumentDetail {
|
|||||||
DocumentMeta meta;
|
DocumentMeta meta;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ドキュメントのパス(DocumentPathインスタンス)
|
* ユーザーが扱うパス
|
||||||
*/
|
*/
|
||||||
DocumentPath path;
|
PublicPath publicPath;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ドキュメントの作者(String)
|
* ドキュメントの作者(String)
|
||||||
@@ -39,9 +40,9 @@ public class DocumentDetail {
|
|||||||
public DocumentDetail() {
|
public DocumentDetail() {
|
||||||
}
|
}
|
||||||
|
|
||||||
public DocumentDetail(DocumentMeta meta, DocumentPath path, String author, String defaultBranch) {
|
public DocumentDetail(DocumentMeta meta, PublicPath publicPath, String author, String defaultBranch) {
|
||||||
this.meta = meta;
|
this.meta = meta;
|
||||||
this.path = path;
|
this.publicPath = publicPath;
|
||||||
this.author = author;
|
this.author = author;
|
||||||
this.defaultBranch = defaultBranch;
|
this.defaultBranch = defaultBranch;
|
||||||
}
|
}
|
||||||
@@ -56,10 +57,10 @@ public class DocumentDetail {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ドキュメントのパス(DocumentPathインスタンス)を取得する
|
* ユーザーが扱うパスを取得する
|
||||||
*/
|
*/
|
||||||
public DocumentPath getPath() {
|
public PublicPath getPublicPath() {
|
||||||
return path;
|
return publicPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -95,11 +96,11 @@ public class DocumentDetail {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ドキュメントのパス(DocumentPathインスタンス)を設定する
|
* ユーザーが扱うパスを設定する
|
||||||
* @param path DocumentPathインスタンス
|
* @param publicPath ユーザーが扱うパス
|
||||||
*/
|
*/
|
||||||
public void setPath(DocumentPath path) {
|
public void setPublicPath(PublicPath publicPath) {
|
||||||
this.path = path;
|
this.publicPath = publicPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in new issue
Block a user