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
|
* @return the name of the active VRE
|
||||||
*/
|
*/
|
||||||
|
@ -453,9 +452,16 @@ public class GenericResource implements GenericResourceInfoI {
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<ISGenericResource> getGenericResourcesByType(String type) throws RemoteException {
|
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>();
|
List<ISGenericResource> output = new ArrayList<ISGenericResource>();
|
||||||
SimpleQuery queryMan = null;
|
SimpleQuery queryMan = null;
|
||||||
try {
|
try {
|
||||||
|
client = clientFor(org.gcube.common.resources.gcore.GenericResource.class);
|
||||||
queryMan = queryFor(org.gcube.common.resources.gcore.GenericResource.class);
|
queryMan = queryFor(org.gcube.common.resources.gcore.GenericResource.class);
|
||||||
queryMan.addCondition("$resource/Profile/SecondaryType eq '"+type+"'");
|
queryMan.addCondition("$resource/Profile/SecondaryType eq '"+type+"'");
|
||||||
List <org.gcube.common.resources.gcore.GenericResource> results = client.submit(queryMan);
|
List <org.gcube.common.resources.gcore.GenericResource> results = client.submit(queryMan);
|
||||||
|
@ -468,6 +474,7 @@ public class GenericResource implements GenericResourceInfoI {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param id the id of the generic resource
|
* @param id the id of the generic resource
|
||||||
|
|
Loading…
Reference in New Issue