Refs #11288: Made resource-registry more RESTful
Task-Url: https://support.d4science.org/issues/11288 git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry-publisher@167867 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
db816e154f
commit
9cb0a7c288
|
@ -116,7 +116,7 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher
|
|||
stringWriter.append(PATH_SEPARATOR);
|
||||
stringWriter.append(ERPath.ER_PATH_PART);
|
||||
stringWriter.append(PATH_SEPARATOR);
|
||||
stringWriter.append(ERPath.FACET_PATH_PART);
|
||||
stringWriter.append(ERPath.FACETS_PATH_PART);
|
||||
stringWriter.append(PATH_SEPARATOR);
|
||||
stringWriter.append(facetType);
|
||||
|
||||
|
@ -190,7 +190,7 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher
|
|||
stringWriter.append(PATH_SEPARATOR);
|
||||
stringWriter.append(ERPath.ER_PATH_PART);
|
||||
stringWriter.append(PATH_SEPARATOR);
|
||||
stringWriter.append(ERPath.FACET_PATH_PART);
|
||||
stringWriter.append(ERPath.FACETS_PATH_PART);
|
||||
stringWriter.append(PATH_SEPARATOR);
|
||||
stringWriter.append(uuid.toString());
|
||||
|
||||
|
@ -223,7 +223,7 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher
|
|||
stringWriter.append(PATH_SEPARATOR);
|
||||
stringWriter.append(ERPath.ER_PATH_PART);
|
||||
stringWriter.append(PATH_SEPARATOR);
|
||||
stringWriter.append(ERPath.FACET_PATH_PART);
|
||||
stringWriter.append(ERPath.FACETS_PATH_PART);
|
||||
stringWriter.append(PATH_SEPARATOR);
|
||||
stringWriter.append(uuid.toString());
|
||||
|
||||
|
@ -732,7 +732,7 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher
|
|||
stringWriter.append(PATH_SEPARATOR);
|
||||
stringWriter.append(ERPath.ADD_PATH_PART);
|
||||
stringWriter.append(PATH_SEPARATOR);
|
||||
stringWriter.append(ERPath.FACET_PATH_PART);
|
||||
stringWriter.append(ERPath.FACETS_PATH_PART);
|
||||
stringWriter.append(PATH_SEPARATOR);
|
||||
stringWriter.append(uuid.toString());
|
||||
|
||||
|
@ -815,7 +815,7 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher
|
|||
stringWriter.append(PATH_SEPARATOR);
|
||||
stringWriter.append(ERPath.REMOVE_PATH_PART);
|
||||
stringWriter.append(PATH_SEPARATOR);
|
||||
stringWriter.append(ERPath.FACET_PATH_PART);
|
||||
stringWriter.append(ERPath.FACETS_PATH_PART);
|
||||
stringWriter.append(PATH_SEPARATOR);
|
||||
stringWriter.append(uuid.toString());
|
||||
|
||||
|
|
|
@ -43,10 +43,10 @@ import org.gcube.informationsystem.model.relation.IsIdentifiedBy;
|
|||
import org.gcube.informationsystem.model.relation.consistsof.HasPersistentMemory;
|
||||
import org.gcube.informationsystem.model.relation.consistsof.HasVolatileMemory;
|
||||
import org.gcube.informationsystem.model.relation.isrelatedto.Hosts;
|
||||
import org.gcube.informationsystem.resourceregistry.api.exceptions.AvailableInAnotherContextException;
|
||||
import org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException;
|
||||
import org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException;
|
||||
import org.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceAvailableInAnotherContextException;
|
||||
import org.gcube.informationsystem.resourceregistry.api.exceptions.er.ERAvailableInAnotherContextException;
|
||||
import org.gcube.informationsystem.resourceregistry.api.exceptions.er.ERNotFoundException;
|
||||
import org.gcube.informationsystem.resourceregistry.client.ResourceRegistryClient;
|
||||
import org.gcube.informationsystem.resourceregistry.client.ResourceRegistryClientFactory;
|
||||
import org.junit.Assert;
|
||||
|
@ -210,9 +210,9 @@ public class MultiContextTest extends ScopedTest {
|
|||
|
||||
try {
|
||||
resourceRegistryClient.exists(EService.class, eServiceUUID);
|
||||
} catch (ERNotFoundException e) {
|
||||
} catch (NotFoundException e) {
|
||||
throw e;
|
||||
} catch (ERAvailableInAnotherContextException e) {
|
||||
} catch (AvailableInAnotherContextException e) {
|
||||
// Good
|
||||
} catch (ResourceRegistryException e) {
|
||||
throw e;
|
||||
|
@ -221,9 +221,9 @@ public class MultiContextTest extends ScopedTest {
|
|||
|
||||
try {
|
||||
resourceRegistryClient.exists(HostingNode.class, hostingNodeUUID);
|
||||
} catch (ERNotFoundException e) {
|
||||
} catch (NotFoundException e) {
|
||||
throw e;
|
||||
} catch (ERAvailableInAnotherContextException e) {
|
||||
} catch (AvailableInAnotherContextException e) {
|
||||
// Good
|
||||
} catch (ResourceRegistryException e) {
|
||||
throw e;
|
||||
|
|
Loading…
Reference in New Issue