public class FileSystemStorage extends Object implements com.googlecode.fascinator.api.storage.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 |
|---|---|
com.googlecode.fascinator.api.storage.DigitalObject |
createObject(String oid) |
File |
getHomeDir() |
String |
getId() |
String |
getName() |
com.googlecode.fascinator.api.storage.DigitalObject |
getObject(String oid) |
Set<String> |
getObjectIdList() |
com.googlecode.fascinator.api.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 String getId()
getId in interface com.googlecode.fascinator.api.Pluginpublic String getName()
getName in interface com.googlecode.fascinator.api.Pluginpublic com.googlecode.fascinator.api.PluginDescription getPluginDetails()
getPluginDetails in interface com.googlecode.fascinator.api.Pluginpublic File getHomeDir()
public void init(String jsonString) throws com.googlecode.fascinator.api.storage.StorageException
init in interface com.googlecode.fascinator.api.Plugincom.googlecode.fascinator.api.storage.StorageExceptionpublic void init(File jsonFile) throws com.googlecode.fascinator.api.storage.StorageException
init in interface com.googlecode.fascinator.api.Plugincom.googlecode.fascinator.api.storage.StorageExceptionpublic void shutdown()
throws com.googlecode.fascinator.api.storage.StorageException
shutdown in interface com.googlecode.fascinator.api.Plugincom.googlecode.fascinator.api.storage.StorageExceptionpublic com.googlecode.fascinator.api.storage.DigitalObject createObject(String oid) throws com.googlecode.fascinator.api.storage.StorageException
createObject in interface com.googlecode.fascinator.api.storage.Storagecom.googlecode.fascinator.api.storage.StorageExceptionpublic com.googlecode.fascinator.api.storage.DigitalObject getObject(String oid) throws com.googlecode.fascinator.api.storage.StorageException
getObject in interface com.googlecode.fascinator.api.storage.Storagecom.googlecode.fascinator.api.storage.StorageExceptionpublic void removeObject(String oid) throws com.googlecode.fascinator.api.storage.StorageException
removeObject in interface com.googlecode.fascinator.api.storage.Storagecom.googlecode.fascinator.api.storage.StorageExceptionCopyright © 2009-2016. All Rights Reserved.