Package org.dspace.xmlworkflow.service
Interface WorkflowRequirementsService
-
- All Known Implementing Classes:
WorkflowRequirementsServiceImpl
public interface WorkflowRequirementsServiceA class that contains utility methods related to the workflow. The adding/removing of claimed users, and ensuring that if multiple users have to perform these steps that a count is kept so that no more than the allowed user count are allowed to perform their actions.- Author:
- Bram De Schouwer (bram.deschouwer at dot com), Kevin Van de Velde (kevin at atmire dot com), Ben Bosman (ben at atmire dot com), Mark Diggory (markd at atmire dot com)
-
-
Field Summary
Fields Modifier and Type Field Description static StringWORKFLOW_SCHEMA
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddClaimedUser(Context context, XmlWorkflowItem wfi, Step step, EPerson user)Adds a claimed user in the metadata.voidaddFinishedUser(Context context, XmlWorkflowItem wfi, EPerson user)Adds a finished user in the metadata.voidclearInProgressUsers(Context context, XmlWorkflowItem wfi)voidremoveClaimedUser(Context context, XmlWorkflowItem wfi, EPerson user, String stepID)
-
-
-
Field Detail
-
WORKFLOW_SCHEMA
static final String WORKFLOW_SCHEMA
- See Also:
- Constant Field Values
-
-
Method Detail
-
addClaimedUser
void addClaimedUser(Context context, XmlWorkflowItem wfi, Step step, EPerson user) throws SQLException, AuthorizeException, IOException
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.- Parameters:
context- the dspace contextwfi- the workflow itemstep- the step for which we are acceptinguser- the current user- Throws:
SQLException- ...AuthorizeException- ...IOException- ...
-
removeClaimedUser
void removeClaimedUser(Context context, XmlWorkflowItem wfi, EPerson user, String stepID) throws SQLException, IOException, WorkflowConfigurationException, AuthorizeException
-
addFinishedUser
void addFinishedUser(Context context, XmlWorkflowItem wfi, EPerson user) throws AuthorizeException, SQLException
Adds a finished user in the metadata. This method will also remove the user from the in-progress metadata.- Parameters:
context- the dspace contextwfi- the workflow itemuser- the current user- Throws:
AuthorizeException- ...SQLException- ...
-
clearInProgressUsers
void clearInProgressUsers(Context context, XmlWorkflowItem wfi) throws AuthorizeException, SQLException
- Throws:
AuthorizeExceptionSQLException
-
-