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 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 getResources(String contextId) throws InvalidContextException; }