From d47832ac825ea49c6cd0e5e283ae0d81e44d0726 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8D=E3=82=80=E3=81=AD=E3=81=93?= Date: Thu, 14 Dec 2023 11:53:03 +0900 Subject: [PATCH] =?UTF-8?q?getTagIds=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/one/nem/lacerta/model/document/DocumentMeta.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/model/src/main/java/one/nem/lacerta/model/document/DocumentMeta.java b/model/src/main/java/one/nem/lacerta/model/document/DocumentMeta.java index 9b7e03d5..934c44ee 100644 --- a/model/src/main/java/one/nem/lacerta/model/document/DocumentMeta.java +++ b/model/src/main/java/one/nem/lacerta/model/document/DocumentMeta.java @@ -35,6 +35,14 @@ public class DocumentMeta { return tags; } + public List getTagIds() { + List tagIds = new ArrayList<>(); + for (DocumentTag tag : tags) { + tagIds.add(tag.getId()); + } + return tagIds; + } + // Setter public void setId(String id) {