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
This commit is contained in:
Luca Frosini 2017-09-27 15:30:49 +00:00
parent 7abb718a10
commit 7c46d4dcfb
1 changed files with 3 additions and 1 deletions

View File

@ -245,7 +245,9 @@ public class Access {
Map<String, String> 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);