org.alfresco.web.bean.workflow
Class WorkflowBean

java.lang.Object
  extended by org.alfresco.web.bean.workflow.WorkflowBean
All Implemented Interfaces:
java.io.Serializable

public class WorkflowBean
extends java.lang.Object
implements java.io.Serializable

Managed bean used for providing support for the workflow task dashlets

See Also:
Serialized Form

Field Summary
protected  java.util.List activeTasks
           
static java.lang.String BEAN_NAME
           
protected  java.util.List completedTasks
           
protected  NavigationBean navigationBean
           
protected  java.util.List pooledTasks
           
protected  java.util.List tasks
           
 
Constructor Summary
WorkflowBean()
           
 
Method Summary
protected  TransientMapNode createTask(org.alfresco.service.cmr.workflow.WorkflowTask task)
          Creates and populates a TransientNode to represent the given workflow task from the repository workflow engine
 java.util.List getAllActiveTasks()
          Returns a list of nodes representing the "all" active tasks.
protected  org.alfresco.service.cmr.repository.NodeService getNodeService()
           
 java.util.List getPooledTasks()
          Returns a list of nodes representing the "pooled" to do tasks the current user has.
 java.util.List getTasksCompleted()
          Returns a list of nodes representing the completed tasks the current user has.
 java.util.List getTasksToDo()
          Returns a list of nodes representing the to do tasks the current user has.
protected  org.alfresco.service.cmr.workflow.WorkflowService getWorkflowService()
           
 void setNavigationBean(NavigationBean navigationBean)
          Sets the navigation bean to use
 void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
          Sets the node service to use
 void setupTaskDialog(javax.faces.event.ActionEvent event)
           
 void setupTaskDialog(java.lang.String id, java.lang.String type)
           
 void setWorkflowService(org.alfresco.service.cmr.workflow.WorkflowService workflowService)
          Sets the workflow service to use
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

navigationBean

protected NavigationBean navigationBean

tasks

protected java.util.List tasks

activeTasks

protected java.util.List activeTasks

pooledTasks

protected java.util.List pooledTasks

completedTasks

protected java.util.List completedTasks

BEAN_NAME

public static final java.lang.String BEAN_NAME
See Also:
Constant Field Values
Constructor Detail

WorkflowBean

public WorkflowBean()
Method Detail

getAllActiveTasks

public java.util.List getAllActiveTasks()
Returns a list of nodes representing the "all" active tasks.

Returns:
List of all active tasks

getPooledTasks

public java.util.List getPooledTasks()
Returns a list of nodes representing the "pooled" to do tasks the current user has.

Returns:
List of to do tasks

getTasksToDo

public java.util.List getTasksToDo()
Returns a list of nodes representing the to do tasks the current user has.

Returns:
List of to do tasks

getTasksCompleted

public java.util.List getTasksCompleted()
Returns a list of nodes representing the completed tasks the current user has.

Returns:
List of completed tasks

setNavigationBean

public void setNavigationBean(NavigationBean navigationBean)
Sets the navigation bean to use

Parameters:
navigationBean - The NavigationBean to set.

setWorkflowService

public void setWorkflowService(org.alfresco.service.cmr.workflow.WorkflowService workflowService)
Sets the workflow service to use

Parameters:
workflowService - WorkflowService instance

getWorkflowService

protected org.alfresco.service.cmr.workflow.WorkflowService getWorkflowService()

setNodeService

public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Sets the node service to use

Parameters:
nodeService - NodeService instance

getNodeService

protected org.alfresco.service.cmr.repository.NodeService getNodeService()

setupTaskDialog

public void setupTaskDialog(javax.faces.event.ActionEvent event)

setupTaskDialog

public void setupTaskDialog(java.lang.String id,
                            java.lang.String type)

createTask

protected TransientMapNode createTask(org.alfresco.service.cmr.workflow.WorkflowTask task)
Creates and populates a TransientNode to represent the given workflow task from the repository workflow engine

Parameters:
task - The task to create a representation of


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.