|
||||||||||
| 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(String id,
String name)
Constructor |
|
| Method Summary | |
|---|---|
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 |
| 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(String id,
String name)
id - Harvester Idname - Harvester Name| Method Detail |
|---|
public Set<String> getObjectId(File uploadedFile)
throws HarvesterException
getObjectId in interface HarvesterHarvesterException - if there was an error retrieving the objects
public Set<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 String getId()
getId in interface Pluginpublic String getName()
getName in interface Pluginpublic PluginDescription getPluginDetails()
getPluginDetails in interface Plugin
public void init(File jsonFile)
throws PluginException
init in interface PluginjsonFile - JSON configuration file
PluginException - if there was an error during initialisation
public void init(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 | |||||||||