Class ClaimedTaskServiceImpl
- java.lang.Object
-
- org.dspace.xmlworkflow.storedcomponents.ClaimedTaskServiceImpl
-
- All Implemented Interfaces:
DSpaceCRUDService<ClaimedTask>,ClaimedTaskService
public class ClaimedTaskServiceImpl extends Object implements 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 Modifier and Type Field Description protected ClaimedTaskDAOclaimedTaskDAO
-
Constructor Summary
Constructors Modifier Constructor Description protectedClaimedTaskServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClaimedTaskcreate(Context context)voiddelete(Context context, ClaimedTask claimedTask)voiddeleteByWorkflowItem(Context context, XmlWorkflowItem workflowItem)ClaimedTaskfind(Context context, int id)ClaimedTaskfind(Context context, EPerson ePerson, XmlWorkflowItem workflowItem, String stepID, String actionID)List<ClaimedTask>find(Context context, XmlWorkflowItem workflowItem)Find all claimed tasks for a given workflow item.List<ClaimedTask>find(Context context, XmlWorkflowItem workflowItem, String stepID)List<ClaimedTask>find(Context context, XmlWorkflowItem workflowItem, String stepID, String actionID)List<ClaimedTask>findAll(Context context)List<ClaimedTask>findAllInStep(Context context, String stepID)List<ClaimedTask>findByEperson(Context context, EPerson ePerson)ClaimedTaskfindByWorkflowIdAndEPerson(Context context, XmlWorkflowItem workflowItem, EPerson ePerson)Find the single task for a given workflow item claimed by a given EPerson.List<ClaimedTask>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 Detail
-
claimedTaskDAO
@Autowired(required=true) protected ClaimedTaskDAO claimedTaskDAO
-
-
Method Detail
-
create
public ClaimedTask create(Context context) throws SQLException, AuthorizeException
- Specified by:
createin interfaceDSpaceCRUDService<ClaimedTask>- Throws:
SQLExceptionAuthorizeException
-
find
public ClaimedTask find(Context context, int id) throws SQLException
- Specified by:
findin interfaceDSpaceCRUDService<ClaimedTask>- Throws:
SQLException
-
findAll
public List<ClaimedTask> findAll(Context context) throws SQLException
- 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
public List<ClaimedTask> findByEperson(Context context, EPerson ePerson) throws SQLException
- 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
public List<ClaimedTask> find(Context context, XmlWorkflowItem workflowItem) throws SQLException
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
public List<ClaimedTask> findAllInStep(Context context, String stepID) throws SQLException
- Specified by:
findAllInStepin interfaceClaimedTaskService- Throws:
SQLException
-
deleteByWorkflowItem
public void deleteByWorkflowItem(Context context, XmlWorkflowItem workflowItem) throws SQLException, AuthorizeException
- Specified by:
deleteByWorkflowItemin interfaceClaimedTaskService- Throws:
SQLExceptionAuthorizeException
-
-