@Path(value="sharing") public class SharingManager extends Object
| Constructor and Description |
|---|
SharingManager() |
| Modifier and Type | Method and Description |
|---|---|
String |
addRemove(String contextId,
String type,
String instanceId,
org.gcube.informationsystem.resourceregistry.api.rest.SharingPath.SharingOperation operation,
Boolean dryRun,
Boolean forceAddToContext)
Add/Remove an instance from context.
|
String |
addRemoveNoPropagationConstraint(String contextId,
org.gcube.informationsystem.resourceregistry.api.rest.SharingPath.SharingOperation operation,
Boolean dryRun,
Boolean forceAddToContext,
String body)
Add/Remove to/from the context identified by CONTEXT_UUID path parameter the list of instances contained in the body of the request.
|
protected String |
serializeAffectedInstaces(org.gcube.com.fasterxml.jackson.databind.ObjectMapper objectMapper,
Map<UUID,org.gcube.com.fasterxml.jackson.databind.JsonNode> affectedInstances) |
protected String serializeAffectedInstaces(org.gcube.com.fasterxml.jackson.databind.ObjectMapper objectMapper, Map<UUID,org.gcube.com.fasterxml.jackson.databind.JsonNode> affectedInstances) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic String addRemoveNoPropagationConstraint(@PathParam(value="CONTEXT_UUID") String contextId, @QueryParam(value="operation") org.gcube.informationsystem.resourceregistry.api.rest.SharingPath.SharingOperation operation, @QueryParam(value="dryRun") @DefaultValue(value="false") Boolean dryRun, @QueryParam(value="forceAddToContext") @DefaultValue(value="false") Boolean forceAddToContext, String body) throws org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaViolationException, org.gcube.informationsystem.resourceregistry.api.exceptions.entities.resource.ResourceNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaViolationExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.entities.resource.ResourceNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException@POST
@Path(value="/contexts/{CONTEXT_UUID}/{TYPE_NAME}/{UUID}")
@Produces(value="application/json;charset=UTF-8")
public String addRemove(@PathParam(value="CONTEXT_UUID")
String contextId,
@PathParam(value="TYPE_NAME")
String type,
@PathParam(value="UUID")
String instanceId,
@QueryParam(value="operation")
org.gcube.informationsystem.resourceregistry.api.rest.SharingPath.SharingOperation operation,
@QueryParam(value="dryRun") @DefaultValue(value="false")
Boolean dryRun,
@QueryParam(value="forceAddToContext") @DefaultValue(value="false")
Boolean forceAddToContext)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaViolationException,
org.gcube.informationsystem.resourceregistry.api.exceptions.entities.resource.ResourceNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaViolationExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.entities.resource.ResourceNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionCopyright © 2022. All Rights Reserved.