git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/application-support-layer/applicationSupportLayerCore@13031 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
8559b5ecd5
commit
f5065450c5
|
@ -98,6 +98,19 @@ public class GenericResourceCacheEntryFactory implements CacheEntryFactory {
|
||||||
newResult.add(resource);
|
newResult.add(resource);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (newResult.size() > 1) {
|
||||||
|
GCUBEGenericResource voResource = null;
|
||||||
|
for (GCUBEGenericResource resource:newResult) {
|
||||||
|
if (resource.getScopes().size() == 1) {
|
||||||
|
voResource = resource;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
newResult.clear();
|
||||||
|
newResult.add(voResource);
|
||||||
|
}
|
||||||
System.out.println("Number of genericResources for ScenarioSchemaInfo left after the pruning" + newResult.size());
|
System.out.println("Number of genericResources for ScenarioSchemaInfo left after the pruning" + newResult.size());
|
||||||
result = newResult;
|
result = newResult;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue