git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/application-support-layer/applicationSupportLayerCore@91989 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
f8d7cb9a66
commit
fb5cb30cd0
|
@ -125,7 +125,6 @@ public class GenericResource implements GenericResourceInfoI {
|
|||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @return the name of the active VRE
|
||||
*/
|
||||
|
@ -453,9 +452,16 @@ public class GenericResource implements GenericResourceInfoI {
|
|||
}
|
||||
|
||||
public List<ISGenericResource> getGenericResourcesByType(String type) throws RemoteException {
|
||||
return getGenericResourcesByType(session.getScope(), type);
|
||||
}
|
||||
|
||||
|
||||
public static List<ISGenericResource> getGenericResourcesByType(String scope, String type) throws RemoteException {
|
||||
ScopeProvider.instance.set(scope);
|
||||
List<ISGenericResource> output = new ArrayList<ISGenericResource>();
|
||||
SimpleQuery queryMan = null;
|
||||
try {
|
||||
client = clientFor(org.gcube.common.resources.gcore.GenericResource.class);
|
||||
queryMan = queryFor(org.gcube.common.resources.gcore.GenericResource.class);
|
||||
queryMan.addCondition("$resource/Profile/SecondaryType eq '"+type+"'");
|
||||
List <org.gcube.common.resources.gcore.GenericResource> results = client.submit(queryMan);
|
||||
|
@ -469,6 +475,7 @@ public class GenericResource implements GenericResourceInfoI {
|
|||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @param id the id of the generic resource
|
||||
* @return a list containing the corresponding generic resources
|
||||
|
|
Loading…
Reference in New Issue