public class WorkflowTools extends Object
| Constructor and Description |
|---|
WorkflowTools() |
| Modifier and Type | Method and Description |
|---|---|
InProgressSubmission |
getWorkflowItem(Context context,
Item item)
Obtain the WorkflowItem object which wraps the given Item.
|
WorkspaceItem |
getWorkspaceItem(Context context,
Item item)
Obtain the WorkspaceItem object which wraps the given Item.
|
boolean |
isItemInWorkflow(Context context,
Item item)
Is the given item in the DSpace workflow?
This method queries the database directly to determine if this is the
case rather than using the DSpace API (which is very slow).
|
boolean |
isItemInWorkspace(Context context,
Item item)
Is the given item in a DSpace workspace?
This method queries the database directly to determine if this is the
case rather than using the DSpace API (which is very slow).
|
void |
startWorkflow(Context context,
Item item)
Start the DSpace workflow on the given item
|
void |
stopWorkflow(Context context,
Item item)
Stop the DSpace workflow, and return the item to the user workspace
|
public boolean isItemInWorkflow(Context context, Item item) throws DSpaceSwordException
context - item - DSpaceSwordExceptionpublic boolean isItemInWorkspace(Context context, Item item) throws DSpaceSwordException
context - item - DSpaceSwordExceptionpublic InProgressSubmission getWorkflowItem(Context context, Item item) throws DSpaceSwordException
context - item - DSpaceSwordExceptionpublic WorkspaceItem getWorkspaceItem(Context context, Item item) throws DSpaceSwordException
context - item - DSpaceSwordExceptionpublic void startWorkflow(Context context, Item item) throws DSpaceSwordException
item - DSpaceSwordExceptionpublic void stopWorkflow(Context context, Item item) throws DSpaceSwordException
item - DSpaceSwordExceptionCopyright © 2013 DuraSpace. All Rights Reserved.