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
-
Constructor Summary
Constructors Modifier Constructor Description TaskSummaryImpl()protectedTaskSummaryImpl(TaskSummaryImpl copyFrom)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAttachmentSummary(AttachmentSummary attachmentSummary)protected booleancanEqual(Object other)TaskSummaryImplcopy()Duplicates this TaskSummary without the internal and external id.booleanequals(Object obj)List<AttachmentSummary>getAttachmentSummaries()Gets the attachment summaries of the task.StringgetBusinessProcessId()Gets the businessProcessId of the task.InstantgetClaimed()Gets the time when the task was claimed.ClassificationSummarygetClassificationSummary()Gets the classification summary of the task.ClassificationSummaryImplgetClassificationSummaryImpl()InstantgetCompleted()Gets the time when the task was completed.InstantgetCreated()Gets the time when the task was created.StringgetCreator()Gets the name of the task-creator.StringgetCustom1()StringgetCustom10()StringgetCustom11()StringgetCustom12()StringgetCustom13()StringgetCustom14()StringgetCustom15()StringgetCustom16()StringgetCustom2()StringgetCustom3()StringgetCustom4()StringgetCustom5()StringgetCustom6()StringgetCustom7()StringgetCustom8()StringgetCustom9()StringgetCustomAttribute(TaskCustomField customField)Gets the custom attribute of the task.StringgetDescription()Gets the description of the task.StringgetDomain()Gets the domain of the task.InstantgetDue()Gets the time when the task is due.StringgetExternalId()Gets the external id of the task.StringgetId()Gets the id of the task.InstantgetModified()Gets the time when the task was last modified.StringgetName()Gets the name of the task.StringgetNote()Gets the note attached to the task.StringgetOwner()Gets the owner of the task.StringgetOwnerLongName()Gets the owner's long name of the Task.StringgetParentBusinessProcessId()Gets the parentBusinessProcessId of the task.InstantgetPlanned()Gets the time when the task is planned to be executed.ObjectReferencegetPrimaryObjRef()Gets the primary ObjectReference of the task.intgetPriority()Gets the priority of the task.InstantgetReceived()Gets the time when when the surrounding process was started.TaskStategetState()Gets the state of the task.WorkbasketSummarygetWorkbasketSummary()Gets the workbasket summary of the task.WorkbasketSummaryImplgetWorkbasketSummaryImpl()inthashCode()booleanisRead()Gets the isRead flag of the task.booleanisTransferred()Gets the isTransferred flag of the task.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)voidsetModified(Instant modified)voidsetName(String name)voidsetNote(String note)voidsetOwner(String owner)voidsetOwnerLongName(String ownerLongName)voidsetParentBusinessProcessId(String parentBusinessProcessId)voidsetPlanned(Instant planned)voidsetPrimaryObjRef(ObjectReference primaryObjRef)voidsetPriority(int priority)voidsetRead(boolean isRead)voidsetReceived(Instant received)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
-
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
-
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:TaskSummaryGets 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:TaskSummaryGets the external id of the task.- Specified by:
getExternalIdin interfaceTaskSummary- Returns:
- the external Id
-
setExternalId
public void setExternalId(String externalId)
-
getCreator
public String getCreator()
Description copied from interface:TaskSummaryGets the name of the task-creator.- Specified by:
getCreatorin interfaceTaskSummary- Returns:
- creator
-
setCreator
public void setCreator(String creator)
-
getCreated
public Instant getCreated()
Description copied from interface:TaskSummaryGets 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:TaskSummaryGets 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:TaskSummaryGets 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:TaskSummaryGets 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:TaskSummaryGets 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:TaskSummaryGets the time when 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:TaskSummaryGets 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:TaskSummaryGets the name of the task.- Specified by:
getNamein interfaceTaskSummary- Returns:
- the task's name
-
setName
public void setName(String name)
-
getNote
public String getNote()
Description copied from interface:TaskSummaryGets the note attached to the task.- Specified by:
getNotein interfaceTaskSummary- Returns:
- the task's note
-
setNote
public void setNote(String note)
-
getDescription
public String getDescription()
Description copied from interface:TaskSummaryGets the description of the task.- Specified by:
getDescriptionin interfaceTaskSummary- Returns:
- the task's description
-
setDescription
public void setDescription(String description)
-
getPriority
public int getPriority()
Description copied from interface:TaskSummaryGets the priority of the task.- Specified by:
getPriorityin interfaceTaskSummary- Returns:
- the task's priority
-
setPriority
public void setPriority(int priority)
-
getState
public TaskState getState()
Description copied from interface:TaskSummaryGets the state of the task.- Specified by:
getStatein interfaceTaskSummary- Returns:
- the task's state
-
setState
public void setState(TaskState state)
-
getClassificationSummary
public ClassificationSummary getClassificationSummary()
Description copied from interface:TaskSummaryGets the classification summary of the task.- Specified by:
getClassificationSummaryin interfaceTaskSummary- Returns:
- the task's classificationSummary
-
setClassificationSummary
public void setClassificationSummary(ClassificationSummary classificationSummary)
-
getWorkbasketSummary
public WorkbasketSummary getWorkbasketSummary()
Description copied from interface:TaskSummaryGets the workbasket summary of the task.- Specified by:
getWorkbasketSummaryin interfaceTaskSummary- Returns:
- the task's workbasketSummary
-
setWorkbasketSummary
public void setWorkbasketSummary(WorkbasketSummary workbasketSummary)
-
getAttachmentSummaries
public List<AttachmentSummary> getAttachmentSummaries()
Description copied from interface:TaskSummaryGets the attachment summaries of the task.- Specified by:
getAttachmentSummariesin interfaceTaskSummary- Returns:
- the task's attachment summaries
-
setAttachmentSummaries
public void setAttachmentSummaries(List<AttachmentSummary> attachmentSummaries)
-
getDomain
public String getDomain()
Description copied from interface:TaskSummaryGets the domain of the task.- Specified by:
getDomainin interfaceTaskSummary- Returns:
- the task's domain
-
setDomain
public void setDomain(String domain)
-
getBusinessProcessId
public String getBusinessProcessId()
Description copied from interface:TaskSummaryGets the businessProcessId of the task.- Specified by:
getBusinessProcessIdin interfaceTaskSummary- Returns:
- the task's businessProcessId
-
setBusinessProcessId
public void setBusinessProcessId(String businessProcessId)
-
getParentBusinessProcessId
public String getParentBusinessProcessId()
Description copied from interface:TaskSummaryGets the parentBusinessProcessId of the task.- Specified by:
getParentBusinessProcessIdin interfaceTaskSummary- Returns:
- the task's parentBusinessProcessId
-
setParentBusinessProcessId
public void setParentBusinessProcessId(String parentBusinessProcessId)
-
getOwner
public String getOwner()
Description copied from interface:TaskSummaryGets the owner of the task.- Specified by:
getOwnerin interfaceTaskSummary- Returns:
- the task's owner
-
setOwner
public void setOwner(String owner)
-
getOwnerLongName
public String getOwnerLongName()
Description copied from interface:TaskSummaryGets the owner's long name of the Task.- Specified by:
getOwnerLongNamein interfaceTaskSummary- Returns:
- the long name of the Task owner
-
setOwnerLongName
public void setOwnerLongName(String ownerLongName)
-
getPrimaryObjRef
public ObjectReference getPrimaryObjRef()
Description copied from interface:TaskSummaryGets the primary ObjectReference of the task.- Specified by:
getPrimaryObjRefin interfaceTaskSummary- Returns:
- the task's primary ObjectReference
-
setPrimaryObjRef
public void setPrimaryObjRef(ObjectReference primaryObjRef)
-
isRead
public boolean isRead()
Description copied from interface:TaskSummaryGets the isRead flag of the task.- Specified by:
isReadin interfaceTaskSummary- Returns:
- the task's isRead flag
-
setRead
public void setRead(boolean isRead)
-
isTransferred
public boolean isTransferred()
Description copied from interface:TaskSummaryGets the isTransferred flag of the task.- Specified by:
isTransferredin interfaceTaskSummary- Returns:
- the task's isTransferred flag.
-
setTransferred
public void setTransferred(boolean isTransferred)
-
getCustomAttribute
public String getCustomAttribute(TaskCustomField customField)
Description copied from interface:TaskSummaryGets the custom attribute of the task.- Specified by:
getCustomAttributein interfaceTaskSummary- Parameters:
customField- identifies which custom attribute is requested.- Returns:
- the value for the given customField
-
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)
-
getClassificationSummaryImpl
public ClassificationSummaryImpl getClassificationSummaryImpl()
-
setClassificationSummaryImpl
public void setClassificationSummaryImpl(ClassificationSummaryImpl classificationSummary)
-
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)
-
-