A bit of cleaning

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/information-system/gCubeIS/Registry@34392 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Manuele Simi 2011-01-31 03:44:53 +00:00
parent 16ae42f462
commit a518eb0ac2
2 changed files with 12 additions and 13 deletions

View File

@ -41,7 +41,6 @@ import org.gcube.informationsystem.registry.stubs.RemoveResourceMessage;
import org.gcube.informationsystem.registry.stubs.RemoveResourceResponse;
import org.gcube.informationsystem.registry.stubs.ResourceNotAcceptedFault;
import org.gcube.informationsystem.registry.stubs.SchemaValidationFault;
import org.gcube.informationsystem.registry.stubs.UpdateFault;
import org.gcube.informationsystem.registry.stubs.UpdateResourceMessage;
import org.gcube.informationsystem.registry.stubs.UpdateResourceResponse;
@ -340,7 +339,7 @@ public class RegistryFactory extends GCUBEPortType {
logger.debug("Resource " + ID+ " successfully removed");
} catch (Exception e) {
logger.error("Unable to remove the resource " + ID, e);
throw new UpdateFault();
throw new GCUBEFault();
}
// if the resource is a GHN, remove also the related RIs
try {

View File

@ -19,17 +19,17 @@ import org.gcube.informationsystem.registry.impl.filters.FilterManager;
import org.gcube.informationsystem.registry.impl.filters.FilterExecutor.InvalidFilterException;
import org.gcube.informationsystem.registry.impl.profilemanagement.GHN;
import org.gcube.informationsystem.registry.impl.state.Definitions.ResourceType;
import org.gcube.informationsystem.registry.stubs.CreateFault;
import org.gcube.informationsystem.registry.stubs.CreateMessage;
import org.gcube.informationsystem.registry.stubs.CreateResponse;
import org.gcube.informationsystem.registry.stubs.InvalidResourceFault;
import org.gcube.informationsystem.registry.stubs.RemoveFault;
import org.gcube.informationsystem.registry.stubs.RemoveMessage;
import org.gcube.informationsystem.registry.stubs.RemoveResponse;
import org.gcube.informationsystem.registry.stubs.ResourceNotAcceptedFault;
import org.gcube.informationsystem.registry.stubs.UpdateFault;
import org.gcube.informationsystem.registry.stubs.UpdateMessage;
import org.gcube.informationsystem.registry.stubs.UpdateResponse;
import org.gcube.informationsystem.registry.stubs.resourceregistration.CreateFault;
import org.gcube.informationsystem.registry.stubs.resourceregistration.CreateMessage;
import org.gcube.informationsystem.registry.stubs.resourceregistration.CreateResponse;
import org.gcube.informationsystem.registry.stubs.resourceregistration.InvalidResourceFault;
import org.gcube.informationsystem.registry.stubs.resourceregistration.RemoveFault;
import org.gcube.informationsystem.registry.stubs.resourceregistration.RemoveMessage;
import org.gcube.informationsystem.registry.stubs.resourceregistration.RemoveResponse;
import org.gcube.informationsystem.registry.stubs.resourceregistration.ResourceNotAcceptedFault;
import org.gcube.informationsystem.registry.stubs.resourceregistration.UpdateFault;
import org.gcube.informationsystem.registry.stubs.resourceregistration.UpdateMessage;
import org.gcube.informationsystem.registry.stubs.resourceregistration.UpdateResponse;
/**
*