public class FlowUtils
extends java.lang.Object
| Constructor and Description |
|---|
FlowUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
authorizeWorkflowItem(Context context,
java.lang.String workflowItemId)
Verifies if the currently logged in user has proper rights to perform the workflow task on the item
|
static WorkflowItem |
findWorkflow(Context context,
java.lang.String inProgressSubmissionID)
Return the workflow identified by the given id, the id should be
prepended with the character S to signify that it is a workflow
instead of a workspace.
|
static boolean |
processApproveTask(Context context,
java.lang.String id)
Update the provided workflowItem to advance to the next workflow
step.
|
static void |
processClaimTask(Context context,
java.lang.String id)
Claim this task from the pool of unclaimed task so that this user may
perform the task by either approving or rejecting it.
|
static java.lang.String |
processRejectTask(Context context,
java.lang.String id,
org.apache.cocoon.environment.Request request)
Reject the given task for the given reason.
|
static void |
processUnclaimTask(Context context,
java.lang.String id)
Return the given task back to the pool of unclaimed tasks for another user
to select and perform.
|
public static boolean processApproveTask(Context context, java.lang.String id) throws java.sql.SQLException, UIException, javax.servlet.ServletException, AuthorizeException, java.io.IOException
context - The current DSpace contentid - The unique ID of the current workflowjava.sql.SQLExceptionUIExceptionjavax.servlet.ServletExceptionAuthorizeExceptionjava.io.IOExceptionpublic static void processUnclaimTask(Context context, java.lang.String id) throws java.sql.SQLException, UIException, javax.servlet.ServletException, AuthorizeException, java.io.IOException
context - The current DSpace contentid - The unique ID of the current workflowjava.sql.SQLExceptionUIExceptionjavax.servlet.ServletExceptionAuthorizeExceptionjava.io.IOExceptionpublic static void processClaimTask(Context context, java.lang.String id) throws java.sql.SQLException, UIException, javax.servlet.ServletException, AuthorizeException, java.io.IOException
context - The current DSpace contentid - The unique ID of the current workflowjava.sql.SQLExceptionUIExceptionjavax.servlet.ServletExceptionAuthorizeExceptionjava.io.IOExceptionpublic static void authorizeWorkflowItem(Context context, java.lang.String workflowItemId) throws AuthorizeException, java.sql.SQLException
context - the current dspace contextworkflowItemId - the identifier of the workflow itemAuthorizeException - thrown if the user doesn't have sufficient rights to perform the task at handjava.sql.SQLException - is thrown when something is wrong with the databasepublic static java.lang.String processRejectTask(Context context, java.lang.String id, org.apache.cocoon.environment.Request request) throws java.sql.SQLException, UIException, javax.servlet.ServletException, AuthorizeException, java.io.IOException
context - The current DSpace contentid - The unique ID of the current workflowrequest - The current request objectjava.sql.SQLExceptionUIExceptionjavax.servlet.ServletExceptionAuthorizeExceptionjava.io.IOExceptionpublic static WorkflowItem findWorkflow(Context context, java.lang.String inProgressSubmissionID) throws java.sql.SQLException, AuthorizeException, java.io.IOException
context - inProgressSubmissionID - java.sql.SQLExceptionAuthorizeExceptionjava.io.IOExceptionCopyright © 2014 DuraSpace. All Rights Reserved.