org.dspace.curate
Class WorkflowCurator

java.lang.Object
  extended by org.dspace.curate.WorkflowCurator

public class WorkflowCurator
extends Object

WorkflowCurator manages interactions between curation and workflow. Specifically, it is invoked in WorkflowManager to allow the performance of curation tasks during workflow.

Author:
richardrodgers

Constructor Summary
WorkflowCurator()
           
 
Method Summary
static boolean curate(Curator curator, Context c, String wfId)
          Determines and executes curation of a Workflow item.
static boolean curate(Curator curator, Context c, WorkflowItem wfi)
           
static boolean doCuration(Context c, WorkflowItem wfi)
          Determines and executes curation on a Workflow item.
static boolean needsCuration(WorkflowItem wfi)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkflowCurator

public WorkflowCurator()
Method Detail

needsCuration

public static boolean needsCuration(WorkflowItem wfi)

doCuration

public static boolean doCuration(Context c,
                                 WorkflowItem wfi)
                          throws AuthorizeException,
                                 IOException,
                                 SQLException
Determines and executes curation on a Workflow item.

Parameters:
c - the context
wfi - the workflow item
Returns:
true if curation was completed or not required, false if tasks were queued for later completion, or item was rejected
Throws:
AuthorizeException
IOException
SQLException

curate

public static boolean curate(Curator curator,
                             Context c,
                             String wfId)
                      throws AuthorizeException,
                             IOException,
                             SQLException
Determines and executes curation of a Workflow item.

Parameters:
c - the user context
wfId - the workflow id
Throws:
AuthorizeException
IOException
SQLException

curate

public static boolean curate(Curator curator,
                             Context c,
                             WorkflowItem wfi)
                      throws AuthorizeException,
                             IOException,
                             SQLException
Throws:
AuthorizeException
IOException
SQLException


Copyright © 2012 DuraSpace. All Rights Reserved.