public class TaskImpl extends Object implements Task
Task.TaskVariableNameTASK_PROVIDER_KEY| Constructor and Description | 
|---|
TaskImpl(DocumentModel doc)  | 
public TaskImpl(DocumentModel doc)
public DocumentModel getDocument()
getDocument in interface Taskpublic String getTargetDocumentId()
getTargetDocumentId in interface Taskpublic List<String> getActors() throws ClientException
getActors in interface TaskClientExceptionpublic String getInitiator() throws ClientException
getInitiator in interface TaskClientExceptionpublic String getDescription() throws ClientException
getDescription in interface TaskClientExceptionpublic String getDirective() throws ClientException
getDirective in interface TaskClientExceptionpublic List<TaskComment> getComments() throws ClientException
getComments in interface TaskClientExceptionpublic String getName() throws ClientException
getName in interface TaskClientExceptionpublic String getType() throws ClientException
getType in interface TaskClientExceptionpublic String getProcessId() throws ClientException
getProcessId in interface TaskClientExceptionpublic Date getCreated() throws ClientException
getCreated in interface TaskClientExceptionpublic Boolean isCancelled() throws ClientException
isCancelled in interface TaskClientExceptionpublic Boolean hasEnded() throws ClientException
hasEnded in interface TaskClientExceptionpublic Boolean isOpened() throws ClientException
isOpened in interface TaskClientExceptionpublic Boolean isAccepted() throws ClientException
isAccepted in interface TaskClientExceptionpublic String getVariable(String key) throws ClientException
getVariable in interface TaskClientExceptionpublic Date getDueDate() throws ClientException
getDueDate in interface TaskClientExceptionpublic Map<String,String> getVariables() throws ClientException
getVariables in interface TaskClientExceptionpublic void setActors(List<String> users) throws ClientException
setActors in interface TaskClientExceptionpublic void setTargetDocumentId(String targetDocId) throws ClientException
setTargetDocumentId in interface TaskClientExceptionpublic void setDescription(String description) throws ClientException
setDescription in interface TaskClientExceptionpublic void setDirective(String directive) throws ClientException
setDirective in interface TaskClientExceptionpublic void setName(String name) throws ClientException
setName in interface TaskClientExceptionpublic void setProcessId(String processId) throws ClientException
setProcessId in interface TaskClientExceptionpublic void setType(String type) throws ClientException
setType in interface TaskClientExceptionpublic void setInitiator(String initiator) throws ClientException
setInitiator in interface TaskClientExceptionpublic void setDueDate(Date dueDate) throws ClientException
setDueDate in interface TaskClientExceptionpublic void setCreated(Date created) throws ClientException
setCreated in interface TaskClientExceptionpublic void cancel(CoreSession coreSession) throws ClientException
cancel in interface TaskClientExceptionpublic void end(CoreSession coreSession) throws ClientException
end in interface TaskClientExceptionpublic void setAccepted(Boolean accepted) throws ClientException
setAccepted in interface TaskClientExceptionpublic void setVariables(Map<String,String> variables) throws ClientException
setVariables in interface TaskClientExceptionpublic void setVariable(String key, String value) throws ClientException
setVariable in interface TaskClientExceptionpublic void addComment(String author, String text) throws ClientException
addComment in interface TaskClientExceptionpublic List<String> getDelegatedActors() throws ClientException
getDelegatedActors in interface TaskClientExceptionpublic void setDelegatedActors(List<String> delegatedActors)
setDelegatedActors in interface Taskpublic List<String> getTargetDocumentsIds() throws ClientException
getTargetDocumentsIds in interface TaskClientExceptionpublic void setTargetDocumentsIds(List<String> ids) throws ClientException
TasksetTargetDocumentsIds in interface TaskClientExceptionCopyright © 2015 Nuxeo SA. All rights reserved.