diff --git a/vcs/src/main/java/one/nem/lacerta/vcs/LacertaVcs.java b/vcs/src/main/java/one/nem/lacerta/vcs/LacertaVcs.java index 1db26d6a..5392e9b2 100644 --- a/vcs/src/main/java/one/nem/lacerta/vcs/LacertaVcs.java +++ b/vcs/src/main/java/one/nem/lacerta/vcs/LacertaVcs.java @@ -26,7 +26,7 @@ public interface LacertaVcs { public CompletableFuture> getLogHistoryInRev(String revId); - public CompletableFuture getDocumentDetailAtRev(String revId); + public CompletableFuture> getDocumentPagePathListRev(String revId); // debug diff --git a/vcs/src/main/java/one/nem/lacerta/vcs/impl/LacertaVcsImpl.java b/vcs/src/main/java/one/nem/lacerta/vcs/impl/LacertaVcsImpl.java index be7e7722..56eebe43 100644 --- a/vcs/src/main/java/one/nem/lacerta/vcs/impl/LacertaVcsImpl.java +++ b/vcs/src/main/java/one/nem/lacerta/vcs/impl/LacertaVcsImpl.java @@ -231,12 +231,12 @@ public class LacertaVcsImpl implements LacertaVcs { return documentMeta; } - private DocumentDetail applyInsertPage(DocumentDetail documentDetail, InsertPage insertPage) { - // TODO-rca: 実装 - return null; + private ArrayList applyInsertPage(ArrayList fileNameList, InsertPage insertPage) { + fileNameList.add(insertPage.getIndex(), insertPage.getFileName()); + return fileNameList; } - private DocumentDetail applyUpdatePage(DocumentDetail documentDetail, UpdatePage updatePage) { + private ArrayList applyUpdatePage(DocumentDetail documentDetail, UpdatePage updatePage) { // TODO-rca: 実装 return null; } @@ -247,7 +247,7 @@ public class LacertaVcsImpl implements LacertaVcs { } @Override - public CompletableFuture getDocumentDetailAtRev(String revId) { + public CompletableFuture> getDocumentPagePathListRev(String revId) { return CompletableFuture.supplyAsync(() -> { ArrayList vcsRevEntities = getRevBeforeTargetId(revId); ArrayList vcsLogEntities = getLogInRevs(vcsRevEntities); @@ -255,8 +255,7 @@ public class LacertaVcsImpl implements LacertaVcs { DocumentDetail documentDetail = new DocumentDetail(); documentDetail.setMeta(createDocumentMeta()); - // WIP - return null; + vcsLogEntities. }); }