com.googlecode.fascinator.storage.filesystem
Class FileSystemStorage
java.lang.Object
com.googlecode.fascinator.storage.filesystem.FileSystemStorage
- All Implemented Interfaces:
- Plugin, Storage
public class FileSystemStorage
- extends Object
- implements Storage
This plugin is implemeted based on Dflat/Pairtree which storaes the
DigitalObjects in the local file system.
Configuration
Standard configuration table:
| Option |
Description |
Required |
Default |
| home |
Location where the files are stored |
Yes |
${fascinator.home}/storage |
Examples
-
Using Filesystem Storage plugin in The Fascinator
{
"storage": {
"type": "file-system",
"file-system": {
"home": "${fascinator.home}/storage"
}
}
Wiki Link
None
- Author:
- Oliver Lucido
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileSystemStorage
public FileSystemStorage()
getId
public String getId()
- Specified by:
getId in interface Plugin
getName
public String getName()
- Specified by:
getName in interface Plugin
getPluginDetails
public PluginDescription getPluginDetails()
- Gets a PluginDescription object relating to this plugin.
- Specified by:
getPluginDetails in interface Plugin
- Returns:
- a PluginDescription
getHomeDir
public File getHomeDir()
init
public void init(String jsonString)
throws StorageException
- Specified by:
init in interface Plugin
- Throws:
StorageException
init
public void init(File jsonFile)
throws StorageException
- Specified by:
init in interface Plugin
- Throws:
StorageException
shutdown
public void shutdown()
throws StorageException
- Specified by:
shutdown in interface Plugin
- Throws:
StorageException
createObject
public DigitalObject createObject(String oid)
throws StorageException
- Specified by:
createObject in interface Storage
- Throws:
StorageException
getObject
public DigitalObject getObject(String oid)
throws StorageException
- Specified by:
getObject in interface Storage
- Throws:
StorageException
removeObject
public void removeObject(String oid)
throws StorageException
- Specified by:
removeObject in interface Storage
- Throws:
StorageException
getObjectIdList
public Set<String> getObjectIdList()
- Specified by:
getObjectIdList in interface Storage
Copyright © 2009-2012. All Rights Reserved.