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<DocumentDetail> getDocumentDetailAtRev(String revId);
public CompletableFuture<ArrayList<String>> getDocumentPagePathListRev(String revId);
// debug

View File

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