Class PoolTaskServiceImpl
- java.lang.Object
-
- org.dspace.xmlworkflow.storedcomponents.PoolTaskServiceImpl
-
- All Implemented Interfaces:
DSpaceCRUDService<PoolTask>,PoolTaskService
public class PoolTaskServiceImpl extends Object implements PoolTaskService
Service implementation for the PoolTask object. This class is responsible for all business logic calls for the PoolTask 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 GroupServicegroupServiceprotected InProgressUserServiceinProgressUserServiceprotected PoolTaskDAOpoolTaskDAO
-
Constructor Summary
Constructors Modifier Constructor Description protectedPoolTaskServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PoolTaskcreate(Context context)voiddelete(Context context, PoolTask poolTask)voiddeleteByWorkflowItem(Context context, XmlWorkflowItem xmlWorkflowItem)PoolTaskfind(Context context, int id)List<PoolTask>find(Context context, XmlWorkflowItem workflowItem)List<PoolTask>findAll(Context context)List<PoolTask>findByEperson(Context context, EPerson ePerson)List<PoolTask>findByEPerson(Context context, EPerson ePerson)List<PoolTask>findByGroup(Context context, Group group)This method will return a list of PoolTask for the given groupprotected List<PoolTask>findByGroups(Context context, EPerson ePerson, List<Group> groups)PoolTaskfindByWorkflowIdAndEPerson(Context context, XmlWorkflowItem workflowItem, EPerson ePerson)voidupdate(Context context, List<PoolTask> poolTasks)voidupdate(Context context, PoolTask poolTask)
-
-
-
Field Detail
-
poolTaskDAO
@Autowired(required=true) protected PoolTaskDAO poolTaskDAO
-
groupService
@Autowired(required=true) protected GroupService groupService
-
inProgressUserService
@Autowired(required=true) protected InProgressUserService inProgressUserService
-
-
Method Detail
-
findAll
public List<PoolTask> findAll(Context context) throws SQLException
- Specified by:
findAllin interfacePoolTaskService- Throws:
SQLException
-
findByEperson
public List<PoolTask> findByEperson(Context context, EPerson ePerson) throws SQLException, AuthorizeException, IOException
- Specified by:
findByEpersonin interfacePoolTaskService- Throws:
SQLExceptionAuthorizeExceptionIOException
-
findByGroups
protected List<PoolTask> findByGroups(Context context, EPerson ePerson, List<Group> groups) throws SQLException
- Throws:
SQLException
-
find
public List<PoolTask> find(Context context, XmlWorkflowItem workflowItem) throws SQLException
- Specified by:
findin interfacePoolTaskService- Throws:
SQLException
-
findByWorkflowIdAndEPerson
public PoolTask findByWorkflowIdAndEPerson(Context context, XmlWorkflowItem workflowItem, EPerson ePerson) throws SQLException, AuthorizeException, IOException
- Specified by:
findByWorkflowIdAndEPersonin interfacePoolTaskService- Throws:
SQLExceptionAuthorizeExceptionIOException
-
deleteByWorkflowItem
public void deleteByWorkflowItem(Context context, XmlWorkflowItem xmlWorkflowItem) throws SQLException, AuthorizeException
- Specified by:
deleteByWorkflowItemin interfacePoolTaskService- Throws:
SQLExceptionAuthorizeException
-
findByEPerson
public List<PoolTask> findByEPerson(Context context, EPerson ePerson) throws SQLException
- Specified by:
findByEPersonin interfacePoolTaskService- Throws:
SQLException
-
findByGroup
public List<PoolTask> findByGroup(Context context, Group group) throws SQLException
Description copied from interface:PoolTaskServiceThis method will return a list of PoolTask for the given group- Specified by:
findByGroupin interfacePoolTaskService- Parameters:
context- The relevant DSpace contextgroup- The Group to be searched on- Returns:
- The list of PoolTask objects
- Throws:
SQLException- If something goes wrong
-
create
public PoolTask create(Context context) throws SQLException, AuthorizeException
- Specified by:
createin interfaceDSpaceCRUDService<PoolTask>- Throws:
SQLExceptionAuthorizeException
-
find
public PoolTask find(Context context, int id) throws SQLException
- Specified by:
findin interfaceDSpaceCRUDService<PoolTask>- Throws:
SQLException
-
update
public void update(Context context, PoolTask poolTask) throws SQLException, AuthorizeException
- Specified by:
updatein interfaceDSpaceCRUDService<PoolTask>- Throws:
SQLExceptionAuthorizeException
-
update
public void update(Context context, List<PoolTask> poolTasks) throws SQLException, AuthorizeException
- Specified by:
updatein interfaceDSpaceCRUDService<PoolTask>- Throws:
SQLExceptionAuthorizeException
-
delete
public void delete(Context context, PoolTask poolTask) throws SQLException, AuthorizeException
- Specified by:
deletein interfaceDSpaceCRUDService<PoolTask>- Throws:
SQLExceptionAuthorizeException
-
-