public class WorkflowRequirementsServiceImpl extends Object implements WorkflowRequirementsService
| Modifier and Type | Field and Description |
|---|---|
protected InProgressUserService |
inProgressUserService |
protected ItemService |
itemService |
protected PoolTaskService |
poolTaskService |
protected XmlWorkflowFactory |
workflowFactory |
protected XmlWorkflowItemService |
xmlWorkflowItemService |
protected XmlWorkflowService |
xmlWorkflowService |
WORKFLOW_SCHEMA| Modifier | Constructor and Description |
|---|---|
protected |
WorkflowRequirementsServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addClaimedUser(Context context,
XmlWorkflowItem wfi,
Step step,
EPerson user)
Adds a claimed user in the metadata
if enough users have claimed this task (claimed or finished) to meet the required number
the pooled tasks will be deleted
|
void |
addFinishedUser(Context c,
XmlWorkflowItem wfi,
EPerson user)
Adds a finished user in the metadata
this method will also remove the user from the inprogress metadata
|
void |
clearInProgressUsers(Context c,
XmlWorkflowItem wfi) |
void |
removeClaimedUser(Context context,
XmlWorkflowItem wfi,
EPerson user,
String stepID) |
@Autowired(required=true) protected InProgressUserService inProgressUserService
@Autowired(required=true) protected ItemService itemService
@Autowired(required=true) protected PoolTaskService poolTaskService
@Autowired(required=true) protected XmlWorkflowFactory workflowFactory
@Autowired(required=true) protected XmlWorkflowItemService xmlWorkflowItemService
@Autowired(required=true) protected XmlWorkflowService xmlWorkflowService
public void addClaimedUser(Context context, XmlWorkflowItem wfi, Step step, EPerson user) throws SQLException, AuthorizeException, IOException
WorkflowRequirementsServiceaddClaimedUser in interface WorkflowRequirementsServicecontext - the dspace contextwfi - the workflow itemstep - the step for which we are acceptinguser - the current userSQLException - ...AuthorizeException - ...IOException - ...public void removeClaimedUser(Context context, XmlWorkflowItem wfi, EPerson user, String stepID) throws SQLException, IOException, WorkflowConfigurationException, AuthorizeException
removeClaimedUser in interface WorkflowRequirementsServiceSQLExceptionIOExceptionWorkflowConfigurationExceptionAuthorizeExceptionpublic void addFinishedUser(Context c, XmlWorkflowItem wfi, EPerson user) throws AuthorizeException, SQLException
WorkflowRequirementsServiceaddFinishedUser in interface WorkflowRequirementsServicec - the dspace contextwfi - the workflow itemuser - the current userAuthorizeException - ...SQLException - ...public void clearInProgressUsers(Context c, XmlWorkflowItem wfi) throws AuthorizeException, SQLException
clearInProgressUsers in interface WorkflowRequirementsServiceAuthorizeExceptionSQLExceptionCopyright © 2017 DuraSpace. All rights reserved.