|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.infoglue.cms.controllers.kernel.impl.simple.BaseController
|
+--org.infoglue.cms.controllers.kernel.impl.simple.WorkflowController
This controller acts as the api towards the OSWorkflow Workflow-engine.
| Method Summary | |
WorkflowVO |
createWorkflowInstance(InfoGluePrincipal userPrincipal,
java.lang.String workflowName)
Deprecated. use initializeWorkflow() instead; this method relies on a hard-coded initial action ID of 0. |
java.util.List |
getAllSteps(InfoGluePrincipal userPrincipal,
long workflowId)
Returns all steps for a workflow definition. |
java.util.List |
getAvailableWorkflowVOList(InfoGluePrincipal userPrincipal)
Returns a list of all available workflows, i.e., workflows defined in workflows.xml |
static WorkflowController |
getController()
Returns the WorkflowController singleton |
java.util.List |
getCurrentSteps(InfoGluePrincipal userPrincipal,
long workflowId)
Returns all current steps for a workflow, i.e., steps that could be performed in the workflow's current state |
java.util.List |
getCurrentWorkflowVOList(InfoGluePrincipal userPrincipal)
Returns current workflows, i.e., workflows that are active. |
java.util.List |
getHistorySteps(InfoGluePrincipal userPrincipal,
long workflowId)
Returns all history steps for a workflow, i.e., all the steps that have already been performed. |
BaseEntityVO |
getNewVO()
Returns a new WorkflowActionVO. |
java.util.Map |
getProperties(InfoGluePrincipal userPrincipal,
long workflowId)
Returns the contents of the PropertySet for a particular workflow |
com.opensymphony.module.propertyset.PropertySet |
getPropertySet(InfoGluePrincipal userPrincipal,
long workflowId)
Returns the workflow property set for a particular user and workflow |
WorkflowVO |
initializeWorkflow(InfoGluePrincipal principal,
java.lang.String name,
int actionId)
|
WorkflowVO |
initializeWorkflow(InfoGluePrincipal principal,
java.lang.String name,
int actionId,
java.util.Map map)
|
WorkflowVO |
invokeAction(InfoGluePrincipal principal,
javax.servlet.http.HttpServletRequest request,
long workflowId,
int actionId)
Invokes an action on a workflow for a given user and request TODO: Remove dependency on HTTP request |
| Methods inherited from class org.infoglue.cms.controllers.kernel.impl.simple.BaseController |
deleteEntity, deleteEntity, deleteEntity, getAllVOObjects, getAllVOObjects, getAllVOObjects, getAllVOObjects, getVOWithId, getVOWithId, getVOWithId, toModifiableVOList, toVOList, updateEntity, updateEntity, updateEntity, validateEntity |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static WorkflowController getController()
public WorkflowVO createWorkflowInstance(InfoGluePrincipal userPrincipal,
java.lang.String workflowName)
throws SystemException
userPrincipal - the user principal representing the desired userworkflowName - the name of the workflow to create.
SystemException - if an error occurs while initiaizing the workflowinitializeWorkflow(org.infoglue.cms.security.InfoGluePrincipal, java.lang.String, int)
public WorkflowVO initializeWorkflow(InfoGluePrincipal principal,
java.lang.String name,
int actionId)
throws SystemException
principal - the user principal representing the desired username - the name of the workflow to create.actionId - the ID of the initial action
SystemException - if an error occurs while initiaizing the workflow
public WorkflowVO initializeWorkflow(InfoGluePrincipal principal,
java.lang.String name,
int actionId,
java.util.Map map)
throws SystemException
principal - the user principal representing the desired username - the name of the workflow to create.actionId - the ID of the initial action
SystemException - if an error occurs while initiaizing the workflowpublic java.util.List getAvailableWorkflowVOList(InfoGluePrincipal userPrincipal)
userPrincipal - a user principal
public java.util.List getCurrentWorkflowVOList(InfoGluePrincipal userPrincipal)
throws SystemException
userPrincipal - a user principal
SystemException - if an error occurs while finding the current workflows
public WorkflowVO invokeAction(InfoGluePrincipal principal,
javax.servlet.http.HttpServletRequest request,
long workflowId,
int actionId)
throws com.opensymphony.workflow.WorkflowException
principal - the user principalrequest - the current HTTP requestworkflowId - the ID of the desired workflowactionId - the ID of the desired action
com.opensymphony.workflow.WorkflowException - if a workflow error occurs
public com.opensymphony.module.propertyset.PropertySet getPropertySet(InfoGluePrincipal userPrincipal,
long workflowId)
public java.util.Map getProperties(InfoGluePrincipal userPrincipal,
long workflowId)
userPrincipal - a user principalworkflowId - the ID of the desired workflow
public java.util.List getHistorySteps(InfoGluePrincipal userPrincipal,
long workflowId)
userPrincipal - a user principalworkflowId - the ID of the desired workflow
public java.util.List getCurrentSteps(InfoGluePrincipal userPrincipal,
long workflowId)
userPrincipal - a user principalworkflowId - the Id of the desired workflow
public java.util.List getAllSteps(InfoGluePrincipal userPrincipal,
long workflowId)
userPrincipal - an InfoGluePrincipal representing a system userworkflowId - a workflowId
public BaseEntityVO getNewVO()
new to create an instance.
getNewVO in class BaseController
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||