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
Entity which contains the most important information about a Task.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<AttachmentSummary>protected Stringprotected Instantprotected ClassificationSummaryprotected Instantprotected Instantprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected Stringprotected Instantprotected Stringprotected Integerprotected Stringprotected booleanprotected booleanprotected intprotected Instantprotected Stringprotected Stringprotected intprotected Stringprotected Stringprotected Stringprotected Instantprotected ObjectReferenceprotected intprotected Instantprotected List<ObjectReference>protected TaskStateprotected WorkbasketSummaryFields inherited from interface pro.taskana.task.api.models.TaskSummary
DEFAULT_MANUAL_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttachmentSummary(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 booleancopy()Duplicates this TaskSummary without the internal and external id.booleanReturns the attachmentSummaries of the Task.Returns the businessProcessId of the Task.Returns the time when the Task was claimed.Returns the ClassificationSummary of the Task.Returns the time when the Task was completed.Returns the time when the Task was created.Returns the name of the creator of the Task.getCustomAttribute(TaskCustomField customField) Deprecated.getCustomField(TaskCustomField customField) Returns the value of the specified TaskCustomField of the Task.getCustomIntField(TaskCustomIntField customIntField) Returns the value of the specified TaskCustomIntField of the Task.Returns the description of the Task.Returns the domain of the Task.getDue()Returns the time when the Task is due.Returns the externalId of the Task.getId()Returns the id of the Task.intGets the manualPriority of the Task.Returns the time when the Task was last modified.getName()Returns the name of the Task.getNote()Returns the note attached to the Task.intReturns the count of the comments of the Task.getOwner()Returns the owner of the Task.Returns long name of the owner of the Task.Returns the parentBusinessProcessId of the Task.Returns the time when the Task is planned to be executed.Returns the primary ObjectReference of the Task.intReturns the priority of the Task.Returns the time when the surrounding process was started.Returns the secondaryObjectReferences of the Task.getState()Returns the state of the Task.Returns the WorkbasketSummary of the Task.inthashCode()booleanReturns whether the Task is prioritized manually.booleanisRead()Returns the isRead flag of the Task.booleanReturns the isTransferred flag of the Task.removeSecondaryObjectReference(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) voidsetCustomInt1(Integer customInt1) voidsetCustomInt2(Integer customInt2) voidsetCustomInt3(Integer customInt3) voidsetCustomInt4(Integer customInt4) voidsetCustomInt5(Integer customInt5) voidsetCustomInt6(Integer customInt6) voidsetCustomInt7(Integer customInt7) voidsetCustomInt8(Integer customInt8) voidsetDescription(String description) voidvoidvoidsetExternalId(String externalId) voidvoidvoidsetManualPriority(int manualPriority) voidsetModified(Instant modified) voidvoidvoidsetNumberOfComments(int numberOfComments) voidvoidsetOwnerLongName(String ownerLongName) voidsetParentBusinessProcessId(String parentBusinessProcessId) voidsetPlanned(Instant planned) voidvoidsetPrimaryObjRef(ObjectReference primaryObjRef) voidsetPrimaryObjRefImpl(ObjectReferenceImpl objectReference) voidsetPriority(int priority) voidsetRead(boolean isRead) voidsetReceived(Instant received) voidsetSecondaryObjectReferences(List<ObjectReference> objectReferences) voidvoidsetTransferred(boolean isTransferred) voidsetWorkbasketSummary(WorkbasketSummary workbasketSummary) voidsetWorkbasketSummaryImpl(WorkbasketSummaryImpl workbasketSummary) toString()
-
Field Details
-
id
-
externalId
-
received
-
created
-
claimed
-
modified
-
planned
-
due
-
completed
-
name
-
creator
-
note
-
description
-
priority
protected int priority -
manualPriority
protected int manualPriority -
state
-
numberOfComments
protected int numberOfComments -
classificationSummary
-
groupByCount
-
workbasketSummary
-
businessProcessId
-
parentBusinessProcessId
-
owner
-
ownerLongName
-
-
isRead
protected boolean isRead -
isTransferred
protected boolean isTransferred -
attachmentSummaries
-
secondaryObjectReferences
-
custom1
-
custom2
-
custom3
-
custom4
-
custom5
-
custom6
-
custom7
-
custom8
-
custom9
-
custom10
-
custom11
-
custom12
-
custom13
-
custom14
-
custom15
-
custom16
-
customInt1
-
customInt2
-
customInt3
-
customInt4
-
customInt5
-
customInt6
-
customInt7
-
customInt8
-
-
Constructor Details
-
TaskSummaryImpl
public TaskSummaryImpl() -
TaskSummaryImpl
-
-
Method Details
-
getId
Description copied from interface:TaskSummaryReturns the id of the Task.- Specified by:
getIdin interfaceTaskSummary- Returns:
- taskId
-
setId
-
getExternalId
Description copied from interface:TaskSummaryReturns the externalId of the Task.- Specified by:
getExternalIdin interfaceTaskSummary- Returns:
- externalId
-
setExternalId
-
getCreator
Description copied from interface:TaskSummaryReturns the name of the creator of the Task.- Specified by:
getCreatorin interfaceTaskSummary- Returns:
- creator
-
setCreator
-
getCreated
Description copied from interface:TaskSummaryReturns the time when the Task was created.- Specified by:
getCreatedin interfaceTaskSummary- Returns:
- the created Instant
-
setCreated
-
getClaimed
Description copied from interface:TaskSummaryReturns the time when the Task was claimed.- Specified by:
getClaimedin interfaceTaskSummary- Returns:
- the claimed Instant
-
setClaimed
-
getCompleted
Description copied from interface:TaskSummaryReturns the time when the Task was completed.- Specified by:
getCompletedin interfaceTaskSummary- Returns:
- the completed Instant
-
setCompleted
-
getModified
Description copied from interface:TaskSummaryReturns the time when the Task was last modified.- Specified by:
getModifiedin interfaceTaskSummary- Returns:
- the last modified Instant
-
setModified
-
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
-
getReceived
Description copied from interface:TaskSummaryReturns the time when the surrounding process was started.- Specified by:
getReceivedin interfaceTaskSummary- Returns:
- the received Instant
-
setReceived
-
getGroupByCount
Description copied from interface:TaskSummaryReturns the number of Tasks that are grouped together with this Task by a TaskQuery. It's only not NULL when using TaskQuery.groupByPor() or TaskQuery.groupBySor(String).- Specified by:
getGroupByCountin interfaceTaskSummary- Returns:
- the number of Tasks grouped toghether with this Task
-
getDue
Description copied from interface:TaskSummaryReturns the time when the Task is due.This instant denotes the last point in the allowed work time has ended or in short it is inclusive.
- Specified by:
getDuein interfaceTaskSummary- Returns:
- the due Instant
-
setDue
-
getName
Description copied from interface:TaskSummaryReturns the name of the Task.- Specified by:
getNamein interfaceTaskSummary- Returns:
- name
-
setName
-
getNote
Description copied from interface:TaskSummaryReturns the note attached to the Task.- Specified by:
getNotein interfaceTaskSummary- Returns:
- note
-
setNote
-
getDescription
Description copied from interface:TaskSummaryReturns the description of the Task.- Specified by:
getDescriptionin interfaceTaskSummary- Returns:
- description
-
setDescription
-
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
Description copied from interface:TaskSummaryReturns the state of the Task.- Specified by:
getStatein interfaceTaskSummary- Returns:
- state
-
setState
-
getNumberOfComments
public int getNumberOfComments()Description copied from interface:TaskSummaryReturns the count of the comments of the Task.- Specified by:
getNumberOfCommentsin interfaceTaskSummary- Returns:
- numberOfComments
-
setNumberOfComments
public void setNumberOfComments(int numberOfComments) -
getClassificationSummary
Description copied from interface:TaskSummaryReturns the ClassificationSummary of the Task.- Specified by:
getClassificationSummaryin interfaceTaskSummary- Returns:
- ClassificationSummary
-
setClassificationSummary
-
getWorkbasketSummary
Description copied from interface:TaskSummaryReturns the WorkbasketSummary of the Task.- Specified by:
getWorkbasketSummaryin interfaceTaskSummary- Returns:
- WorkbasketSummary
-
setWorkbasketSummary
-
getAttachmentSummaries
Description copied from interface:TaskSummaryReturns the attachmentSummaries of the Task.- Specified by:
getAttachmentSummariesin interfaceTaskSummary- Returns:
- attachmentSummaries
-
setAttachmentSummaries
-
getSecondaryObjectReferences
Description copied from interface:TaskSummaryReturns the secondaryObjectReferences of the Task.- Specified by:
getSecondaryObjectReferencesin interfaceTaskSummary- Returns:
- secondaryObjectReferences
-
setSecondaryObjectReferences
-
getDomain
Description copied from interface:TaskSummaryReturns the domain of the Task.- Specified by:
getDomainin interfaceTaskSummary- Returns:
- domain
-
setDomain
-
getBusinessProcessId
Description copied from interface:TaskSummaryReturns the businessProcessId of the Task.- Specified by:
getBusinessProcessIdin interfaceTaskSummary- Returns:
- businessProcessId
-
setBusinessProcessId
-
getParentBusinessProcessId
Description copied from interface:TaskSummaryReturns the parentBusinessProcessId of the Task.- Specified by:
getParentBusinessProcessIdin interfaceTaskSummary- Returns:
- parentBusinessProcessId
-
setParentBusinessProcessId
-
getOwner
Description copied from interface:TaskSummaryReturns the owner of the Task.- Specified by:
getOwnerin interfaceTaskSummary- Returns:
- owner
-
setOwner
-
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
-
getPrimaryObjRef
Description copied from interface:TaskSummaryReturns the primary ObjectReference of the Task.- Specified by:
getPrimaryObjRefin interfaceTaskSummary- Returns:
- the Tasks primary ObjectReference
-
setPrimaryObjRef
-
setPrimaryObjRef
-
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.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
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
-
getCustomIntField
Description copied from interface:TaskSummaryReturns the value of the specified TaskCustomIntField of the Task.- Specified by:
getCustomIntFieldin interfaceTaskSummary- Parameters:
customIntField- identifies which TaskCustomIntField is requested- Returns:
- the value for the given TaskCustomIntField
-
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
Description copied from interface:TaskSummaryDuplicates this TaskSummary without the internal and external id.- Specified by:
copyin interfaceTaskSummary- Returns:
- a copy of this TaskSummary
-
getWorkbasketSummaryImpl
-
setWorkbasketSummaryImpl
-
setGroupByCount
-
addAttachmentSummary
-
addSecondaryObjectReference
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
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
-
setClassificationSummaryImpl
-
getPrimaryObjRefImpl
-
setPrimaryObjRefImpl
-
getCustom1
-
setCustom1
-
getCustom2
-
setCustom2
-
getCustom3
-
setCustom3
-
getCustom4
-
setCustom4
-
getCustom5
-
setCustom5
-
getCustom6
-
setCustom6
-
getCustom7
-
setCustom7
-
getCustom8
-
setCustom8
-
getCustom9
-
setCustom9
-
getCustom10
-
setCustom10
-
getCustom11
-
setCustom11
-
getCustom12
-
setCustom12
-
getCustom13
-
setCustom13
-
getCustom14
-
setCustom14
-
getCustom15
-
setCustom15
-
getCustom16
-
setCustom16
-
getCustomInt1
-
setCustomInt1
-
getCustomInt2
-
setCustomInt2
-
getCustomInt3
-
setCustomInt3
-
getCustomInt4
-
setCustomInt4
-
getCustomInt5
-
setCustomInt5
-
getCustomInt6
-
setCustomInt6
-
getCustomInt7
-
setCustomInt7
-
getCustomInt8
-
setCustomInt8
-
canEqual
-
hashCode
public int hashCode() -
equals
-
toString
-