|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.fulcrum.osworkflow.example.tools.WorkflowTool
A pull tool which provides lookups of workflows by delegating
to the configured Fulcrum WorkflowService
.
Constructor Summary | |
WorkflowTool()
Creates a new instance. |
Method Summary | |
org.apache.turbine.om.security.User |
getUser()
Retrieve the Turbine User object |
void |
init(java.lang.Object obj)
Initialize the tool with the RunData object. |
void |
refresh()
Remove the Turbine RunData object. |
Workflow |
retrieveWorkflow()
Retrieve Workflow |
Workflow |
retrieveWorkflow(org.apache.turbine.om.security.User user)
Retrieve Workflow of given User |
java.util.List |
retrieveWorkflows(java.lang.String status)
Returns all workflows that belong the user and have a certain status specified in the workflow xml file. |
void |
setUser(org.apache.turbine.om.security.User user)
Sets the Turbine User object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WorkflowTool()
PullService
.
Method Detail |
public final void init(java.lang.Object obj)
init
in interface org.apache.turbine.services.pull.ApplicationTool
public void refresh()
refresh
in interface org.apache.turbine.services.pull.ApplicationTool
public void setUser(org.apache.turbine.om.security.User user)
user
- The User object to setpublic org.apache.turbine.om.security.User getUser()
public java.util.List retrieveWorkflows(java.lang.String status) throws WorkflowException
status
- A string like 'Accepted'
WorkflowException
- is thrown if there is an error.public Workflow retrieveWorkflow() throws WorkflowException
WorkflowException
public Workflow retrieveWorkflow(org.apache.turbine.om.security.User user) throws WorkflowException
WorkflowException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |