diff --git a/CHANGELOG.md b/CHANGELOG.md index 7223704..1e2aa9f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [v2.4.0-SNAPSHOT] + +- Search Filter for profileId and projectID [#27120] + ## [v2.3.0] - Read countByPhase from configuration [#25598] diff --git a/pom.xml b/pom.xml index 0807671..2e115d3 100644 --- a/pom.xml +++ b/pom.xml @@ -10,7 +10,7 @@ org.gcube.application geoportal-data-common - 2.3.0 + 2.4.0-SNAPSHOT GeoPortal Data Common is common library used by GUI components developed for GeoNA diff --git a/src/main/java/org/gcube/application/geoportalcommon/shared/SearchingFilter.java b/src/main/java/org/gcube/application/geoportalcommon/shared/SearchingFilter.java index c01df09..a3deb3f 100644 --- a/src/main/java/org/gcube/application/geoportalcommon/shared/SearchingFilter.java +++ b/src/main/java/org/gcube/application/geoportalcommon/shared/SearchingFilter.java @@ -90,6 +90,10 @@ public class SearchingFilter implements Serializable { private LinkedHashMap projection; + private String profileID; + + private String projectID; + /** * Instantiates a new sort filter. */ @@ -180,6 +184,19 @@ public class SearchingFilter implements Serializable { this.orderByFields = orderByFields; } + public void setGetForIDs(String profileID, String projectID) { + this.profileID = profileID; + this.projectID = projectID; + } + + public String getProfileID() { + return profileID; + } + + public String getProjectID() { + return projectID; + } + /** * Sets the order. * @@ -200,8 +217,11 @@ public class SearchingFilter implements Serializable { builder.append(conditions); builder.append(", projection="); builder.append(projection); + builder.append(", profileID="); + builder.append(profileID); + builder.append(", projectID="); + builder.append(projectID); builder.append("]"); return builder.toString(); } - }