From 8314f850f6ae923d671a1564446a2323651b4586 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, 11 Jan 2024 15:55:51 +0900 Subject: [PATCH 1/7] =?UTF-8?q?Repository,=20Module,=20Impl=E3=83=95?= =?UTF-8?q?=E3=82=A1=E3=82=A4=E3=83=AB=E4=BD=9C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/src/main/java/one/nem/lacerta/data/LacertaLibrary.java | 4 ++++ .../java/one/nem/lacerta/data/impl/LacertaLibraryImpl.java | 4 ++++ .../one/nem/lacerta/data/module/LacertaLibraryModule.java | 4 ++++ 3 files changed, 12 insertions(+) create mode 100644 data/src/main/java/one/nem/lacerta/data/LacertaLibrary.java create mode 100644 data/src/main/java/one/nem/lacerta/data/impl/LacertaLibraryImpl.java create mode 100644 data/src/main/java/one/nem/lacerta/data/module/LacertaLibraryModule.java diff --git a/data/src/main/java/one/nem/lacerta/data/LacertaLibrary.java b/data/src/main/java/one/nem/lacerta/data/LacertaLibrary.java new file mode 100644 index 00000000..1e24a762 --- /dev/null +++ b/data/src/main/java/one/nem/lacerta/data/LacertaLibrary.java @@ -0,0 +1,4 @@ +package one.nem.lacerta.data; + +public interface LacertaLibrary { +} diff --git a/data/src/main/java/one/nem/lacerta/data/impl/LacertaLibraryImpl.java b/data/src/main/java/one/nem/lacerta/data/impl/LacertaLibraryImpl.java new file mode 100644 index 00000000..b3e9c855 --- /dev/null +++ b/data/src/main/java/one/nem/lacerta/data/impl/LacertaLibraryImpl.java @@ -0,0 +1,4 @@ +package one.nem.lacerta.data.impl; + +public class LacertaLibraryImpl { +} diff --git a/data/src/main/java/one/nem/lacerta/data/module/LacertaLibraryModule.java b/data/src/main/java/one/nem/lacerta/data/module/LacertaLibraryModule.java new file mode 100644 index 00000000..889a66ef --- /dev/null +++ b/data/src/main/java/one/nem/lacerta/data/module/LacertaLibraryModule.java @@ -0,0 +1,4 @@ +package one.nem.lacerta.data.module; + +public class LacertaLibraryModule { +} From 451e8532d15021f4d1a79745ff1f25ac8499eb27 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, 11 Jan 2024 16:12:29 +0900 Subject: [PATCH 2/7] =?UTF-8?q?ListItem=E3=83=A2=E3=83=87=E3=83=AB?= =?UTF-8?q?=E3=82=92=E3=83=A9=E3=83=83=E3=83=94=E3=83=B3=E3=82=B0=E3=81=99?= =?UTF-8?q?=E3=82=8B=E3=83=A2=E3=83=87=E3=83=AB=E3=82=92=E4=BD=9C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/one/nem/lacerta/model/LibraryItemList.java | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 model/src/main/java/one/nem/lacerta/model/LibraryItemList.java diff --git a/model/src/main/java/one/nem/lacerta/model/LibraryItemList.java b/model/src/main/java/one/nem/lacerta/model/LibraryItemList.java new file mode 100644 index 00000000..af3b2c35 --- /dev/null +++ b/model/src/main/java/one/nem/lacerta/model/LibraryItemList.java @@ -0,0 +1,4 @@ +package one.nem.lacerta.model; + +public class LibraryItemList { +} From ca61d2c055c04ebebe21845c03b450b58867c37f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8D=E3=82=80=E3=81=AD=E3=81=93?= Date: Fri, 12 Jan 2024 09:54:38 +0900 Subject: [PATCH 3/7] =?UTF-8?q?ListItem=E3=83=A2=E3=83=87=E3=83=AB?= =?UTF-8?q?=E3=82=92=E3=83=A9=E3=83=83=E3=83=94=E3=83=B3=E3=82=B0=E3=81=99?= =?UTF-8?q?=E3=82=8B=E3=83=A2=E3=83=87=E3=83=AB=E3=82=92=E4=BD=9C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../nem/lacerta/model/LibraryItemList.java | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/model/src/main/java/one/nem/lacerta/model/LibraryItemList.java b/model/src/main/java/one/nem/lacerta/model/LibraryItemList.java index af3b2c35..c6727a29 100644 --- a/model/src/main/java/one/nem/lacerta/model/LibraryItemList.java +++ b/model/src/main/java/one/nem/lacerta/model/LibraryItemList.java @@ -1,4 +1,28 @@ package one.nem.lacerta.model; +import java.util.ArrayList; + public class LibraryItemList { + + String pageTitle; + String pageId; + ArrayList listItems; + + public LibraryItemList(String pageTitle, String pageId, ArrayList listItems) { + this.pageTitle = pageTitle; + this.pageId = pageId; + this.listItems = listItems; + } + + public String getPageTitle() { + return pageTitle; + } + + public String getPageId() { + return pageId; + } + + public ArrayList getListItems() { + return listItems; + } } From 3930ec6d9c1d5178a0984797c23f8f9b0d2e4500 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8D=E3=82=80=E3=81=AD=E3=81=93?= Date: Fri, 12 Jan 2024 09:54:48 +0900 Subject: [PATCH 4/7] WIP --- .../one/nem/lacerta/data/LacertaLibrary.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/data/src/main/java/one/nem/lacerta/data/LacertaLibrary.java b/data/src/main/java/one/nem/lacerta/data/LacertaLibrary.java index 1e24a762..214a0813 100644 --- a/data/src/main/java/one/nem/lacerta/data/LacertaLibrary.java +++ b/data/src/main/java/one/nem/lacerta/data/LacertaLibrary.java @@ -1,4 +1,21 @@ package one.nem.lacerta.data; +import java.util.ArrayList; + +import one.nem.lacerta.model.ListItem; +import one.nem.lacerta.model.ListItemType; + public interface LacertaLibrary { + + // Get History + + ArrayList getRecentDocument(int limit); + ArrayList getRecentDocument(int limit, int offset); + ArrayList getRecentDocument(int limit, int offset, ListItemType type); + + // Get List + + ArrayList getDocumentList(int limit); + + } From fb2ba1e6e5388cd369183f8f7618bdf17b455b5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8D=E3=82=80=E3=81=AD=E3=81=93?= Date: Fri, 12 Jan 2024 09:55:34 +0900 Subject: [PATCH 5/7] =?UTF-8?q?=E6=88=BB=E3=82=8A=E5=80=A4=E3=81=AE?= =?UTF-8?q?=E5=9E=8B=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/one/nem/lacerta/data/LacertaLibrary.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/data/src/main/java/one/nem/lacerta/data/LacertaLibrary.java b/data/src/main/java/one/nem/lacerta/data/LacertaLibrary.java index 214a0813..2a5f810b 100644 --- a/data/src/main/java/one/nem/lacerta/data/LacertaLibrary.java +++ b/data/src/main/java/one/nem/lacerta/data/LacertaLibrary.java @@ -5,17 +5,19 @@ import java.util.ArrayList; import one.nem.lacerta.model.ListItem; import one.nem.lacerta.model.ListItemType; +import one.nem.lacerta.model.LibraryItemList; + public interface LacertaLibrary { // Get History - ArrayList getRecentDocument(int limit); - ArrayList getRecentDocument(int limit, int offset); - ArrayList getRecentDocument(int limit, int offset, ListItemType type); + LibraryItemList getRecentDocument(int limit); + LibraryItemList getRecentDocument(int limit, int offset); + LibraryItemList getRecentDocument(int limit, int offset, ListItemType type); // Get List - ArrayList getDocumentList(int limit); + LibraryItemList getDocumentList(int limit); } From 9f41632b0f01826d23b4d2407a3e1678ba6499fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8D=E3=82=80=E3=81=AD=E3=81=93?= Date: Fri, 12 Jan 2024 09:56:18 +0900 Subject: [PATCH 6/7] =?UTF-8?q?=E3=83=AA=E3=83=8D=E3=83=BC=E3=83=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/one/nem/lacerta/data/LacertaLibrary.java | 13 +++++-------- .../{LibraryItemList.java => LibraryItemPage.java} | 4 ++-- 2 files changed, 7 insertions(+), 10 deletions(-) rename model/src/main/java/one/nem/lacerta/model/{LibraryItemList.java => LibraryItemPage.java} (83%) diff --git a/data/src/main/java/one/nem/lacerta/data/LacertaLibrary.java b/data/src/main/java/one/nem/lacerta/data/LacertaLibrary.java index 2a5f810b..0bc1b5e3 100644 --- a/data/src/main/java/one/nem/lacerta/data/LacertaLibrary.java +++ b/data/src/main/java/one/nem/lacerta/data/LacertaLibrary.java @@ -1,23 +1,20 @@ package one.nem.lacerta.data; -import java.util.ArrayList; - -import one.nem.lacerta.model.ListItem; import one.nem.lacerta.model.ListItemType; -import one.nem.lacerta.model.LibraryItemList; +import one.nem.lacerta.model.LibraryItemPage; public interface LacertaLibrary { // Get History - LibraryItemList getRecentDocument(int limit); - LibraryItemList getRecentDocument(int limit, int offset); - LibraryItemList getRecentDocument(int limit, int offset, ListItemType type); + LibraryItemPage getRecentDocument(int limit); + LibraryItemPage getRecentDocument(int limit, int offset); + LibraryItemPage getRecentDocument(int limit, int offset, ListItemType type); // Get List - LibraryItemList getDocumentList(int limit); + LibraryItemPage getDocumentList(int limit); } diff --git a/model/src/main/java/one/nem/lacerta/model/LibraryItemList.java b/model/src/main/java/one/nem/lacerta/model/LibraryItemPage.java similarity index 83% rename from model/src/main/java/one/nem/lacerta/model/LibraryItemList.java rename to model/src/main/java/one/nem/lacerta/model/LibraryItemPage.java index c6727a29..aed41a09 100644 --- a/model/src/main/java/one/nem/lacerta/model/LibraryItemList.java +++ b/model/src/main/java/one/nem/lacerta/model/LibraryItemPage.java @@ -2,13 +2,13 @@ package one.nem.lacerta.model; import java.util.ArrayList; -public class LibraryItemList { +public class LibraryItemPage { String pageTitle; String pageId; ArrayList listItems; - public LibraryItemList(String pageTitle, String pageId, ArrayList listItems) { + public LibraryItemPage(String pageTitle, String pageId, ArrayList listItems) { this.pageTitle = pageTitle; this.pageId = pageId; this.listItems = listItems; From f9375038403a5e6c9bcf414643fbed89bea5f1a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8D=E3=82=80=E3=81=AD=E3=81=93?= Date: Fri, 12 Jan 2024 10:18:04 +0900 Subject: [PATCH 7/7] =?UTF-8?q?=E3=82=A4=E3=83=B3=E3=82=BF=E3=83=95?= =?UTF-8?q?=E3=82=A7=E3=83=BC=E3=82=B9=E8=A8=AD=E8=A8=88=20WIP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/one/nem/lacerta/data/LacertaLibrary.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/data/src/main/java/one/nem/lacerta/data/LacertaLibrary.java b/data/src/main/java/one/nem/lacerta/data/LacertaLibrary.java index 0bc1b5e3..408a9171 100644 --- a/data/src/main/java/one/nem/lacerta/data/LacertaLibrary.java +++ b/data/src/main/java/one/nem/lacerta/data/LacertaLibrary.java @@ -3,18 +3,20 @@ package one.nem.lacerta.data; import one.nem.lacerta.model.ListItemType; import one.nem.lacerta.model.LibraryItemPage; +import one.nem.lacerta.model.document.DocumentDetail; public interface LacertaLibrary { // Get History - LibraryItemPage getRecentDocument(int limit); LibraryItemPage getRecentDocument(int limit, int offset); - LibraryItemPage getRecentDocument(int limit, int offset, ListItemType type); - - // Get List - - LibraryItemPage getDocumentList(int limit); + // Get Library page + LibraryItemPage getLibraryPage(int limit); + LibraryItemPage getLibraryPage(int limit, int offset); + LibraryItemPage getLibraryPage(String pageId, int limit); + LibraryItemPage getLibraryPage(String pageId, int limit, int offset); + // GetDocument + DocumentDetail getDocumentDetailById(String id); }