public class FileSystemStorage extends Object implements Storage
This plugin is implemeted based on Dflat/Pairtree which storaes the DigitalObjects in the local file system.
Standard configuration table:
| Option | Description | Required | Default |
|---|---|---|---|
| home | Location where the files are stored | Yes | ${fascinator.home}/storage |
{
"storage": {
"type": "file-system",
"file-system": {
"home": "${fascinator.home}/storage"
}
}
None
| Constructor and Description |
|---|
FileSystemStorage() |
| Modifier and Type | Method and Description |
|---|---|
DigitalObject |
createObject(String oid) |
File |
getHomeDir() |
String |
getId() |
String |
getName() |
DigitalObject |
getObject(String oid) |
Set<String> |
getObjectIdList() |
PluginDescription |
getPluginDetails()
Gets a PluginDescription object relating to this plugin.
|
void |
init(File jsonFile) |
void |
init(String jsonString) |
void |
removeObject(String oid) |
void |
shutdown() |
public PluginDescription getPluginDetails()
getPluginDetails in interface Pluginpublic File getHomeDir()
public void init(String jsonString) throws StorageException
init in interface PluginStorageExceptionpublic void init(File jsonFile) throws StorageException
init in interface PluginStorageExceptionpublic void shutdown()
throws StorageException
shutdown in interface PluginStorageExceptionpublic DigitalObject createObject(String oid) throws StorageException
createObject in interface StorageStorageExceptionpublic DigitalObject getObject(String oid) throws StorageException
getObject in interface StorageStorageExceptionpublic void removeObject(String oid) throws StorageException
removeObject in interface StorageStorageExceptionpublic Set<String> getObjectIdList()
getObjectIdList in interface StorageCopyright © 2009-2013. All Rights Reserved.