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