操作メソッド実装

This commit is contained in:
ろむねこ 2024-01-25 15:59:21 +09:00
parent 950e0fe2dc
commit 0dad6d30d4
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168

View File

@ -229,7 +229,15 @@ public class LacertaLibraryImpl implements LacertaLibrary {
@Override @Override
public CompletableFuture<ArrayList<DocumentTag>> getTagList() { public CompletableFuture<ArrayList<DocumentTag>> getTagList() {
return null; return CompletableFuture.supplyAsync(() -> {
List<TagEntity> tagEntities = database.tagDao().findAll();
logger.debug("LacertaLibraryImpl", "Database Query: Get TagEntity List (Size: " + tagEntities.size() + ")");
ArrayList<DocumentTag> documentTags = new ArrayList<>();
for (TagEntity tagEntity : tagEntities) {
documentTags.add(convertTagEntityToDocumentTag(tagEntity));
}
return documentTags;
});
} }
@Override @Override