Package pro.taskana.task.internal.models
Class TaskSummaryImpl
- java.lang.Object
-
- pro.taskana.task.internal.models.TaskSummaryImpl
-
- All Implemented Interfaces:
TaskSummary
- Direct Known Subclasses:
TaskImpl
public class TaskSummaryImpl extends Object implements TaskSummary
Entity which contains the most important information about a Task.
-
-
Field Summary
-
Fields inherited from interface pro.taskana.task.api.models.TaskSummary
DEFAULT_MANUAL_PRIORITY
-
-
Constructor Summary
Constructors Modifier Constructor Description TaskSummaryImpl()protectedTaskSummaryImpl(TaskSummaryImpl copyFrom)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddAttachmentSummary(AttachmentSummary attachmentSummary)voidaddSecondaryObjectReference(String company, String system, String systemInstance, String type, String value)Add an ObjectReference to the List of secondary ObjectReferences.
NULL will be ignored and an ObjectReference with the same id will be replaced by the newer one.voidaddSecondaryObjectReference(ObjectReference objectReferenceToAdd)Add an ObjectReference to the List of secondary objectReferences.
NULL will be ignored and an ObjectReference with the same id will be replaced by the newer one.protected booleancanEqual(Object other)TaskSummaryImplcopy()Duplicates this TaskSummary without the internal and external id.booleanequals(Object obj)List<AttachmentSummary>getAttachmentSummaries()Returns the attachmentSummaries of the Task.StringgetBusinessProcessId()Returns the businessProcessId of the Task.InstantgetClaimed()Returns the time when the Task was claimed.ClassificationSummarygetClassificationSummary()Returns the ClassificationSummary of the Task.ClassificationSummaryImplgetClassificationSummaryImpl()InstantgetCompleted()Returns the time when the Task was completed.InstantgetCreated()Returns the time when the Task was created.StringgetCreator()Returns the name of the creator of the Task.StringgetCustom1()StringgetCustom10()StringgetCustom11()StringgetCustom12()StringgetCustom13()StringgetCustom14()StringgetCustom15()StringgetCustom16()StringgetCustom2()StringgetCustom3()StringgetCustom4()StringgetCustom5()StringgetCustom6()StringgetCustom7()StringgetCustom8()StringgetCustom9()StringgetCustomAttribute(TaskCustomField customField)Deprecated.StringgetCustomField(TaskCustomField customField)Returns the value of the specified TaskCustomField of the Task.StringgetDescription()Returns the description of the Task.StringgetDomain()Returns the domain of the Task.InstantgetDue()Returns the time when the Task is due.StringgetExternalId()Returns the externalId of the Task.StringgetId()Returns the id of the Task.intgetManualPriority()Gets the manualPriority of the Task.InstantgetModified()Returns the time when the Task was last modified.StringgetName()Returns the name of the Task.StringgetNote()Returns the note attached to the Task.StringgetOwner()Returns the owner of the Task.StringgetOwnerLongName()Returns long name of the owner of the Task.StringgetParentBusinessProcessId()Returns the parentBusinessProcessId of the Task.InstantgetPlanned()Returns the time when the Task is planned to be executed.ObjectReferencegetPrimaryObjRef()Returns the primary ObjectReference of the Task.ObjectReferenceImplgetPrimaryObjRefImpl()intgetPriority()Returns the priority of the Task.InstantgetReceived()Returns the time when the surrounding process was started.List<ObjectReference>getSecondaryObjectReferences()Returns the secondaryObjectReferences of the Task.TaskStategetState()Returns the state of the Task.WorkbasketSummarygetWorkbasketSummary()Returns the WorkbasketSummary of the Task.WorkbasketSummaryImplgetWorkbasketSummaryImpl()inthashCode()booleanisManualPriorityActive()Returns whether the Task is prioritized manually.booleanisRead()Returns the isRead flag of the Task.booleanisTransferred()Returns the isTransferred flag of the Task.ObjectReferenceremoveSecondaryObjectReference(String objectReferenceId)Removes a secondary ObjectReference of the current Task locally, when the ID is represented and does return the removed ObjectReference or null if there was no match.voidsetAttachmentSummaries(List<AttachmentSummary> attachmentSummaries)voidsetBusinessProcessId(String businessProcessId)voidsetClaimed(Instant claimed)voidsetClassificationSummary(ClassificationSummary classificationSummary)voidsetClassificationSummaryImpl(ClassificationSummaryImpl classificationSummary)voidsetCompleted(Instant completed)voidsetCreated(Instant created)voidsetCreator(String creator)voidsetCustom1(String custom1)voidsetCustom10(String custom10)voidsetCustom11(String custom11)voidsetCustom12(String custom12)voidsetCustom13(String custom13)voidsetCustom14(String custom14)voidsetCustom15(String custom15)voidsetCustom16(String custom16)voidsetCustom2(String custom2)voidsetCustom3(String custom3)voidsetCustom4(String custom4)voidsetCustom5(String custom5)voidsetCustom6(String custom6)voidsetCustom7(String custom7)voidsetCustom8(String custom8)voidsetCustom9(String custom9)voidsetDescription(String description)voidsetDomain(String domain)voidsetDue(Instant due)voidsetExternalId(String externalId)voidsetId(String id)voidsetManualPriority(int manualPriority)voidsetModified(Instant modified)voidsetName(String name)voidsetNote(String note)voidsetOwner(String owner)voidsetOwnerLongName(String ownerLongName)voidsetParentBusinessProcessId(String parentBusinessProcessId)voidsetPlanned(Instant planned)voidsetPrimaryObjRef(String company, String system, String systemInstance, String type, String value)voidsetPrimaryObjRef(ObjectReference primaryObjRef)voidsetPrimaryObjRefImpl(ObjectReferenceImpl objectReference)voidsetPriority(int priority)voidsetRead(boolean isRead)voidsetReceived(Instant received)voidsetSecondaryObjectReferences(List<ObjectReference> objectReferences)voidsetState(TaskState state)voidsetTransferred(boolean isTransferred)voidsetWorkbasketSummary(WorkbasketSummary workbasketSummary)voidsetWorkbasketSummaryImpl(WorkbasketSummaryImpl workbasketSummary)StringtoString()
-
-
-
Field Detail
-
id
protected String id
-
externalId
protected String externalId
-
received
protected Instant received
-
created
protected Instant created
-
claimed
protected Instant claimed
-
modified
protected Instant modified
-
planned
protected Instant planned
-
due
protected Instant due
-
completed
protected Instant completed
-
name
protected String name
-
creator
protected String creator
-
note
protected String note
-
description
protected String description
-
priority
protected int priority
-
manualPriority
protected int manualPriority
-
state
protected TaskState state
-
classificationSummary
protected ClassificationSummary classificationSummary
-
workbasketSummary
protected WorkbasketSummary workbasketSummary
-
businessProcessId
protected String businessProcessId
-
parentBusinessProcessId
protected String parentBusinessProcessId
-
owner
protected String owner
-
ownerLongName
protected String ownerLongName
-
primaryObjRef
protected ObjectReference primaryObjRef
-
isRead
protected boolean isRead
-
isTransferred
protected boolean isTransferred
-
attachmentSummaries
protected List<AttachmentSummary> attachmentSummaries
-
secondaryObjectReferences
protected List<ObjectReference> secondaryObjectReferences
-
custom1
protected String custom1
-
custom2
protected String custom2
-
custom3
protected String custom3
-
custom4
protected String custom4
-
custom5
protected String custom5
-
custom6
protected String custom6
-
custom7
protected String custom7
-
custom8
protected String custom8
-
custom9
protected String custom9
-
custom10
protected String custom10
-
custom11
protected String custom11
-
custom12
protected String custom12
-
custom13
protected String custom13
-
custom14
protected String custom14
-
custom15
protected String custom15
-
custom16
protected String custom16
-
-
Constructor Detail
-
TaskSummaryImpl
public TaskSummaryImpl()
-
TaskSummaryImpl
protected TaskSummaryImpl(TaskSummaryImpl copyFrom)
-
-
Method Detail
-
getId
public String getId()
Description copied from interface:TaskSummaryReturns the id of the Task.- Specified by:
getIdin interfaceTaskSummary- Returns:
- taskId
-
setId
public void setId(String id)
-
getExternalId
public String getExternalId()
Description copied from interface:TaskSummaryReturns the externalId of the Task.- Specified by:
getExternalIdin interfaceTaskSummary- Returns:
- externalId
-
setExternalId
public void setExternalId(String externalId)
-
getCreator
public String getCreator()
Description copied from interface:TaskSummaryReturns the name of the creator of the Task.- Specified by:
getCreatorin interfaceTaskSummary- Returns:
- creator
-
setCreator
public void setCreator(String creator)
-
getCreated
public Instant getCreated()
Description copied from interface:TaskSummaryReturns the time when the Task was created.- Specified by:
getCreatedin interfaceTaskSummary- Returns:
- the created Instant
-
setCreated
public void setCreated(Instant created)
-
getClaimed
public Instant getClaimed()
Description copied from interface:TaskSummaryReturns the time when the Task was claimed.- Specified by:
getClaimedin interfaceTaskSummary- Returns:
- the claimed Instant
-
setClaimed
public void setClaimed(Instant claimed)
-
getCompleted
public Instant getCompleted()
Description copied from interface:TaskSummaryReturns the time when the Task was completed.- Specified by:
getCompletedin interfaceTaskSummary- Returns:
- the completed Instant
-
setCompleted
public void setCompleted(Instant completed)
-
getModified
public Instant getModified()
Description copied from interface:TaskSummaryReturns the time when the Task was last modified.- Specified by:
getModifiedin interfaceTaskSummary- Returns:
- the last modified Instant
-
setModified
public void setModified(Instant modified)
-
getPlanned
public Instant getPlanned()
Description copied from interface:TaskSummaryReturns the time when the Task is planned to be executed.- Specified by:
getPlannedin interfaceTaskSummary- Returns:
- the planned Instant
-
setPlanned
public void setPlanned(Instant planned)
-
getReceived
public Instant getReceived()
Description copied from interface:TaskSummaryReturns the time when the surrounding process was started.- Specified by:
getReceivedin interfaceTaskSummary- Returns:
- the received Instant
-
setReceived
public void setReceived(Instant received)
-
getDue
public Instant getDue()
Description copied from interface:TaskSummaryReturns the time when the Task is due.- Specified by:
getDuein interfaceTaskSummary- Returns:
- the due Instant
-
setDue
public void setDue(Instant due)
-
getName
public String getName()
Description copied from interface:TaskSummaryReturns the name of the Task.- Specified by:
getNamein interfaceTaskSummary- Returns:
- name
-
setName
public void setName(String name)
-
getNote
public String getNote()
Description copied from interface:TaskSummaryReturns the note attached to the Task.- Specified by:
getNotein interfaceTaskSummary- Returns:
- note
-
setNote
public void setNote(String note)
-
getDescription
public String getDescription()
Description copied from interface:TaskSummaryReturns the description of the Task.- Specified by:
getDescriptionin interfaceTaskSummary- Returns:
- description
-
setDescription
public void setDescription(String description)
-
getPriority
public int getPriority()
Description copied from interface:TaskSummaryReturns the priority of the Task.- Specified by:
getPriorityin interfaceTaskSummary- Returns:
- priority
-
setPriority
public void setPriority(int priority)
-
getManualPriority
public int getManualPriority()
Description copied from interface:TaskSummaryGets the manualPriority of the Task. If the value of manualPriority is zero or greater, the priority is automatically set to manualPriority. In this case, all computations of priority are disabled. If the value of manualPriority is negative, Tasks are not prioritized manually.- Specified by:
getManualPriorityin interfaceTaskSummary- Returns:
- the manualPriority of the Task
-
setManualPriority
public void setManualPriority(int manualPriority)
-
getState
public TaskState getState()
Description copied from interface:TaskSummaryReturns the state of the Task.- Specified by:
getStatein interfaceTaskSummary- Returns:
- state
-
setState
public void setState(TaskState state)
-
getClassificationSummary
public ClassificationSummary getClassificationSummary()
Description copied from interface:TaskSummaryReturns the ClassificationSummary of the Task.- Specified by:
getClassificationSummaryin interfaceTaskSummary- Returns:
- ClassificationSummary
-
setClassificationSummary
public void setClassificationSummary(ClassificationSummary classificationSummary)
-
getWorkbasketSummary
public WorkbasketSummary getWorkbasketSummary()
Description copied from interface:TaskSummaryReturns the WorkbasketSummary of the Task.- Specified by:
getWorkbasketSummaryin interfaceTaskSummary- Returns:
- WorkbasketSummary
-
setWorkbasketSummary
public void setWorkbasketSummary(WorkbasketSummary workbasketSummary)
-
getAttachmentSummaries
public List<AttachmentSummary> getAttachmentSummaries()
Description copied from interface:TaskSummaryReturns the attachmentSummaries of the Task.- Specified by:
getAttachmentSummariesin interfaceTaskSummary- Returns:
- attachmentSummaries
-
setAttachmentSummaries
public void setAttachmentSummaries(List<AttachmentSummary> attachmentSummaries)
-
getSecondaryObjectReferences
public List<ObjectReference> getSecondaryObjectReferences()
Description copied from interface:TaskSummaryReturns the secondaryObjectReferences of the Task.- Specified by:
getSecondaryObjectReferencesin interfaceTaskSummary- Returns:
- secondaryObjectReferences
-
setSecondaryObjectReferences
public void setSecondaryObjectReferences(List<ObjectReference> objectReferences)
-
getDomain
public String getDomain()
Description copied from interface:TaskSummaryReturns the domain of the Task.- Specified by:
getDomainin interfaceTaskSummary- Returns:
- domain
-
setDomain
public void setDomain(String domain)
-
getBusinessProcessId
public String getBusinessProcessId()
Description copied from interface:TaskSummaryReturns the businessProcessId of the Task.- Specified by:
getBusinessProcessIdin interfaceTaskSummary- Returns:
- businessProcessId
-
setBusinessProcessId
public void setBusinessProcessId(String businessProcessId)
-
getParentBusinessProcessId
public String getParentBusinessProcessId()
Description copied from interface:TaskSummaryReturns the parentBusinessProcessId of the Task.- Specified by:
getParentBusinessProcessIdin interfaceTaskSummary- Returns:
- parentBusinessProcessId
-
setParentBusinessProcessId
public void setParentBusinessProcessId(String parentBusinessProcessId)
-
getOwner
public String getOwner()
Description copied from interface:TaskSummaryReturns the owner of the Task.- Specified by:
getOwnerin interfaceTaskSummary- Returns:
- owner
-
setOwner
public void setOwner(String owner)
-
getOwnerLongName
public String getOwnerLongName()
Description copied from interface:TaskSummaryReturns long name of the owner of the Task.- Specified by:
getOwnerLongNamein interfaceTaskSummary- Returns:
- the long name of the owner
-
setOwnerLongName
public void setOwnerLongName(String ownerLongName)
-
getPrimaryObjRef
public ObjectReference getPrimaryObjRef()
Description copied from interface:TaskSummaryReturns the primary ObjectReference of the Task.- Specified by:
getPrimaryObjRefin interfaceTaskSummary- Returns:
- the Tasks primary ObjectReference
-
setPrimaryObjRef
public void setPrimaryObjRef(ObjectReference primaryObjRef)
-
setPrimaryObjRef
public void setPrimaryObjRef(String company, String system, String systemInstance, String type, String value)
-
isRead
public boolean isRead()
Description copied from interface:TaskSummaryReturns the isRead flag of the Task.- Specified by:
isReadin interfaceTaskSummary- Returns:
- the Tasks isRead flag
-
setRead
public void setRead(boolean isRead)
-
isTransferred
public boolean isTransferred()
Description copied from interface:TaskSummaryReturns the isTransferred flag of the Task.- Specified by:
isTransferredin interfaceTaskSummary- Returns:
- the Tasks isTransferred flag
-
setTransferred
public void setTransferred(boolean isTransferred)
-
getCustomAttribute
@Deprecated public String getCustomAttribute(TaskCustomField customField)
Deprecated.Description copied from interface:TaskSummaryReturns the value of the specified TaskCustomField of the Task.- Specified by:
getCustomAttributein interfaceTaskSummary- Parameters:
customField- identifies which TaskCustomField is requested- Returns:
- the value for the given customField
-
getCustomField
public String getCustomField(TaskCustomField customField)
Description copied from interface:TaskSummaryReturns the value of the specified TaskCustomField of the Task.- Specified by:
getCustomFieldin interfaceTaskSummary- Parameters:
customField- identifies which TaskCustomField is requested- Returns:
- the value for the given TaskCustomField
-
isManualPriorityActive
public boolean isManualPriorityActive()
Description copied from interface:TaskSummaryReturns whether the Task is prioritized manually. That means that the priority is set to the value of the manualPriority of the Task.- Specified by:
isManualPriorityActivein interfaceTaskSummary- Returns:
- true, if Tasks are prioritized manually; false otherwise
-
copy
public TaskSummaryImpl copy()
Description copied from interface:TaskSummaryDuplicates this TaskSummary without the internal and external id.- Specified by:
copyin interfaceTaskSummary- Returns:
- a copy of this TaskSummary
-
getWorkbasketSummaryImpl
public WorkbasketSummaryImpl getWorkbasketSummaryImpl()
-
setWorkbasketSummaryImpl
public void setWorkbasketSummaryImpl(WorkbasketSummaryImpl workbasketSummary)
-
addAttachmentSummary
public void addAttachmentSummary(AttachmentSummary attachmentSummary)
-
addSecondaryObjectReference
public void addSecondaryObjectReference(ObjectReference objectReferenceToAdd)
Description copied from interface:TaskSummaryAdd an ObjectReference to the List of secondary objectReferences.
NULL will be ignored and an ObjectReference with the same id will be replaced by the newer one.- Specified by:
addSecondaryObjectReferencein interfaceTaskSummary- Parameters:
objectReferenceToAdd- the secondary objectReference to be added to the Task
-
addSecondaryObjectReference
public void addSecondaryObjectReference(String company, String system, String systemInstance, String type, String value)
Description copied from interface:TaskSummaryAdd an ObjectReference to the List of secondary ObjectReferences.
NULL will be ignored and an ObjectReference with the same id will be replaced by the newer one.- Specified by:
addSecondaryObjectReferencein interfaceTaskSummary- Parameters:
company- of the objectReference to be added to the Tasksystem- of the objectReference to be added to the TasksystemInstance- of the objectReference to be added to the Tasktype- of the objectReference to be added to the Taskvalue- of the objectReference to be added to the Task
-
removeSecondaryObjectReference
public ObjectReference removeSecondaryObjectReference(String objectReferenceId)
Description copied from interface:TaskSummaryRemoves a secondary ObjectReference of the current Task locally, when the ID is represented and does return the removed ObjectReference or null if there was no match.
The changed Task need to be updated calling the TaskService.updateTask(Task).- Specified by:
removeSecondaryObjectReferencein interfaceTaskSummary- Parameters:
objectReferenceId- id of the ObjectReference which should be removed- Returns:
- the ObjectReference which will be removed after updating or null if there was no matching ObjectReference
-
getClassificationSummaryImpl
public ClassificationSummaryImpl getClassificationSummaryImpl()
-
setClassificationSummaryImpl
public void setClassificationSummaryImpl(ClassificationSummaryImpl classificationSummary)
-
getPrimaryObjRefImpl
public ObjectReferenceImpl getPrimaryObjRefImpl()
-
setPrimaryObjRefImpl
public void setPrimaryObjRefImpl(ObjectReferenceImpl objectReference)
-
getCustom1
public String getCustom1()
-
setCustom1
public void setCustom1(String custom1)
-
getCustom2
public String getCustom2()
-
setCustom2
public void setCustom2(String custom2)
-
getCustom3
public String getCustom3()
-
setCustom3
public void setCustom3(String custom3)
-
getCustom4
public String getCustom4()
-
setCustom4
public void setCustom4(String custom4)
-
getCustom5
public String getCustom5()
-
setCustom5
public void setCustom5(String custom5)
-
getCustom6
public String getCustom6()
-
setCustom6
public void setCustom6(String custom6)
-
getCustom7
public String getCustom7()
-
setCustom7
public void setCustom7(String custom7)
-
getCustom8
public String getCustom8()
-
setCustom8
public void setCustom8(String custom8)
-
getCustom9
public String getCustom9()
-
setCustom9
public void setCustom9(String custom9)
-
getCustom10
public String getCustom10()
-
setCustom10
public void setCustom10(String custom10)
-
getCustom11
public String getCustom11()
-
setCustom11
public void setCustom11(String custom11)
-
getCustom12
public String getCustom12()
-
setCustom12
public void setCustom12(String custom12)
-
getCustom13
public String getCustom13()
-
setCustom13
public void setCustom13(String custom13)
-
getCustom14
public String getCustom14()
-
setCustom14
public void setCustom14(String custom14)
-
getCustom15
public String getCustom15()
-
setCustom15
public void setCustom15(String custom15)
-
getCustom16
public String getCustom16()
-
setCustom16
public void setCustom16(String custom16)
-
canEqual
protected boolean canEqual(Object other)
-
-