|
|||||||||
| 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
com.googlecode.fascinator.harvester.workflow.WorkflowHarvester
public class WorkflowHarvester
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 Summary | |
|---|---|
WorkflowHarvester()
Basic constructor. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.googlecode.fascinator.common.harvester.impl.GenericHarvester |
|---|
getDeletedObjectIdList, getId, getJsonConfig, getName, getPluginDetails, getStorage, hasMoreDeletedObjects, init, init, setStorage, shutdown |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WorkflowHarvester()
| Method Detail |
|---|
public void init()
throws HarvesterException
init in class GenericHarvesterHarvesterException - : If there are problems during instantiation
public Set<String> getObjectIdList()
throws HarvesterException
HarvesterException - if there was an error retrieving the objects
public Set<String> getObjectId(File uploadedFile)
throws HarvesterException
getObjectId in interface HarvestergetObjectId in class GenericHarvesterHarvesterException - if there was an error retrieving the objectspublic boolean hasMoreObjects()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||