public class BasicWorkflowItemServiceImpl extends Object implements BasicWorkflowItemService
| Modifier and Type | Field and Description |
|---|---|
protected ItemService |
itemService |
protected static org.apache.logging.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)
Delete the specified workflow item.
|
void |
deleteByCollection(Context context,
Collection collection)
Delete all workflow items present in the specified 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.
|
BasicWorkflowItem |
findIndexableObject(Context context,
Integer id)
Generic find for when the precise type of an IndexableObject is not known
|
List<BasicWorkflowItem> |
findPooledTasks(Context context,
EPerson ePerson) |
int |
getSupportsIndexableObjectTypeConstant()
Returns the Constants which this service supports
|
void |
move(Context context,
BasicWorkflowItem inProgressSubmission,
Collection fromCollection,
Collection toCollection) |
void |
update(Context context,
BasicWorkflowItem workflowItem)
Update the submission, including the unarchived item.
|
protected static org.apache.logging.log4j.Logger log
@Autowired(required=true) protected BasicWorkflowItemDAO workflowItemDAO
@Autowired(required=true) protected ItemService itemService
@Autowired(required=true) protected TaskListItemService taskListItemService
public int getSupportsIndexableObjectTypeConstant()
IndexableObjectServicegetSupportsIndexableObjectTypeConstant in interface IndexableObjectService<BasicWorkflowItem,Integer>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 - The relevant DSpace Context.id - ID of the workflow itemSQLException - An exception that provides information on a database access error or other errors.public BasicWorkflowItem findIndexableObject(Context context, Integer id) throws SQLException
IndexableObjectServicefindIndexableObject in interface IndexableObjectService<BasicWorkflowItem,Integer>context - - the contextid - - id within table of type'd indexable objectsSQLException - only upon failure accessing the database.public List<BasicWorkflowItem> findAll(Context context) throws SQLException
WorkflowItemServicefindAll in interface WorkflowItemService<BasicWorkflowItem>context - The relevant DSpace Context.SQLException - An exception that provides information on a database access error or other errors.public List<BasicWorkflowItem> findBySubmitter(Context context, EPerson ep) throws SQLException
WorkflowItemServicefindBySubmitter in interface WorkflowItemService<BasicWorkflowItem>context - The relevant DSpace Context.ep - the epersonSQLException - An exception that provides information on a database access error or other errors.public void deleteByCollection(Context context, Collection collection) throws SQLException, IOException, AuthorizeException
WorkflowItemServicedeleteByCollection in interface WorkflowItemService<BasicWorkflowItem>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, BasicWorkflowItem workflowItem) throws SQLException, AuthorizeException, IOException
WorkflowItemServicedelete in interface WorkflowItemService<BasicWorkflowItem>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<BasicWorkflowItem> findByCollection(Context context, Collection collection) throws SQLException
WorkflowItemServicefindByCollection in interface WorkflowItemService<BasicWorkflowItem>context - The relevant DSpace Context.collection - the collectionSQLException - An exception that provides information on a database access error or other errors.public BasicWorkflowItem findByItem(Context context, Item item) throws SQLException
WorkflowItemServicefindByItem in interface WorkflowItemService<BasicWorkflowItem>context - The relevant DSpace Context.item - the itemSQLException - An exception that provides information on a database access error or other errors.public void deleteWrapper(Context context, BasicWorkflowItem workflowItem) throws SQLException, AuthorizeException
InProgressSubmissionServicedeleteWrapper in interface InProgressSubmissionService<BasicWorkflowItem,Integer>context - contextworkflowItem - submissionSQLException - if database errorAuthorizeException - if authorization errorpublic void update(Context context, BasicWorkflowItem workflowItem) throws SQLException, AuthorizeException
InProgressSubmissionServiceupdate in interface InProgressSubmissionService<BasicWorkflowItem,Integer>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 relevant DSpace Context.ePerson - The DSpace EPerson object.SQLException - An exception that provides information on a database access error or other errors.public int countTotal(Context context) throws SQLException
countTotal in interface BasicWorkflowItemServiceSQLExceptionpublic void move(Context context, BasicWorkflowItem inProgressSubmission, Collection fromCollection, Collection toCollection)
move in interface InProgressSubmissionService<BasicWorkflowItem,Integer>Copyright © 2019 DuraSpace. All rights reserved.