From 7c46d4dcfb78955c25309b1d567fa8c419ed7abe Mon Sep 17 00:00:00 2001 From: "luca.frosini" Date: Wed, 27 Sep 2017 15:30:49 +0000 Subject: [PATCH] Added API to retrieve Resource instances filtering by values of one of the attached facet. Facet type and consistsOf relation can also by specified git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@154665 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../gcube/informationsystem/resourceregistry/rest/Access.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/gcube/informationsystem/resourceregistry/rest/Access.java b/src/main/java/org/gcube/informationsystem/resourceregistry/rest/Access.java index ef9561a..6738966 100644 --- a/src/main/java/org/gcube/informationsystem/resourceregistry/rest/Access.java +++ b/src/main/java/org/gcube/informationsystem/resourceregistry/rest/Access.java @@ -245,7 +245,9 @@ public class Access { Map constraint = new HashMap<>(); for(String key : multivaluedMap.keySet()){ - constraint.put(key, multivaluedMap.getFirst(key)); + if(key.compareTo(AccessPath.POLYMORPHIC_PARAM)!=0){ + constraint.put(key, multivaluedMap.getFirst(key)); + } } constraint.put(AccessPath.RELATION_TYPE_PATH_PART, relationType); constraint.put(AccessPath.FACET_TYPE_PATH_PART, facetType);