@Name(value="taskActions") @Scope(value=CONVERSATION) public class TaskActionsBean extends DocumentContextBoundActionBean
TaskService
in document context cache.Modifier and Type | Field and Description |
---|---|
static String |
TASKS_CACHE_RESET |
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) |
onContextChange
public static final String TASKS_CACHE_RESET
@Factory(value="currentSingleTasks", scope=EVENT) public List<Task> getCurrentDocumentTasks() throws ClientException
ClientException
@Factory(value="currentDashBoardItems", scope=EVENT) public List<DashBoardItem> getCurrentDashBoardItems() throws ClientException
ClientException
@Factory(value="currentDashBoardItemsExceptPublishingTasks", scope=EVENT) public List<DashBoardItem> getCurrentDashBoardItemsExceptPublishingTasks() throws ClientException
ClientException
public String getComment()
public void setComment(String comment)
public void acceptTask(Task task) throws ClientException
ClientException
public void acceptTask(Task task, String comment) throws ClientException
ClientException
public void rejectTask(Task task) throws ClientException
ClientException
public void rejectTask(Task task, String comment) throws ClientException
ClientException
public void resetBeanCache(DocumentModel newCurrentDocumentModel)
@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 © 2015 Nuxeo SA. All rights reserved.