public interface BasicWorkflowService extends WorkflowService<BasicWorkflowItem>
| Modifier and Type | Field and Description |
|---|---|
static int |
WFSTATE_ARCHIVE |
static int |
WFSTATE_STEP1 |
static int |
WFSTATE_STEP1POOL |
static int |
WFSTATE_STEP2 |
static int |
WFSTATE_STEP2POOL |
static int |
WFSTATE_STEP3 |
static int |
WFSTATE_STEP3POOL |
static int |
WFSTATE_SUBMIT |
| Modifier and Type | Method and Description |
|---|---|
void |
advance(Context context,
BasicWorkflowItem workflowItem,
EPerson e)
advance() sends an item forward in the workflow (reviewers,
approvers, and editors all do an 'approve' to move the item forward) if
the item arrives at the submit state, then remove the WorkflowItem and
call the archive() method to put it in the archive, and email notify the
submitter of a successful submission
|
boolean |
advance(Context context,
BasicWorkflowItem workflowItem,
EPerson e,
boolean curate,
boolean record)
advance() sends an item forward in the workflow (reviewers,
approvers, and editors all do an 'approve' to move the item forward) if
the item arrives at the submit state, then remove the WorkflowItem and
call the archive() method to put it in the archive, and email notify the
submitter of a successful submission
|
void |
claim(Context context,
BasicWorkflowItem workflowItem,
EPerson e)
claim() claims a workflow task for an EPerson
|
String |
getItemTitle(BasicWorkflowItem wi)
get the title of the item in this workflow
|
List<BasicWorkflowItem> |
getOwnedTasks(Context context,
EPerson e)
getOwnedTasks() returns a List of WorkflowItems containing the tasks
claimed and owned by an EPerson.
|
List<BasicWorkflowItem> |
getPooledTasks(Context context,
EPerson e)
getPooledTasks() returns a List of WorkflowItems an EPerson could claim
(as a reviewer, etc.) for display on a user's MyDSpace page.
|
String |
getSubmitterName(BasicWorkflowItem wi)
get the name of the eperson who started this workflow
|
int |
getWorkflowID(String state)
Translate symbolic name of workflow state into number.
|
String |
getWorkflowText(int state)
Get the text representing the given workflow state
|
void |
notifyOfCuration(Context c,
BasicWorkflowItem wi,
List<EPerson> ePeople,
String taskName,
String action,
String message) |
void |
unclaim(Context context,
BasicWorkflowItem workflowItem,
EPerson e)
unclaim() returns an owned task/item to the pool
|
abort, addInitialWorkspaceItemPolicies, archive, deleteCollection, getEPersonDeleteConstraints, getFlywayMigrationLocations, getMyDSpaceLink, getWorkflowRoleGroup, sendWorkflowItemBackSubmission, start, startWithoutNotifystatic final int WFSTATE_SUBMIT
static final int WFSTATE_STEP1POOL
static final int WFSTATE_STEP1
static final int WFSTATE_STEP2POOL
static final int WFSTATE_STEP2
static final int WFSTATE_STEP3POOL
static final int WFSTATE_STEP3
static final int WFSTATE_ARCHIVE
int getWorkflowID(String state)
state - symbolic name of workflow state, must be one of
the elements of workflowText array.List<BasicWorkflowItem> getOwnedTasks(Context context, EPerson e) throws SQLException
e - The EPerson we want to fetch owned tasks for.SQLExceptionList<BasicWorkflowItem> getPooledTasks(Context context, EPerson e) throws SQLException
e - The Eperson we want to fetch the pooled tasks for.SQLExceptionvoid claim(Context context, BasicWorkflowItem workflowItem, EPerson e) throws SQLException, IOException, AuthorizeException
workflowItem - WorkflowItem to do the claim one - The EPerson doing the claimSQLExceptionIOExceptionAuthorizeExceptionvoid advance(Context context, BasicWorkflowItem workflowItem, EPerson e) throws SQLException, IOException, AuthorizeException
context - ContextworkflowItem - WorkflowItem do do the approval one - EPerson doing the approvalSQLExceptionIOExceptionAuthorizeExceptionboolean advance(Context context, BasicWorkflowItem workflowItem, EPerson e, boolean curate, boolean record) throws SQLException, IOException, AuthorizeException
context - ContextworkflowItem - WorkflowItem do do the approval one - EPerson doing the approvalcurate - boolean indicating whether curation tasks should be donerecord - boolean indicating whether to record actionSQLExceptionIOExceptionAuthorizeExceptionvoid unclaim(Context context, BasicWorkflowItem workflowItem, EPerson e) throws SQLException, IOException, AuthorizeException
context - ContextworkflowItem - WorkflowItem to operate one - EPerson doing the operationSQLExceptionIOExceptionAuthorizeExceptionString getWorkflowText(int state)
state - the workflow statevoid notifyOfCuration(Context c, BasicWorkflowItem wi, List<EPerson> ePeople, String taskName, String action, String message) throws SQLException, IOException
SQLExceptionIOExceptionString getItemTitle(BasicWorkflowItem wi) throws SQLException
wi - the workflow item objectSQLExceptionString getSubmitterName(BasicWorkflowItem wi) throws SQLException
wi - the workflow itemSQLExceptionCopyright © 2016 DuraSpace. All Rights Reserved.