From c2e39dcf35e1c1a7ebc5566456e7a238f0b8f57b Mon Sep 17 00:00:00 2001 From: Michael Ritter Date: Thu, 26 Sep 2024 18:19:39 -0600 Subject: [PATCH] DRYD-1393: ServiceGroup filter on service tags (#423) --- .../services/client/IQueryManager.java | 1 + .../config/src/main/resources/service.xsd | 13 +- .../ServiceGroupDocumentModelHandler.java | 225 +++++++++++------- .../ServiceGroupDocumentModelHandlerTest.java | 86 +++++++ 4 files changed, 238 insertions(+), 87 deletions(-) create mode 100644 services/servicegroup/service/src/test/java/org/collectionspace/services/servicegroup/nuxeo/ServiceGroupDocumentModelHandlerTest.java diff --git a/services/client/src/main/java/org/collectionspace/services/client/IQueryManager.java b/services/client/src/main/java/org/collectionspace/services/client/IQueryManager.java index f712dcaf4..dd4194c7c 100644 --- a/services/client/src/main/java/org/collectionspace/services/client/IQueryManager.java +++ b/services/client/src/main/java/org/collectionspace/services/client/IQueryManager.java @@ -51,6 +51,7 @@ public interface IQueryManager { final static String SEARCH_QUALIFIER_OR = SEARCH_TERM_SEPARATOR + "OR" + SEARCH_TERM_SEPARATOR; final static String DEFAULT_SELECT_CLAUSE = "SELECT * FROM "; final static String CSID_QUERY_PARAM = "csid"; + final static String TAG_QUERY_PARAM = "servicetag"; // diff --git a/services/config/src/main/resources/service.xsd b/services/config/src/main/resources/service.xsd index 7093ea3f6..bc4c786d1 100644 --- a/services/config/src/main/resources/service.xsd +++ b/services/config/src/main/resources/service.xsd @@ -11,13 +11,13 @@ Revision : $LastChangedRevision$ Created on : $LastChangedDate$ Author : $LastChangedBy: $ - Description: ServiceBinding desribes how a possibly tenant-specific service is + Description: ServiceBinding describes how a possibly tenant-specific service is bound to corresponding service framework at runtime ServiceObjectType is used to describe the structure of a CollectionSpace object - an entity or relation. This is NOT used to encode or decode the stream in or out the content over the wire or to the storage. - Derived from Fedora Digtial Object Model and MIME Multipart + Derived from Fedora Digital Object Model and MIME Multipart --> + + + @@ -105,6 +108,12 @@ + + + + + +