public class WorkflowHarvester
extends com.googlecode.fascinator.common.harvester.impl.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.
|
public void init()
throws com.googlecode.fascinator.api.harvester.HarvesterException
init in class com.googlecode.fascinator.common.harvester.impl.GenericHarvestercom.googlecode.fascinator.api.harvester.HarvesterException - : If there are problems during instantiationpublic Set<String> getObjectIdList() throws com.googlecode.fascinator.api.harvester.HarvesterException
com.googlecode.fascinator.api.harvester.HarvesterException - if there was an error retrieving the objectspublic Set<String> getObjectId(File uploadedFile) throws com.googlecode.fascinator.api.harvester.HarvesterException
getObjectId in interface com.googlecode.fascinator.api.harvester.HarvestergetObjectId in class com.googlecode.fascinator.common.harvester.impl.GenericHarvestercom.googlecode.fascinator.api.harvester.HarvesterException - if there was an error retrieving the objectspublic boolean hasMoreObjects()
Copyright © 2009-2016. All Rights Reserved.