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