Interface ClaimedTaskDAO
- All Superinterfaces:
GenericDAO<ClaimedTask>
- All Known Implementing Classes:
ClaimedTaskDAOImpl
Database Access Object interface class for the ClaimedTask object.
The implementation of this class is responsible for all database calls for the ClaimedTask object and is autowired
by spring
This class should only be accessed from a single service and should never be exposed outside of the API
- Author:
- kevinvandevelde at atmire.com
-
Method Summary
Modifier and TypeMethodDescriptionfindByEperson(Context context, EPerson ePerson) findByEPersonAndWorkflowItemAndStepIdAndActionId(Context context, EPerson ePerson, XmlWorkflowItem workflowItem, String stepID, String actionID) findByStep(Context context, String stepID) findByWorkflowItem(Context context, XmlWorkflowItem workflowItem) Find all claimed tasks for a given workflow item.findByWorkflowItemAndEPerson(Context context, XmlWorkflowItem workflowItem, EPerson ePerson) Find the single task for a given workflow item which is claimed by a given EPerson.findByWorkflowItemAndStepId(Context context, XmlWorkflowItem workflowItem, String stepID) findByWorkflowItemAndStepIdAndActionId(Context c, XmlWorkflowItem workflowItem, String stepID, String actionID)
-
Method Details
-
findByWorkflowItem
List<ClaimedTask> findByWorkflowItem(Context context, XmlWorkflowItem workflowItem) throws SQLException Find all claimed tasks for a given workflow item.- Parameters:
context- current DSpace session.workflowItem- the interesting workflow item.- Returns:
- all claimed tasks for that item.
- Throws:
SQLException- passed through.
-
findByWorkflowItemAndEPerson
ClaimedTask findByWorkflowItemAndEPerson(Context context, XmlWorkflowItem workflowItem, EPerson ePerson) throws SQLException Find the single task for a given workflow item which is claimed by a given EPerson.- Parameters:
context-workflowItem- find task for this item.ePerson- find task claimed by this EPerson.- Returns:
- the matching task, or null if none.
- Throws:
SQLException- if query cannot be created or fails.
-
findByEperson
- Throws:
SQLException
-
findByWorkflowItemAndStepId
List<ClaimedTask> findByWorkflowItemAndStepId(Context context, XmlWorkflowItem workflowItem, String stepID) throws SQLException - Throws:
SQLException
-
findByEPersonAndWorkflowItemAndStepIdAndActionId
ClaimedTask findByEPersonAndWorkflowItemAndStepIdAndActionId(Context context, EPerson ePerson, XmlWorkflowItem workflowItem, String stepID, String actionID) throws SQLException - Throws:
SQLException
-
findByWorkflowItemAndStepIdAndActionId
List<ClaimedTask> findByWorkflowItemAndStepIdAndActionId(Context c, XmlWorkflowItem workflowItem, String stepID, String actionID) throws SQLException - Throws:
SQLException
-
findByStep
- Throws:
SQLException
-