public class WorkflowHarvester extends GenericHarvester
This plugin is a basic harvester for ingesting uploaded content into workflows. It creates the DigitalObject of a source object for the standard harvest/transform/index stack.
A trimmed down version of the file-system harvester but doesn't need recursion or caching.
Sample configuration file for workflow harvester: workflow-harvester.json
"stages": [
{
"name": "pending",
"label": "Pending",
"security": ["metadata", "admin"],
"visibility": ["metadata", "editor", "admin"]
},
{
"name": "metadata",
"label": "Basic Metadata Check",
"security": ["editor", "admin"],
"visibility": ["metadata", "editor", "admin"],
"template": "workflows/basic-init"
},
{
"name": "live",
"label": "Live",
"security": ["editor", "admin"],
"visibility": ["guest"],
"template": "workflows/basic-live"
}
]
Sample rule file for the workflow harvester: workflow-harvester.py
https://fascinator.usq.edu.au/trac/wiki/Fascinator/Documents/Plugins/ Harvester/Workflow
| Constructor and Description |
|---|
WorkflowHarvester()
Basic constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getObjectId(File uploadedFile)
Get an individual uploaded file as a digital object.
|
Set<String> |
getObjectIdList()
Gets a list of digital object IDs.
|
boolean |
hasMoreObjects()
Tests whether there are more objects to retrieve.
|
void |
init()
Basic init() function.
|
getDeletedObjectIdList, getId, getJsonConfig, getName, getPluginDetails, getStorage, hasMoreDeletedObjects, init, init, setStorage, shutdownpublic void init()
throws HarvesterException
init in class GenericHarvesterHarvesterException - : If there are problems during instantiationpublic Set<String> getObjectIdList() throws HarvesterException
HarvesterException - if there was an error retrieving the objectspublic Set<String> getObjectId(File uploadedFile) throws HarvesterException
getObjectId in interface HarvestergetObjectId in class GenericHarvesterHarvesterException - if there was an error retrieving the objectspublic boolean hasMoreObjects()
Copyright © 2009-2013. All Rights Reserved.