Interface ClaimedTaskDAO
-
- All Superinterfaces:
GenericDAO<ClaimedTask>
- All Known Implementing Classes:
ClaimedTaskDAOImpl
public interface ClaimedTaskDAO extends GenericDAO<ClaimedTask>
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<ClaimedTask>findByEperson(Context context, EPerson ePerson)ClaimedTaskfindByEPersonAndWorkflowItemAndStepIdAndActionId(Context context, EPerson ePerson, XmlWorkflowItem workflowItem, String stepID, String actionID)List<ClaimedTask>findByStep(Context context, String stepID)List<ClaimedTask>findByWorkflowItem(Context context, XmlWorkflowItem workflowItem)Find all claimed tasks for a given workflow item.ClaimedTaskfindByWorkflowItemAndEPerson(Context context, XmlWorkflowItem workflowItem, EPerson ePerson)Find the single task for a given workflow item which is claimed by a given EPerson.List<ClaimedTask>findByWorkflowItemAndStepId(Context context, XmlWorkflowItem workflowItem, String stepID)List<ClaimedTask>findByWorkflowItemAndStepIdAndActionId(Context c, XmlWorkflowItem workflowItem, String stepID, String actionID)-
Methods inherited from interface org.dspace.core.GenericDAO
create, delete, findAll, findAll, findByID, findByID, findMany, findUnique, save
-
-
-
-
Method Detail
-
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
List<ClaimedTask> findByEperson(Context context, EPerson ePerson) throws SQLException
- 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
List<ClaimedTask> findByStep(Context context, String stepID) throws SQLException
- Throws:
SQLException
-
-