| Constructor and Description |
|---|
GenericHarvester(java.lang.String id,
java.lang.String name)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<java.lang.String> |
getDeletedObjectIdList()
Gets a list of deleted digital object IDs.
|
java.lang.String |
getId()
Gets an identifier for Harvester plugin
|
JsonSimpleConfig |
getJsonConfig()
Get config file
|
java.lang.String |
getName()
Get a name for Harvester plugin
|
java.util.Set<java.lang.String> |
getObjectId(java.io.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(java.io.File jsonFile)
Initialises the plugin using the specified JSON configuration
|
void |
init(java.lang.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 GenericHarvester(java.lang.String id,
java.lang.String name)
id - Harvester Idname - Harvester Namepublic java.util.Set<java.lang.String> getObjectId(java.io.File uploadedFile)
throws HarvesterException
getObjectId in interface HarvesterHarvesterException - if there was an error retrieving the objectspublic java.util.Set<java.lang.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 java.lang.String getId()
public java.lang.String getName()
public PluginDescription getPluginDetails()
getPluginDetails in interface Pluginpublic void init(java.io.File jsonFile)
throws PluginException
init in interface PluginjsonFile - JSON configuration filePluginException - if there was an error during initialisationpublic void init(java.lang.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-2018. All Rights Reserved.