| Constructor and Description |
|---|
GenericHarvester(String id,
String name)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getDeletedObjectIdList()
Gets a list of deleted digital object IDs.
|
String |
getId()
Gets an identifier for Harvester plugin
|
JsonSimpleConfig |
getJsonConfig()
Get config file
|
String |
getName()
Get a name for Harvester plugin
|
Set<String> |
getObjectId(File uploadedFile)
Get an individual uploaded file as a digital object.
|
PluginDescription |
getPluginDetails()
Gets a PluginDescription object relating to this plugin.
|
Storage |
getStorage()
Get storage instance that the Harvester will use to manage objects.
|
boolean |
hasMoreDeletedObjects()
Tests whether there are more objects to retrieve.
|
abstract void |
init()
Abstract method for Harvester plugin
|
void |
init(File jsonFile)
Initialises the plugin using the specified JSON configuration
|
void |
init(String jsonString)
Initialises the plugin using the specified JSON String
|
void |
setStorage(Storage storage)
Sets the Storage instance that the Harvester will use to manage objects.
|
void |
shutdown()
Shuts down the plugin
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetObjectIdList, hasMoreObjectspublic Set<String> getObjectId(File uploadedFile) throws HarvesterException
getObjectId in interface HarvesterHarvesterException - if there was an error retrieving the objectspublic Set<String> getDeletedObjectIdList() throws HarvesterException
getDeletedObjectIdList in interface HarvesterHarvesterException - if there was an error retrieving the objectspublic boolean hasMoreDeletedObjects()
hasMoreDeletedObjects in interface Harvesterpublic Storage getStorage() throws HarvesterException
HarvesterException - if storage plugin is not setpublic void setStorage(Storage storage)
setStorage in interface Harvesterstorage - a storage instancepublic String getId()
public String getName()
public PluginDescription getPluginDetails()
getPluginDetails in interface Pluginpublic void init(File jsonFile) throws PluginException
init in interface PluginjsonFile - JSON configuration filePluginException - if there was an error during initialisationpublic void init(String jsonString) throws PluginException
init in interface PluginjsonFile - JSON configuration filePluginException - if there was an error during initialisationpublic abstract void init()
throws HarvesterException
HarvesterException - if there was an error during initialisationpublic void shutdown()
throws PluginException
shutdown in interface PluginPluginException - if there was an error during shutdownpublic JsonSimpleConfig getJsonConfig() throws HarvesterException
HarvesterException - if there was an error during retrievalCopyright © 2009-2013. All Rights Reserved.