|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.app.xmlui.aspect.workflow.FlowUtils
public class FlowUtils
This is a utility class to aid in the workflow flow scripts. Since data validation is cumbersome inside a flow script this is a collection of methods to perform processing at each step of the flow, the flow script will ties these operations together in a meaningful order but all actually processing is done through these various processes.
| Constructor Summary | |
|---|---|
FlowUtils()
|
|
| Method Summary | |
|---|---|
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 WorkflowItem |
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 preform 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 back to the pool of unclaimed tasks for another user to select and preform. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FlowUtils()
| Method Detail |
|---|
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 workflow
SQLException
UIException
javax.servlet.ServletException
AuthorizeException
IOException
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 workflow
SQLException
UIException
javax.servlet.ServletException
AuthorizeException
IOException
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 workflow
SQLException
UIException
javax.servlet.ServletException
AuthorizeException
IOException
public static void authorizeWorkflowItem(Context context,
String workflowItemId)
throws AuthorizeException,
SQLException
context - the current dspace contextworkflowItemId - the identifier of the workflow item
AuthorizeException - thrown if the user doesn't have sufficient rights to perform the task at hand
SQLException - is thrown when something is wrong with the database
public 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 object
SQLException
UIException
javax.servlet.ServletException
AuthorizeException
IOException
public static WorkflowItem findWorkflow(Context context,
String inProgressSubmissionID)
throws SQLException,
AuthorizeException,
IOException
context - inProgressSubmissionID -
SQLException
AuthorizeException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||