@Name(value="taskActions") @Scope(value=CONVERSATION) public class TaskActionsBean extends DocumentContextBoundActionBean
TaskService
in document context cache.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 |
setComment(String comment) |
onContextChange
@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","workflowTaskCompleted","workflowTaskRemoved","workItemsListLoaded","workflowTasksComputed","workflowAbandoned","workflowProcessCanceled","domainSelectionChanged","documentPublicationRejected","documentPublished"}, create=false) @BypassInterceptors public void resetCache()
Copyright © 2011 Nuxeo SA. All Rights Reserved.