|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.infoglue.cms.controllers.kernel.impl.simple.BaseController
org.infoglue.cms.controllers.kernel.impl.simple.WorkflowController
public class WorkflowController
This controller acts as the api towards the OSWorkflow Workflow-engine.
| Method Summary | |
|---|---|
static java.util.Map |
createWorkflowParameters(javax.servlet.http.HttpServletRequest request)
TODO: move; used by tests + CreateWorkflowInstanceAction |
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. |
boolean |
getIsAccessApproved(java.lang.String workflowName,
InfoGluePrincipal infoGluePrincipal)
This method returns true if the user should have access to the contentTypeDefinition sent in. |
java.util.List |
getMyCurrentWorkflowVOList(InfoGluePrincipal userPrincipal)
Returns the workflows owned by the specified principal. |
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,
java.util.Map inputs)
|
WorkflowVO |
invokeAction(InfoGluePrincipal principal,
long workflowId,
int actionId,
java.util.Map inputs)
Invokes an action on a workflow for a given user and request |
| Methods inherited from class org.infoglue.cms.controllers.kernel.impl.simple.BaseController |
|---|
beginTransaction, beginTransaction, closeDatabase, commitTransaction, createEntity, createEntity, createQuery, deleteEntity, deleteEntity, deleteEntity, deleteEntity, executeQuery, executeQuery, executeQuery, executeQuery, getAllObjects, getAllVOObjects, getAllVOObjects, getAllVOObjects, getAllVOObjects, getLogger, getObjectWithId, getObjectWithId, getObjectWithIdAsReadOnly, getVOWithId, getVOWithId, getVOWithId, getVOWithId, intercept, intercept, rollbackTransaction, toModifiableVOList, toVOList, updateEntity, updateEntity, updateEntity, updateEntity, validateEntity |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static WorkflowController getController()
public static java.util.Map createWorkflowParameters(javax.servlet.http.HttpServletRequest request)
public WorkflowVO initializeWorkflow(InfoGluePrincipal principal,
java.lang.String name,
int actionId,
java.util.Map inputs)
throws SystemException
principal - the user principal representing the desired username - the name of the workflow to create.actionId - the ID of the initial actioninputs - the inputs to the workflow
SystemException - if an error occurs while initiaizing the workflow
public java.util.List getAvailableWorkflowVOList(InfoGluePrincipal userPrincipal)
throws SystemException
userPrincipal - a user principal
SystemException
public boolean getIsAccessApproved(java.lang.String workflowName,
InfoGluePrincipal infoGluePrincipal)
throws SystemException
SystemException
public java.util.List getCurrentWorkflowVOList(InfoGluePrincipal userPrincipal)
throws SystemException
userPrincipal - a user principal
SystemException - if an error occurs while finding the current workflows
public java.util.List getMyCurrentWorkflowVOList(InfoGluePrincipal userPrincipal)
throws SystemException
userPrincipal - a user principal.
SystemException - if an error occurs while finding the workflows
public WorkflowVO invokeAction(InfoGluePrincipal principal,
long workflowId,
int actionId,
java.util.Map inputs)
throws com.opensymphony.workflow.WorkflowException
principal - the user principalworkflowId - the ID of the desired workflowactionId - the ID of the desired actioninputs - the inputs to the workflow
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 | ||||||||