public class TaskImpl extends TaskSummaryImpl implements Task
attachmentSummaries, businessProcessId, claimed, classificationSummary, completed, created, creator, custom1, custom10, custom11, custom12, custom13, custom14, custom15, custom16, custom2, custom3, custom4, custom5, custom6, custom7, custom8, custom9, description, due, externalId, id, isRead, isTransferred, modified, name, note, owner, parentBusinessProcessId, planned, primaryObjRef, priority, state, workbasketSummaryCALLBACK_STATE| Constructor and Description |
|---|
TaskImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttachment(Attachment attachmentToAdd)
Add an attachment.
NULL will be ignored and an attachment with the same ID will be replaced by the newer one. |
TaskSummary |
asSummary()
Return a summary of the current Task.
|
protected boolean |
canEqual(Object other) |
TaskImpl |
copy()
Duplicates this TaskSummary without the internal and external id.
|
boolean |
equals(Object obj) |
List<Attachment> |
getAttachments()
Return the attachments for this task.
|
Map<String,String> |
getCallbackInfo()
Returns a Map of Callback info.
|
CallbackState |
getCallbackState() |
String |
getClassificationCategory()
Returns the category of the current classification.
|
String |
getClassificationId() |
String |
getClassificationKey() |
Map<String,String> |
getCustomAttributeMap()
Returns a Map of custom Attributes.
|
Map<String,String> |
getCustomAttributes() |
String |
getWorkbasketKey()
Returns the key of the Workbasket where the task is stored in.
|
int |
hashCode() |
Attachment |
removeAttachment(String attachmentId)
Removes an attachment of the current task locally, when the ID is represented and does return
the removed attachment or null if there was no match.
The changed Task need to be updated calling the TaskService.updateTask(Task). |
void |
setAttachments(List<Attachment> attachments) |
void |
setCallbackInfo(Map<String,String> callbackInfo)
Sets a Map of callback info.
|
void |
setCallbackState(CallbackState callbackState) |
void |
setClassificationCategory(String classificationCategory) |
void |
setClassificationKey(String classificationKey)
Sets the Classification key that - together with the Domain from this task's work basket -
selects the appropriate
Classification for this task. |
void |
setCustomAttribute(TaskCustomField customField,
String value)
Sets the value for custom Attribute.
|
void |
setCustomAttributeMap(Map<String,String> customAttributes)
Sets a Map of custom Attributes.
|
void |
setCustomAttributes(Map<String,String> customAttributes) |
void |
setWorkbasketKey(String workbasketKey) |
String |
toString() |
addAttachmentSummary, getAttachmentSummaries, getBusinessProcessId, getClaimed, getClassificationSummary, getClassificationSummaryImpl, getCompleted, getCreated, getCreator, getCustom1, getCustom10, getCustom11, getCustom12, getCustom13, getCustom14, getCustom15, getCustom16, getCustom2, getCustom3, getCustom4, getCustom5, getCustom6, getCustom7, getCustom8, getCustom9, getCustomAttribute, getDescription, getDomain, getDue, getExternalId, getId, getModified, getName, getNote, getOwner, getParentBusinessProcessId, getPlanned, getPrimaryObjRef, getPriority, getState, getWorkbasketSummary, getWorkbasketSummaryImpl, isRead, isTransferred, setAttachmentSummaries, setBusinessProcessId, setClaimed, setClassificationSummary, setClassificationSummaryImpl, setCompleted, setCreated, setCreator, setCustom1, setCustom10, setCustom11, setCustom12, setCustom13, setCustom14, setCustom15, setCustom16, setCustom2, setCustom3, setCustom4, setCustom5, setCustom6, setCustom7, setCustom8, setCustom9, setDescription, setDomain, setDue, setExternalId, setId, setModified, setName, setNote, setOwner, setParentBusinessProcessId, setPlanned, setPrimaryObjRef, setPriority, setRead, setState, setTransferred, setWorkbasketSummary, setWorkbasketSummaryImplclone, finalize, getClass, notify, notifyAll, wait, wait, waitsetBusinessProcessId, setDescription, setDue, setExternalId, setName, setNote, setOwner, setParentBusinessProcessId, setPlanned, setPrimaryObjRefgetAttachmentSummaries, getBusinessProcessId, getClaimed, getClassificationSummary, getCompleted, getCreated, getCreator, getCustomAttribute, getDescription, getDomain, getDue, getExternalId, getId, getModified, getName, getNote, getOwner, getParentBusinessProcessId, getPlanned, getPrimaryObjRef, getPriority, getState, getWorkbasketSummary, isRead, isTransferredpublic String getClassificationId()
public TaskImpl copy()
TaskSummarycopy in interface Taskcopy in interface TaskSummarycopy in class TaskSummaryImplpublic String getClassificationKey()
public void setClassificationKey(String classificationKey)
TaskClassification for this task.setClassificationKey in interface TaskclassificationKey - the classification key for the taskpublic String getWorkbasketKey()
TaskgetWorkbasketKey in interface Taskpublic void setWorkbasketKey(String workbasketKey)
public Map<String,String> getCustomAttributeMap()
TaskgetCustomAttributeMap in interface TaskMappublic void setCustomAttributeMap(Map<String,String> customAttributes)
TasksetCustomAttributeMap in interface TaskcustomAttributes - a Map that contains the custom attributespublic CallbackState getCallbackState()
public void setCallbackState(CallbackState callbackState)
public Map<String,String> getCallbackInfo()
TaskgetCallbackInfo in interface TaskMappublic void setCallbackInfo(Map<String,String> callbackInfo)
TasksetCallbackInfo in interface TaskcallbackInfo - a Map that contains the callback infopublic void setCustomAttribute(TaskCustomField customField, String value)
TasksetCustomAttribute in interface TaskcustomField - identifies which custom attribute is to be set.value - the value of the custom attribute to be setpublic void addAttachment(Attachment attachmentToAdd)
TaskaddAttachment in interface TaskattachmentToAdd - the attachment to be added to the taskpublic List<Attachment> getAttachments()
TaskgetAttachments in interface Tasklist of attachments for this taskpublic void setAttachments(List<Attachment> attachments)
public TaskSummary asSummary()
Taskpublic Attachment removeAttachment(String attachmentId)
TaskTaskService.updateTask(Task).removeAttachment in interface TaskattachmentId - ID of the attachment which should be removed.public String getClassificationCategory()
TaskgetClassificationCategory in interface Taskpublic void setClassificationCategory(String classificationCategory)
protected boolean canEqual(Object other)
canEqual in class TaskSummaryImplpublic int hashCode()
hashCode in class TaskSummaryImplpublic boolean equals(Object obj)
equals in class TaskSummaryImplpublic String toString()
toString in class TaskSummaryImplCopyright © 2020. All rights reserved.