Class PoolTaskServiceImpl
java.lang.Object
org.dspace.xmlworkflow.storedcomponents.PoolTaskServiceImpl
- All Implemented Interfaces:
DSpaceCRUDService<PoolTask>,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
FieldsModifier and TypeFieldDescriptionprotected GroupServiceprotected InProgressUserServiceprotected PoolTaskDAO -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddeleteByEperson(Context context, EPerson ePerson) voiddeleteByWorkflowItem(Context context, XmlWorkflowItem xmlWorkflowItem) find(Context context, XmlWorkflowItem workflowItem) findByEperson(Context context, EPerson ePerson) findByEPerson(Context context, EPerson ePerson) findByGroup(Context context, Group group) This method will return a list of PoolTask for the given groupfindByGroups(Context context, EPerson ePerson, List<Group> groups) findByWorkflowIdAndEPerson(Context context, XmlWorkflowItem workflowItem, EPerson ePerson) voidPersist a collection of model objects.voidPersist a model object.
-
Field Details
-
poolTaskDAO
-
groupService
-
inProgressUserService
-
-
Constructor Details
-
PoolTaskServiceImpl
protected PoolTaskServiceImpl()
-
-
Method Details
-
findAll
- 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
- 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
-
deleteByEperson
public void deleteByEperson(Context context, EPerson ePerson) throws SQLException, AuthorizeException, IOException - Specified by:
deleteByEpersonin interfacePoolTaskService- Throws:
SQLExceptionAuthorizeExceptionIOException
-
findByEPerson
- Specified by:
findByEPersonin interfacePoolTaskService- Throws:
SQLException
-
findByGroup
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
- Specified by:
createin interfaceDSpaceCRUDService<PoolTask>- Throws:
SQLExceptionAuthorizeException
-
find
- Specified by:
findin interfaceDSpaceCRUDService<PoolTask>- Throws:
SQLException
-
update
Description copied from interface:DSpaceCRUDServicePersist a model object.- Specified by:
updatein interfaceDSpaceCRUDService<PoolTask>poolTask- object to be persisted.- Throws:
SQLException- passed through.AuthorizeException- passed through.
-
update
public void update(Context context, List<PoolTask> poolTasks) throws SQLException, AuthorizeException Description copied from interface:DSpaceCRUDServicePersist a collection of model objects.- Specified by:
updatein interfaceDSpaceCRUDService<PoolTask>poolTasks- object to be persisted.- Throws:
SQLException- passed through.AuthorizeException- passed through.
-
delete
- Specified by:
deletein interfaceDSpaceCRUDService<PoolTask>- Throws:
SQLExceptionAuthorizeException
-