public class BasicWorkflowItemServiceImpl extends Object implements BasicWorkflowItemService
| Modifier and Type | Field and Description |
|---|---|
protected ItemService |
itemService |
protected static org.apache.log4j.Logger |
log
log4j category
|
protected TaskListItemService |
taskListItemService |
protected BasicWorkflowItemDAO |
workflowItemDAO |
| Modifier | Constructor and Description |
|---|---|
protected |
BasicWorkflowItemServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
int |
countTotal(Context context) |
BasicWorkflowItem |
create(Context context,
Item item,
Collection collection) |
void |
delete(Context context,
BasicWorkflowItem workflowItem) |
void |
deleteByCollection(Context context,
Collection collection) |
void |
deleteWrapper(Context context,
BasicWorkflowItem workflowItem)
Deletes submission wrapper, doesn't delete item contents
|
BasicWorkflowItem |
find(Context context,
int id)
Get a workflow item from the database.
|
List<BasicWorkflowItem> |
findAll(Context context)
return all workflowitems
|
List<BasicWorkflowItem> |
findByCollection(Context context,
Collection collection)
Get all workflow items for a particular collection.
|
BasicWorkflowItem |
findByItem(Context context,
Item item)
Check to see if a particular item is currently under Workflow.
|
List<BasicWorkflowItem> |
findByOwner(Context context,
EPerson ePerson)
Retrieve the list of BasicWorkflowItems that the given EPerson is owner of (owner == claimed for review)
|
List<BasicWorkflowItem> |
findBySubmitter(Context context,
EPerson ep)
Get all workflow items that were original submissions by a particular
e-person.
|
List<BasicWorkflowItem> |
findPooledTasks(Context context,
EPerson ePerson) |
void |
update(Context context,
BasicWorkflowItem workflowItem)
Update the submission, including the unarchived item.
|
protected static org.apache.log4j.Logger log
@Autowired(required=true) protected BasicWorkflowItemDAO workflowItemDAO
@Autowired(required=true) protected ItemService itemService
@Autowired(required=true) protected TaskListItemService taskListItemService
public BasicWorkflowItem create(Context context, Item item, Collection collection) throws SQLException, AuthorizeException
create in interface WorkflowItemService<BasicWorkflowItem>SQLExceptionAuthorizeExceptionpublic BasicWorkflowItem find(Context context, int id) throws SQLException
WorkflowItemServicefind in interface WorkflowItemService<BasicWorkflowItem>context - DSpace context objectid - ID of the workflow itemSQLExceptionpublic List<BasicWorkflowItem> findAll(Context context) throws SQLException
WorkflowItemServicefindAll in interface WorkflowItemService<BasicWorkflowItem>context - active contextSQLExceptionpublic List<BasicWorkflowItem> findBySubmitter(Context context, EPerson ep) throws SQLException
WorkflowItemServicefindBySubmitter in interface WorkflowItemService<BasicWorkflowItem>context - the context objectep - the epersonSQLExceptionpublic void deleteByCollection(Context context, Collection collection) throws SQLException, IOException, AuthorizeException
deleteByCollection in interface WorkflowItemService<BasicWorkflowItem>SQLExceptionIOExceptionAuthorizeExceptionpublic void delete(Context context, BasicWorkflowItem workflowItem) throws SQLException, AuthorizeException, IOException
delete in interface WorkflowItemService<BasicWorkflowItem>SQLExceptionAuthorizeExceptionIOExceptionpublic List<BasicWorkflowItem> findByCollection(Context context, Collection collection) throws SQLException
WorkflowItemServicefindByCollection in interface WorkflowItemService<BasicWorkflowItem>context - the context objectcollection - the collectionSQLExceptionpublic BasicWorkflowItem findByItem(Context context, Item item) throws SQLException
WorkflowItemServicefindByItem in interface WorkflowItemService<BasicWorkflowItem>context - the context objectitem - the itemSQLExceptionpublic void deleteWrapper(Context context, BasicWorkflowItem workflowItem) throws SQLException, AuthorizeException
InProgressSubmissionServicedeleteWrapper in interface InProgressSubmissionService<BasicWorkflowItem>context - contextworkflowItem - submissionSQLException - if database errorAuthorizeException - if authorization errorpublic void update(Context context, BasicWorkflowItem workflowItem) throws SQLException, AuthorizeException
InProgressSubmissionServiceupdate in interface InProgressSubmissionService<BasicWorkflowItem>context - contextworkflowItem - submissionSQLException - if database errorAuthorizeException - if authorization errorpublic List<BasicWorkflowItem> findPooledTasks(Context context, EPerson ePerson) throws SQLException
findPooledTasks in interface BasicWorkflowItemServiceSQLExceptionpublic List<BasicWorkflowItem> findByOwner(Context context, EPerson ePerson) throws SQLException
BasicWorkflowItemServicefindByOwner in interface BasicWorkflowItemServicecontext - the dspace contextePerson - a DSpace EPersonSQLExceptionpublic int countTotal(Context context) throws SQLException
countTotal in interface BasicWorkflowItemServiceSQLExceptionCopyright © 2022 LYRASIS. All rights reserved.