mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2026-11-02 11:37:37 +00:00
Impl WIP
This commit is contained in:
1 file changed
+9
-1
@@ -19,6 +19,7 @@ import one.nem.lacerta.source.database.entity.LibraryEntity;
|
|||||||
import one.nem.lacerta.source.database.entity.TagEntity;
|
import one.nem.lacerta.source.database.entity.TagEntity;
|
||||||
|
|
||||||
import one.nem.lacerta.source.jgit.JGitRepository;
|
import one.nem.lacerta.source.jgit.JGitRepository;
|
||||||
|
import one.nem.lacerta.utils.repository.DeviceInfoUtils;
|
||||||
|
|
||||||
|
|
||||||
public class DocumentImpl implements Document{
|
public class DocumentImpl implements Document{
|
||||||
@@ -33,6 +34,9 @@ public class DocumentImpl implements Document{
|
|||||||
@Inject
|
@Inject
|
||||||
JGitRepository jGitRepository;
|
JGitRepository jGitRepository;
|
||||||
|
|
||||||
|
@Inject
|
||||||
|
DeviceInfoUtils deviceInfoUtils;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ArrayList<DocumentMeta> getRecentDocumentMetas(int limit) {
|
public ArrayList<DocumentMeta> getRecentDocumentMetas(int limit) {
|
||||||
// ArrayList<DocumentMeta> documentMetas = new ArrayList<>();
|
// ArrayList<DocumentMeta> documentMetas = new ArrayList<>();
|
||||||
@@ -91,6 +95,10 @@ public class DocumentImpl implements Document{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public DocumentDetail createDocumentByMeta(DocumentMeta meta) {
|
public DocumentDetail createDocumentByMeta(DocumentMeta meta) {
|
||||||
return null;
|
DocumentDetail documentDetail = new DocumentDetail();
|
||||||
|
|
||||||
|
documentDetail.setMeta(meta);
|
||||||
|
documentDetail.setAuthor("author"); // TODO-rca: SharedPrefを扱う機能を作ってそこから取得するようにする or Gitの設定を参照するようにする
|
||||||
|
documentDetail.setPath(new DocumentPath(deviceInfoUtils.getExternalStorageDirectory(), meta.getTitle())); // TODO-rca: パスの生成方法を考える
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user