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 WorkflowRequirementsService |
workflowRequirementsService |
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
|
int |
countBySubmitter(Context context,
EPerson ep)
Count the number of workflow items from a specific submitter
|
XmlWorkflowItem |
create(Context context,
Item item,
Collection collection) |
void |
delete(Context context,
XmlWorkflowItem workflowItem)
Delete the specified workflow item.
|
void |
deleteByCollection(Context context,
Collection collection)
Delete all workflow items present in the specified 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 page,
Integer pagesize)
return all workflowitems for a certain page
|
List<XmlWorkflowItem> |
findAllInCollection(Context context,
Integer page,
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.
|
List<XmlWorkflowItem> |
findBySubmitter(Context context,
EPerson ep,
Integer pageNumber,
Integer pageSize)
Return all the workflow items from a specific submitter respecting the pagination parameters
|
XmlWorkflowItem |
findIndexableObject(Context context,
Integer id)
Generic find for when the precise type of an IndexableObject is not known
|
int |
getSupportsIndexableObjectTypeConstant()
Returns the Constants which this service supports
|
void |
move(Context context,
XmlWorkflowItem inProgressSubmission,
Collection fromCollection,
Collection toCollection) |
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 WorkflowRequirementsService workflowRequirementsService
@Autowired(required=true) protected WorkflowItemRoleService workflowItemRoleService
public int getSupportsIndexableObjectTypeConstant()
IndexableObjectServicegetSupportsIndexableObjectTypeConstant in interface IndexableObjectService<XmlWorkflowItem,Integer>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 - The relevant DSpace Context.id - ID of the workflow itemSQLException - An exception that provides information on a database access error or other errors.public XmlWorkflowItem findIndexableObject(Context context, Integer id) throws SQLException
IndexableObjectServicefindIndexableObject in interface IndexableObjectService<XmlWorkflowItem,Integer>context - - the contextid - - id within table of type'd indexable objectsSQLException - only upon failure accessing the database.public List<XmlWorkflowItem> findAll(Context context) throws SQLException
WorkflowItemServicefindAll in interface WorkflowItemService<XmlWorkflowItem>context - The relevant DSpace Context.SQLException - An exception that provides information on a database access error or other errors.public List<XmlWorkflowItem> findAll(Context context, Integer page, Integer pagesize) throws SQLException
XmlWorkflowItemServicefindAll in interface XmlWorkflowItemServicecontext - The relevant DSpace Context.page - paging: page numberpagesize - paging: items per pageSQLException - An exception that provides information on a database access error or other errors.public List<XmlWorkflowItem> findAllInCollection(Context context, Integer page, Integer pagesize, Collection collection) throws SQLException
XmlWorkflowItemServicefindAllInCollection in interface XmlWorkflowItemServicecontext - The relevant DSpace Context.page - paging: page numberpagesize - paging: items per pagecollection - restrict to this collectionSQLException - An exception that provides information on a database access error or other errors.public int countAll(Context context) throws SQLException
XmlWorkflowItemServicecountAll in interface XmlWorkflowItemServicecontext - The relevant DSpace Context.SQLException - An exception that provides information on a database access error or other errors.public int countAllInCollection(Context context, Collection collection) throws SQLException
XmlWorkflowItemServicecountAllInCollection in interface XmlWorkflowItemServicecontext - The relevant DSpace Context.collection - restrict to this collectionSQLException - An exception that provides information on a database access error or other errors.public List<XmlWorkflowItem> findBySubmitter(Context context, EPerson ep) throws SQLException
WorkflowItemServicefindBySubmitter in interface WorkflowItemService<XmlWorkflowItem>context - The relevant DSpace Context.ep - the epersonSQLException - An exception that provides information on a database access error or other errors.public List<XmlWorkflowItem> findBySubmitter(Context context, EPerson ep, Integer pageNumber, Integer pageSize) throws SQLException
XmlWorkflowItemServicefindBySubmitter in interface XmlWorkflowItemServicecontext - The relevant DSpace Context.ep - the eperson that has submitted the itempageNumber - paging: page numberpageSize - paging: items per pageSQLExceptionpublic int countBySubmitter(Context context, EPerson ep) throws SQLException
XmlWorkflowItemServicecountBySubmitter in interface XmlWorkflowItemServicecontext - The relevant DSpace Context.ep - the eperson that has submitted the itemSQLExceptionpublic void deleteByCollection(Context context, Collection collection) throws SQLException, IOException, AuthorizeException
WorkflowItemServicedeleteByCollection in interface WorkflowItemService<XmlWorkflowItem>context - The relevant DSpace Context.collection - the containing collectionSQLException - An exception that provides information on a database access error or other errors.IOException - A general class of exceptions produced by failed or interrupted I/O operations.AuthorizeException - Exception indicating the current user of the context does not have permission
to perform a particular action.public void delete(Context context, XmlWorkflowItem workflowItem) throws SQLException, AuthorizeException, IOException
WorkflowItemServicedelete in interface WorkflowItemService<XmlWorkflowItem>context - The relevant DSpace Context.workflowItem - which workflow item to deleteSQLException - 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.IOException - A general class of exceptions produced by failed or interrupted I/O operations.public List<XmlWorkflowItem> findByCollection(Context context, Collection collection) throws SQLException
WorkflowItemServicefindByCollection in interface WorkflowItemService<XmlWorkflowItem>context - The relevant DSpace Context.collection - the collectionSQLException - An exception that provides information on a database access error or other errors.public XmlWorkflowItem findByItem(Context context, Item item) throws SQLException
WorkflowItemServicefindByItem in interface WorkflowItemService<XmlWorkflowItem>context - The relevant DSpace Context.item - the itemSQLException - An exception that provides information on a database access error or other errors.public void update(Context context, XmlWorkflowItem workflowItem) throws SQLException, AuthorizeException
InProgressSubmissionServiceupdate in interface InProgressSubmissionService<XmlWorkflowItem,Integer>context - contextworkflowItem - submissionSQLException - if database errorAuthorizeException - if authorization errorpublic void deleteWrapper(Context context, XmlWorkflowItem workflowItem) throws SQLException, AuthorizeException
InProgressSubmissionServicedeleteWrapper in interface InProgressSubmissionService<XmlWorkflowItem,Integer>context - contextworkflowItem - submissionSQLException - if database errorAuthorizeException - if authorization errorpublic void move(Context context, XmlWorkflowItem inProgressSubmission, Collection fromCollection, Collection toCollection)
move in interface InProgressSubmissionService<XmlWorkflowItem,Integer>Copyright © 2019 DuraSpace. All rights reserved.