git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/application-support-layer/applicationSupportLayerCore@97362 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
d9f9b205d1
commit
3124022120
|
@ -161,8 +161,8 @@ public class GenericResource implements GenericResourceInfoI {
|
|||
try {
|
||||
query = queryFor(org.gcube.common.resources.gcore.GenericResource.class);
|
||||
query.addCondition("$resource/Profile/SecondaryType eq 'DataSource'"); //this brings all collections, need to filter out the opensearch ones.
|
||||
if(onlyUserCollections)
|
||||
query.addCondition("$resource/Profile/Body/SourceProperties/user eq 'true'");
|
||||
// if(onlyUserCollections)
|
||||
// query.addCondition("$resource/Profile/Body/SourceProperties/user eq 'true'");
|
||||
List<org.gcube.common.resources.gcore.GenericResource> results = client.submit(query);
|
||||
if (results == null || results.size() == 0)
|
||||
logger.debug("Couldn't find any tree collections within that scope! Will return empty list.");
|
||||
|
@ -197,8 +197,8 @@ public class GenericResource implements GenericResourceInfoI {
|
|||
// query.addCondition("$resource/Profile/SecondaryType eq 'GCUBECollection'");
|
||||
query.addCondition("$resource/Profile/SecondaryType eq 'DataSource'"); //changed from GCUBECollection to DataSource (2 be same as the tree collections)
|
||||
// query.addCondition("$resource/Profile/Body/SourceProperties/type eq 'opensearch'");
|
||||
if(onlyUserCollections)
|
||||
query.addCondition("$resource/Profile/Body/CollectionInfo/user eq 'true'");
|
||||
// if(onlyUserCollections)
|
||||
// query.addCondition("$resource/Profile/Body/CollectionInfo/user eq 'true'");
|
||||
List<org.gcube.common.resources.gcore.GenericResource> results = client.submit(query);
|
||||
if (results == null || results.size() == 0)
|
||||
logger.debug("Couldn't find any OpenSearch collections within that scope! Will return empty list.");
|
||||
|
|
Loading…
Reference in New Issue