public class FlowUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static BasicWorkflowItemService |
basicWorkflowItemService |
protected static BasicWorkflowService |
basicWorkflowService |
protected static HandleService |
handleService |
protected static WorkspaceItemService |
workspaceItemService |
| Constructor and Description |
|---|
FlowUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
authorizeWorkflowItem(Context context,
String workflowItemId)
Verifies if the currently logged in user has proper rights to perform the workflow task on the item
|
static BasicWorkflowItem |
findWorkflow(Context context,
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,
String id)
Update the provided workflowItem to advance to the next workflow
step.
|
static void |
processClaimTask(Context context,
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 String |
processRejectTask(Context context,
String id,
org.apache.cocoon.environment.Request request)
Reject the given task for the given reason.
|
static void |
processUnclaimTask(Context context,
String id)
Return the given task to the pool of unclaimed tasks for another user
to select and perform.
|
protected static final BasicWorkflowService basicWorkflowService
protected static final BasicWorkflowItemService basicWorkflowItemService
protected static final HandleService handleService
protected static final WorkspaceItemService workspaceItemService
public static boolean processApproveTask(Context context, String id) throws SQLException, UIException, javax.servlet.ServletException, AuthorizeException, IOException
context - The current DSpace contentid - The unique ID of the current workflowSQLException - passed through.UIException - passed through.javax.servlet.ServletException - passed through.AuthorizeException - passed through.IOException - passed through.public static void processUnclaimTask(Context context, String id) throws SQLException, UIException, javax.servlet.ServletException, AuthorizeException, IOException
context - The current DSpace contentid - The unique ID of the current workflowSQLException - passed through.UIException - passed through.javax.servlet.ServletException - passed through.AuthorizeException - passed through.IOException - passed through.public static void processClaimTask(Context context, String id) throws SQLException, UIException, javax.servlet.ServletException, AuthorizeException, IOException
context - The current DSpace contentid - The unique ID of the current workflowSQLException - passed through.UIException - passed through.javax.servlet.ServletException - passed through.AuthorizeException - passed through.IOException - passed through.public static void authorizeWorkflowItem(Context context, String workflowItemId) throws AuthorizeException, 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 handSQLException - is thrown when something is wrong with the databasepublic static String processRejectTask(Context context, String id, org.apache.cocoon.environment.Request request) throws SQLException, UIException, javax.servlet.ServletException, AuthorizeException, IOException
context - The current DSpace contentid - The unique ID of the current workflowrequest - The current request objectSQLException - passed through.UIException - passed through.javax.servlet.ServletException - passed through.AuthorizeException - passed through.IOException - passed through.public static BasicWorkflowItem findWorkflow(Context context, String inProgressSubmissionID) throws SQLException, AuthorizeException, IOException
context - session context.inProgressSubmissionID - internal identifier of the submission.SQLException - passed through.AuthorizeException - passed through.IOException - passed through.Copyright © 2016 DuraSpace. All rights reserved.