@Name(value="taskActions") @Scope(value=CONVERSATION) public class TaskActionsBean extends DocumentContextBoundActionBean
TaskService
in document context cache.Modifier and Type | Field and Description |
---|---|
protected String |
comment |
protected ContentViewActions |
contentViewActions |
protected CoreSession |
documentManager |
protected org.jboss.seam.faces.FacesMessages |
facesMessages |
protected List<DashBoardItem> |
items |
protected org.jboss.seam.international.LocaleSelector |
localeSelector |
protected NavigationContext |
navigationContext |
protected ResourcesAccessor |
resourcesAccessor |
protected List<Task> |
tasks |
static String |
TASKS_CACHE_RESET |
protected TaskService |
taskService |
Constructor and Description |
---|
TaskActionsBean() |
Modifier and Type | Method and Description |
---|---|
void |
acceptTask(Task task) |
void |
acceptTask(Task task,
String comment) |
String |
getComment() |
List<DashBoardItem> |
getCurrentDashBoardItems() |
List<DashBoardItem> |
getCurrentDashBoardItemsExceptPublishingTasks() |
List<Task> |
getCurrentDocumentTasks() |
void |
rejectTask(Task task) |
void |
rejectTask(Task task,
String comment) |
void |
resetBeanCache(DocumentModel newCurrentDocumentModel) |
void |
resetCache() |
void |
resetTasksCache() |
void |
setComment(String comment) |
getCurrentDocument, onContextChange
public static final String TASKS_CACHE_RESET
@In(create=true, required=false) protected transient CoreSession documentManager
@In(create=true) protected ContentViewActions contentViewActions
@In(create=true) protected transient TaskService taskService
@In(create=true) protected transient NavigationContext navigationContext
@In(create=true, required=false) protected org.jboss.seam.faces.FacesMessages facesMessages
@In(create=true) protected ResourcesAccessor resourcesAccessor
@In(create=true) protected transient org.jboss.seam.international.LocaleSelector localeSelector
protected List<DashBoardItem> items
public TaskActionsBean()
@Factory(value="currentSingleTasks", scope=EVENT) public List<Task> getCurrentDocumentTasks()
@Factory(value="currentDashBoardItems", scope=EVENT) public List<DashBoardItem> getCurrentDashBoardItems()
@Factory(value="currentDashBoardItemsExceptPublishingTasks", scope=EVENT) public List<DashBoardItem> getCurrentDashBoardItemsExceptPublishingTasks()
public String getComment()
public void setComment(String comment)
public void acceptTask(Task task)
public void acceptTask(Task task, String comment)
public void rejectTask(Task task)
public void rejectTask(Task task, String comment)
public void resetBeanCache(DocumentModel newCurrentDocumentModel)
resetBeanCache
in class DocumentContextBoundActionBean
@Observer(value={"workflowProcessEnded","workflowNewProcessStarted","workflowTaskStart","workflowTaskStop","workflowTaskRejected","workflowUserAssignmentChanged","workflowTaskReassigned","workflowTaskDelegated","workflowTaskCompleted","workflowTaskRemoved","workItemsListLoaded","workflowTasksComputed","workflowAbandoned","workflowProcessCanceled","domainSelectionChanged","documentPublicationRejected","documentPublished"}, create=false) @BypassInterceptors public void resetCache()
@Observer(value="tasksCacheReset") public void resetTasksCache()
Copyright © 2016 Nuxeo SA. All rights reserved.