26 lines
903 B
Java
26 lines
903 B
Java
package org.gcube.vremanagement.contextmanager.handlers;
|
|
|
|
import java.util.List;
|
|
|
|
import org.gcube.vremanagement.contextmanager.exceptions.ContextAlreadyExistsException;
|
|
import org.gcube.vremanagement.contextmanager.model.exceptions.InvalidContextException;
|
|
import org.gcube.vremanagement.contextmanager.model.types.Context;
|
|
|
|
|
|
public interface ContextContainer {
|
|
|
|
List<String> getAvailableContexts();
|
|
|
|
Context getContextById(String id) throws InvalidContextException;
|
|
|
|
void addContext(Context toAdd) throws InvalidContextException, ContextAlreadyExistsException;
|
|
|
|
void removeContext(String contextId) throws InvalidContextException;
|
|
|
|
void addResource(String contextId, String resourceId) throws InvalidContextException;
|
|
|
|
void removeResource(String contextId, String resourceId) throws InvalidContextException;
|
|
|
|
List<String> getResources(String contextId) throws InvalidContextException;
|
|
}
|