40 lines
1.9 KiB
Java
40 lines
1.9 KiB
Java
package org.gcube.informationsystem.resourceregistry.instances.model;
|
|
|
|
import java.util.Map;
|
|
import java.util.UUID;
|
|
|
|
import org.gcube.com.fasterxml.jackson.databind.JsonNode;
|
|
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.context.ContextException;
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaViolationException;
|
|
import org.gcube.informationsystem.resourceregistry.contexts.security.SecurityContext;
|
|
|
|
public interface ERManagement {
|
|
|
|
public boolean isDryRunContextSharing();
|
|
|
|
public void setDryRunContextSharing(boolean dryRunContextSharing);
|
|
|
|
public boolean isHonourPropagationConstraintsInContextSharing();
|
|
|
|
public void setHonourPropagationConstraintsInContextSharing(boolean honourPropagationConstraintsInContextSharing);
|
|
|
|
public Map<UUID, JsonNode> internalAddToContext(SecurityContext targetSecurityContext)
|
|
throws ContextException, ResourceRegistryException;
|
|
|
|
public Map<UUID, JsonNode> addToContext(UUID contextUUID)
|
|
throws SchemaViolationException, NotFoundException, ContextException, ResourceRegistryException;
|
|
|
|
public Map<UUID, JsonNode> internalRemoveFromContext(SecurityContext targetSecurityContext)
|
|
throws ContextException, ResourceRegistryException;
|
|
|
|
public Map<UUID, JsonNode> removeFromContext(UUID contextUUID)
|
|
throws SchemaViolationException, NotFoundException, ContextException, ResourceRegistryException;
|
|
|
|
public void sanityCheck(Map<UUID, JsonNode> expectedInstances) throws SchemaViolationException, ResourceRegistryException;
|
|
|
|
public AvailableInAnotherContextException getSpecificERAvailableInAnotherContextException(String message);
|
|
|
|
} |