Package org.dspace.workflow
Interface WorkflowItemService<T extends WorkflowItem>
- Type Parameters:
T- Specific type of workflow.
- All Superinterfaces:
InProgressSubmissionService<T>
- All Known Subinterfaces:
XmlWorkflowItemService
- All Known Implementing Classes:
XmlWorkflowItemServiceImpl
Service interface class for the Workflow items.
All WorkflowItem service classes should implement this class since it offers
some basic methods which all WorkflowItems are required to have.
- Author:
- kevinvandevelde at atmire.com
-
Method Summary
Modifier and TypeMethodDescriptioncreate(Context context, Item item, Collection collection) Wrap an Item in a WorkflowItem to place it in a Collection's workflow.voidDelete the specified workflow item.voiddeleteByCollection(Context context, Collection collection) Delete all workflow items present in the specified collection.Get a workflow item from the database.return all workflowitemsfindByCollection(Context context, Collection collection) Get all workflow items for a particular collection.findByItem(Context context, Item item) Check to see if a particular item is currently under Workflow.findBySubmitter(Context context, EPerson ep) Get all workflow items that were original submissions by a particular e-person.Methods inherited from interface org.dspace.content.service.InProgressSubmissionService
deleteWrapper, move, update
-
Method Details
-
create
Wrap an Item in a WorkflowItem to place it in a Collection's workflow.- Parameters:
context- current DSpace session.item- the Item to be wrapped.collection- place the Item in this Collection's workflow (if any).- Returns:
- the wrapped Item.
- Throws:
SQLException- passed through.AuthorizeException- passed through.
-
find
Get a workflow item from the database.- Parameters:
context- The relevant DSpace Context.id- ID of the workflow item- Returns:
- the workflow item, or null if the ID is invalid.
- Throws:
SQLException- An exception that provides information on a database access error or other errors.
-
findAll
return all workflowitems- Parameters:
context- The relevant DSpace Context.- Returns:
- List of all workflowItems in system
- Throws:
SQLException- An exception that provides information on a database access error or other errors.
-
findByCollection
Get all workflow items for a particular collection.- Parameters:
context- The relevant DSpace Context.collection- the collection- Returns:
- array of the corresponding workflow items
- Throws:
SQLException- An exception that provides information on a database access error or other errors.
-
findByItem
Check to see if a particular item is currently under Workflow. If so, its WorkflowItem is returned. If not, null is returned- Parameters:
context- The relevant DSpace Context.item- the item- Returns:
- workflow item corresponding to the item, or null
- Throws:
SQLException- An exception that provides information on a database access error or other errors.
-
findBySubmitter
Get all workflow items that were original submissions by a particular e-person.- Parameters:
context- The relevant DSpace Context.ep- the eperson- Returns:
- the corresponding workflow items
- Throws:
SQLException- An exception that provides information on a database access error or other errors.
-
deleteByCollection
void deleteByCollection(Context context, Collection collection) throws SQLException, IOException, AuthorizeException Delete all workflow items present in the specified collection.- Parameters:
context- The relevant DSpace Context.collection- the containing collection- Throws:
IOException- A general class of exceptions produced by failed or interrupted I/O operations.SQLException- An exception that provides information on a database access error or other errors.AuthorizeException- Exception indicating the current user of the context does not have permission to perform a particular action.
-
delete
Delete the specified workflow item.- Parameters:
context- The relevant DSpace Context.workflowItem- which workflow item to delete- Throws:
IOException- A general class of exceptions produced by failed or interrupted I/O operations.SQLException- An exception that provides information on a database access error or other errors.AuthorizeException- Exception indicating the current user of the context does not have permission to perform a particular action.
-