This is an automated email from the ASF dual-hosted git repository.

ahuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/causeway.git


The following commit(s) were added to refs/heads/master by this push:
     new 3a126180b3 CAUSEWAY-3762: relocating and renaming search-service 
(interface)
3a126180b3 is described below

commit 3a126180b337ff7f724a5b843a861c51ee925717
Author: Andi Huber <[email protected]>
AuthorDate: Wed Jun 5 10:42:32 2024 +0200

    CAUSEWAY-3762: relocating and renaming search-service (interface)
    
    - also dropping 2nd method arg (not strictly required)
---
 .../applib/services/search/CollectionSearchService.java      | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git 
a/viewers/commons/applib/src/main/java/org/apache/causeway/viewer/commons/applib/services/search/TableSearchUiService.java
 
b/api/applib/src/main/java/org/apache/causeway/applib/services/search/CollectionSearchService.java
similarity index 82%
rename from 
viewers/commons/applib/src/main/java/org/apache/causeway/viewer/commons/applib/services/search/TableSearchUiService.java
rename to 
api/applib/src/main/java/org/apache/causeway/applib/services/search/CollectionSearchService.java
index 9d21c21aa6..5c48a7eb76 100644
--- 
a/viewers/commons/applib/src/main/java/org/apache/causeway/viewer/commons/applib/services/search/TableSearchUiService.java
+++ 
b/api/applib/src/main/java/org/apache/causeway/applib/services/search/CollectionSearchService.java
@@ -16,28 +16,26 @@
  *  specific language governing permissions and limitations
  *  under the License.
  */
-package org.apache.causeway.viewer.commons.applib.services.search;
+package org.apache.causeway.applib.services.search;
 
 import java.util.Optional;
 import java.util.function.Predicate;
 
 import org.springframework.lang.Nullable;
 
-import org.apache.causeway.core.metamodel.spec.ObjectSpecification;
-
 import lombok.NonNull;
 
 /**
  * EXPERIMENTAL/DRAFT
  * <p>
- * If a {@link TableSearchUiService} is registered with Spring's context,
+ * If a {@link CollectionSearchService} is registered with Spring's context,
  * viewer implementations (like Wicket Viewer) should show
  * a quick-search prompt, which is rendered on top of the UI table that
  * presents the collection in question.
  *
  * @since 2.1, 3.1 {@index}
  */
-public interface TableSearchUiService {
+public interface CollectionSearchService {
 
     /**
      * Optionally returns a {@link Predicate} that filters collections
@@ -48,13 +46,11 @@ public interface TableSearchUiService {
      * domain object's title say.
      *
      * @param domainType - entity or view-model type to be rendered as row in 
a table
-     * @param objSpec - meta-model accompanied with the domainType
      * @param searchString - nullable, e.g. the searchString could be parsed 
into tokens, and then matched against the
      *      domain object's title say
      */
-    <T> Optional<Predicate<T>> search(
+    <T> Optional<Predicate<T>> searchFilter(
             @NonNull Class<T> domainType,
-            @NonNull ObjectSpecification objSpec,
             @Nullable String searchString);
 
 }
\ No newline at end of file

Reply via email to