This commit is contained in:
r-ca 2024-01-24 16:37:54 +09:00
parent 85dba22f57
commit 3c237d3751
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9
2 changed files with 7 additions and 8 deletions

View File

@ -26,7 +26,7 @@ public interface LacertaVcs {
public CompletableFuture<ArrayList<VcsLogModel>> getLogHistoryInRev(String revId); public CompletableFuture<ArrayList<VcsLogModel>> getLogHistoryInRev(String revId);
public CompletableFuture<DocumentDetail> getDocumentDetailAtRev(String revId); public CompletableFuture<ArrayList<String>> getDocumentPagePathListRev(String revId);
// debug // debug

View File

@ -231,12 +231,12 @@ public class LacertaVcsImpl implements LacertaVcs {
return documentMeta; return documentMeta;
} }
private DocumentDetail applyInsertPage(DocumentDetail documentDetail, InsertPage insertPage) { private ArrayList<String> applyInsertPage(ArrayList<String> fileNameList, InsertPage insertPage) {
// TODO-rca: 実装 fileNameList.add(insertPage.getIndex(), insertPage.getFileName());
return null; return fileNameList;
} }
private DocumentDetail applyUpdatePage(DocumentDetail documentDetail, UpdatePage updatePage) { private ArrayList<String> applyUpdatePage(DocumentDetail documentDetail, UpdatePage updatePage) {
// TODO-rca: 実装 // TODO-rca: 実装
return null; return null;
} }
@ -247,7 +247,7 @@ public class LacertaVcsImpl implements LacertaVcs {
} }
@Override @Override
public CompletableFuture<DocumentDetail> getDocumentDetailAtRev(String revId) { public CompletableFuture<ArrayList<String>> getDocumentPagePathListRev(String revId) {
return CompletableFuture.supplyAsync(() -> { return CompletableFuture.supplyAsync(() -> {
ArrayList<VcsRevEntity> vcsRevEntities = getRevBeforeTargetId(revId); ArrayList<VcsRevEntity> vcsRevEntities = getRevBeforeTargetId(revId);
ArrayList<VcsLogEntity> vcsLogEntities = getLogInRevs(vcsRevEntities); ArrayList<VcsLogEntity> vcsLogEntities = getLogInRevs(vcsRevEntities);
@ -255,8 +255,7 @@ public class LacertaVcsImpl implements LacertaVcs {
DocumentDetail documentDetail = new DocumentDetail(); DocumentDetail documentDetail = new DocumentDetail();
documentDetail.setMeta(createDocumentMeta()); documentDetail.setMeta(createDocumentMeta());
// WIP vcsLogEntities.
return null;
}); });
} }