|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.fascinator.common.harvester.impl.GenericHarvester
public abstract class GenericHarvester
Generic Harvester implementation that provides common functionality for subclasses.
| Constructor Summary | |
|---|---|
GenericHarvester(java.lang.String id,
java.lang.String name)
Constructor |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.googlecode.fascinator.api.harvester.Harvester |
|---|
getObjectIdList, hasMoreObjects |
| Constructor Detail |
|---|
public GenericHarvester(java.lang.String id,
java.lang.String name)
id - Harvester Idname - Harvester Name| Method Detail |
|---|
public java.util.Set<java.lang.String> getObjectId(java.io.File uploadedFile)
throws HarvesterException
getObjectId in interface HarvesterHarvesterException - if there was an error retrieving the objects
public 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 Harvester
public 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()
getId in interface Pluginpublic java.lang.String getName()
getName in interface Pluginpublic PluginDescription getPluginDetails()
getPluginDetails in interface Plugin
public void init(java.io.File jsonFile)
throws PluginException
init in interface PluginjsonFile - JSON configuration file
PluginException - if there was an error during initialisation
public void init(java.lang.String jsonString)
throws PluginException
init in interface PluginjsonFile - JSON configuration file
PluginException - if there was an error during initialisation
public abstract void init()
throws HarvesterException
HarvesterException - if there was an error during initialisation
public void shutdown()
throws PluginException
shutdown in interface PluginPluginException - if there was an error during shutdown
public JsonSimpleConfig getJsonConfig()
throws HarvesterException
HarvesterException - if there was an error during retrieval
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||