public class XmlWorkflowItemServiceImpl extends Object implements XmlWorkflowItemService
| Modifier and Type | Field and Description |
|---|---|
protected ClaimedTaskService |
claimedTaskService |
protected ItemService |
itemService |
protected PoolTaskService |
poolTaskService |
protected WorkflowItemRoleService |
workflowItemRoleService |
protected XmlWorkflowItemDAO |
xmlWorkflowItemDAO |
| Modifier | Constructor and Description |
|---|---|
protected |
XmlWorkflowItemServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
int |
countAll(Context context)
return how many workflow items appear in the database
|
int |
countAllInCollection(Context context,
Collection collection)
return how many workflow items that appear in the collection
|
XmlWorkflowItem |
create(Context context,
Item item,
Collection collection) |
void |
delete(Context context,
XmlWorkflowItem workflowItem) |
void |
deleteByCollection(Context context,
Collection collection) |
void |
deleteWrapper(Context context,
XmlWorkflowItem workflowItem)
Deletes submission wrapper, doesn't delete item contents
|
XmlWorkflowItem |
find(Context context,
int id)
Get a workflow item from the database.
|
List<XmlWorkflowItem> |
findAll(Context context)
return all workflowitems
|
List<XmlWorkflowItem> |
findAll(Context context,
Integer offset,
Integer pagesize)
return all workflowitems for a certain page
|
List<XmlWorkflowItem> |
findAllInCollection(Context context,
Integer offset,
Integer pagesize,
Collection collection)
return all workflowitems for a certain page with a certain collection
|
List<XmlWorkflowItem> |
findByCollection(Context context,
Collection collection)
Get all workflow items for a particular collection.
|
XmlWorkflowItem |
findByItem(Context context,
Item item)
Check to see if a particular item is currently under Workflow.
|
List<XmlWorkflowItem> |
findBySubmitter(Context context,
EPerson ep)
Get all workflow items that were original submissions by a particular
e-person.
|
void |
update(Context context,
XmlWorkflowItem workflowItem)
Update the submission, including the unarchived item.
|
@Autowired(required=true) protected XmlWorkflowItemDAO xmlWorkflowItemDAO
@Autowired(required=true) protected ClaimedTaskService claimedTaskService
@Autowired(required=true) protected ItemService itemService
@Autowired(required=true) protected PoolTaskService poolTaskService
@Autowired(required=true) protected WorkflowItemRoleService workflowItemRoleService
public XmlWorkflowItem create(Context context, Item item, Collection collection) throws SQLException, AuthorizeException
create in interface WorkflowItemService<XmlWorkflowItem>SQLExceptionAuthorizeExceptionpublic XmlWorkflowItem find(Context context, int id) throws SQLException
WorkflowItemServicefind in interface WorkflowItemService<XmlWorkflowItem>context - DSpace context objectid - ID of the workflow itemSQLExceptionpublic List<XmlWorkflowItem> findAll(Context context) throws SQLException
WorkflowItemServicefindAll in interface WorkflowItemService<XmlWorkflowItem>context - active contextSQLExceptionpublic List<XmlWorkflowItem> findAll(Context context, Integer offset, Integer pagesize) throws SQLException
XmlWorkflowItemServicefindAll in interface XmlWorkflowItemServicecontext - active contextSQLExceptionpublic List<XmlWorkflowItem> findAllInCollection(Context context, Integer offset, Integer pagesize, Collection collection) throws SQLException
XmlWorkflowItemServicefindAllInCollection in interface XmlWorkflowItemServicecollection - active contextSQLExceptionpublic int countAll(Context context) throws SQLException
XmlWorkflowItemServicecountAll in interface XmlWorkflowItemServicecontext - active contextSQLExceptionpublic int countAllInCollection(Context context, Collection collection) throws SQLException
XmlWorkflowItemServicecountAllInCollection in interface XmlWorkflowItemServicecontext - active contextSQLExceptionpublic List<XmlWorkflowItem> findBySubmitter(Context context, EPerson ep) throws SQLException
WorkflowItemServicefindBySubmitter in interface WorkflowItemService<XmlWorkflowItem>context - the context objectep - the epersonSQLExceptionpublic void deleteByCollection(Context context, Collection collection) throws SQLException, IOException, AuthorizeException
deleteByCollection in interface WorkflowItemService<XmlWorkflowItem>SQLExceptionIOExceptionAuthorizeExceptionpublic void delete(Context context, XmlWorkflowItem workflowItem) throws SQLException, AuthorizeException, IOException
delete in interface WorkflowItemService<XmlWorkflowItem>SQLExceptionAuthorizeExceptionIOExceptionpublic List<XmlWorkflowItem> findByCollection(Context context, Collection collection) throws SQLException
WorkflowItemServicefindByCollection in interface WorkflowItemService<XmlWorkflowItem>context - the context objectcollection - the collectionSQLExceptionpublic XmlWorkflowItem findByItem(Context context, Item item) throws SQLException
WorkflowItemServicefindByItem in interface WorkflowItemService<XmlWorkflowItem>context - the context objectitem - the itemSQLExceptionpublic void update(Context context, XmlWorkflowItem workflowItem) throws SQLException, AuthorizeException
InProgressSubmissionServiceupdate in interface InProgressSubmissionService<XmlWorkflowItem>context - contextworkflowItem - submissionSQLException - if database errorAuthorizeException - if authorization errorpublic void deleteWrapper(Context context, XmlWorkflowItem workflowItem) throws SQLException, AuthorizeException
InProgressSubmissionServicedeleteWrapper in interface InProgressSubmissionService<XmlWorkflowItem>context - contextworkflowItem - submissionSQLException - if database errorAuthorizeException - if authorization errorCopyright © 2017 DuraSpace. All rights reserved.