Package com.sodius.mdw.server.storage
Interface StorageManager
-
public interface StorageManager
The manager of storages. A storage provides a temporary area for data exchange between a client and the server. A client may upload data into a storage on the server. This data can then for example be retrieved to execute a ruleset.This interface is not intended to be implemented by clients.
- See Also:
MDWorkbenchServer.getStorageManager()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Storage
createStorage()
Creates a new empty storage instance.Storage
getStorage(String id)
Retrieve the storage information matching the specified identifier.
-
-
-
Method Detail
-
createStorage
Storage createStorage() throws CoreException
Creates a new empty storage instance. Content shall then be set on the created storage using thesetContents()
method.- Returns:
- a new storage instance.
- Throws:
CoreException
- if the storage cannot be created.- See Also:
Storage.setContents(java.io.InputStream, java.util.Map)
-
getStorage
Storage getStorage(String id)
Retrieve the storage information matching the specified identifier.- Parameters:
id
- the identifier of the storage.- Returns:
- the storage information matching the specified identifier,
null
if none. - See Also:
Storage.getId()
-
-