git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/information-system/gCubeIS/Registry@1495 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
0f59e47e2b
commit
570c646e18
|
@ -12,6 +12,7 @@ import org.gcube.common.core.informationsystem.client.ISClient;
|
|||
import org.gcube.common.core.informationsystem.client.QueryParameter;
|
||||
import org.gcube.common.core.informationsystem.client.XMLResult;
|
||||
import org.gcube.common.core.informationsystem.client.ISClient.ISMalformedQueryException;
|
||||
import org.gcube.common.core.informationsystem.client.XMLResult.ISResultEvaluationException;
|
||||
import org.gcube.common.core.informationsystem.client.queries.GCUBEGenericQuery;
|
||||
import org.gcube.common.core.resources.GCUBERunningInstance;
|
||||
import org.gcube.informationsystem.registry.impl.RegistryFactory;
|
||||
|
@ -71,7 +72,7 @@ public class RegistryUtil {
|
|||
* @throws GCUBEFault
|
||||
* @throws RemoteException
|
||||
*/
|
||||
public static void unregisterRIRelatedToGHN(String id ,RegistryFactory service) throws ISMalformedQueryException, ISException, GCUBEFault, RemoteException{
|
||||
public static void unregisterRIRelatedToGHN(String id ,RegistryFactory service) throws Exception{
|
||||
RemoveResourceMessage message = null;
|
||||
GCUBEGenericQuery query = client.getQuery("RIOnGHN");
|
||||
query.addParameters(new QueryParameter("ID", GHNContext.getContext().getGHNID()));
|
||||
|
@ -86,10 +87,7 @@ public class RegistryUtil {
|
|||
message.setType(GCUBERunningInstance.TYPE);
|
||||
message.setUniqueID(resource.evaluate("/ID/text()").get(0));
|
||||
service.removeResource(message);
|
||||
} catch (XPathExpressionException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
} catch (RemoteException rme) {}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue