public class WorkflowRequirementsManager
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
WORKFLOW_SCHEMA |
| Constructor and Description |
|---|
WorkflowRequirementsManager() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addClaimedUser(Context c,
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
|
static 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
|
static void |
clearInProgressUsers(Context c,
XmlWorkflowItem wfi) |
static void |
removeClaimedUser(Context c,
XmlWorkflowItem wfi,
EPerson user,
java.lang.String stepID) |
public static final java.lang.String WORKFLOW_SCHEMA
public static void addClaimedUser(Context c, XmlWorkflowItem wfi, Step step, EPerson user) throws java.sql.SQLException, AuthorizeException, java.io.IOException
c - the dspace contextwfi - the workflow itemstep - the step for which we are acceptinguser - the current userjava.sql.SQLException - ...AuthorizeException - ...java.io.IOException - ...public static void removeClaimedUser(Context c, XmlWorkflowItem wfi, EPerson user, java.lang.String stepID) throws java.sql.SQLException, java.io.IOException, WorkflowConfigurationException, AuthorizeException
java.sql.SQLExceptionjava.io.IOExceptionWorkflowConfigurationExceptionAuthorizeExceptionpublic static void addFinishedUser(Context c, XmlWorkflowItem wfi, EPerson user) throws AuthorizeException, java.sql.SQLException
c - the dspace contextwfi - the workflow itemuser - the current userAuthorizeException - ...java.sql.SQLException - ...public static void clearInProgressUsers(Context c, XmlWorkflowItem wfi) throws AuthorizeException, java.sql.SQLException
AuthorizeExceptionjava.sql.SQLExceptionCopyright © 2018 DuraSpace. All Rights Reserved.