Class ClaimedTaskServiceImpl
java.lang.Object
org.dspace.xmlworkflow.storedcomponents.ClaimedTaskServiceImpl
- All Implemented Interfaces:
DSpaceCRUDService<ClaimedTask>,ClaimedTaskService
Service implementation for the ClaimedTask object.
This class is responsible for all business logic calls for the ClaimedTask object and is autowired by spring.
This class should never be accessed directly.
- Author:
- kevinvandevelde at atmire.com
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(Context context, ClaimedTask claimedTask) voiddeleteByWorkflowItem(Context context, XmlWorkflowItem workflowItem) find(Context context, EPerson ePerson, XmlWorkflowItem workflowItem, String stepID, String actionID) find(Context context, XmlWorkflowItem workflowItem) Find all claimed tasks for a given workflow item.find(Context context, XmlWorkflowItem workflowItem, String stepID) find(Context context, XmlWorkflowItem workflowItem, String stepID, String actionID) findAllInStep(Context context, String stepID) findByEperson(Context context, EPerson ePerson) findByWorkflowIdAndEPerson(Context context, XmlWorkflowItem workflowItem, EPerson ePerson) Find the single task for a given workflow item claimed by a given EPerson.findByWorkflowItem(Context context, XmlWorkflowItem workflowItem) voidupdate(Context context, List<ClaimedTask> claimedTasks) Persist a collection of model objects.voidupdate(Context context, ClaimedTask claimedTask) Persist a model object.
-
Field Details
-
claimedTaskDAO
-
-
Constructor Details
-
ClaimedTaskServiceImpl
protected ClaimedTaskServiceImpl()
-
-
Method Details
-
create
- Specified by:
createin interfaceDSpaceCRUDService<ClaimedTask>- Throws:
SQLExceptionAuthorizeException
-
find
- Specified by:
findin interfaceDSpaceCRUDService<ClaimedTask>- Throws:
SQLException
-
findAll
- Specified by:
findAllin interfaceClaimedTaskService- Throws:
SQLException
-
update
public void update(Context context, ClaimedTask claimedTask) throws SQLException, AuthorizeException Description copied from interface:DSpaceCRUDServicePersist a model object.- Specified by:
updatein interfaceDSpaceCRUDService<ClaimedTask>claimedTask- object to be persisted.- Throws:
SQLException- passed through.AuthorizeException- passed through.
-
update
public void update(Context context, List<ClaimedTask> claimedTasks) throws SQLException, AuthorizeException Description copied from interface:DSpaceCRUDServicePersist a collection of model objects.- Specified by:
updatein interfaceDSpaceCRUDService<ClaimedTask>claimedTasks- object to be persisted.- Throws:
SQLException- passed through.AuthorizeException- passed through.
-
delete
public void delete(Context context, ClaimedTask claimedTask) throws SQLException, AuthorizeException - Specified by:
deletein interfaceDSpaceCRUDService<ClaimedTask>- Throws:
SQLExceptionAuthorizeException
-
findByWorkflowItem
public List<ClaimedTask> findByWorkflowItem(Context context, XmlWorkflowItem workflowItem) throws SQLException - Specified by:
findByWorkflowItemin interfaceClaimedTaskService- Throws:
SQLException
-
findByWorkflowIdAndEPerson
public ClaimedTask findByWorkflowIdAndEPerson(Context context, XmlWorkflowItem workflowItem, EPerson ePerson) throws SQLException Description copied from interface:ClaimedTaskServiceFind the single task for a given workflow item claimed by a given EPerson.- Specified by:
findByWorkflowIdAndEPersonin interfaceClaimedTaskServiceworkflowItem- find task for this item.ePerson- find task claimed by this EPerson.- Returns:
- the single matching task, or null if none.
- Throws:
SQLException- passed through.
-
findByEperson
- Specified by:
findByEpersonin interfaceClaimedTaskService- Throws:
SQLException
-
find
public List<ClaimedTask> find(Context context, XmlWorkflowItem workflowItem, String stepID) throws SQLException - Specified by:
findin interfaceClaimedTaskService- Throws:
SQLException
-
find
public ClaimedTask find(Context context, EPerson ePerson, XmlWorkflowItem workflowItem, String stepID, String actionID) throws SQLException - Specified by:
findin interfaceClaimedTaskService- Throws:
SQLException
-
find
public List<ClaimedTask> find(Context context, XmlWorkflowItem workflowItem, String stepID, String actionID) throws SQLException - Specified by:
findin interfaceClaimedTaskService- Throws:
SQLException
-
find
Description copied from interface:ClaimedTaskServiceFind all claimed tasks for a given workflow item.- Specified by:
findin interfaceClaimedTaskService- Parameters:
context- current DSpace session.workflowItem- the given workflow item.- Returns:
- all claimed tasks for that item.
- Throws:
SQLException- passed through.
-
findAllInStep
- Specified by:
findAllInStepin interfaceClaimedTaskService- Throws:
SQLException
-
deleteByWorkflowItem
public void deleteByWorkflowItem(Context context, XmlWorkflowItem workflowItem) throws SQLException, AuthorizeException - Specified by:
deleteByWorkflowItemin interfaceClaimedTaskService- Throws:
SQLExceptionAuthorizeException
-