Package pro.taskana.task.api.models
Interface TaskSummary
-
- All Known Subinterfaces:
Task
- All Known Implementing Classes:
TaskImpl,TaskSummaryImpl
public interface TaskSummaryInterface for TaskSummary. This is a specific short model-object which only contains the most important information.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidaddSecondaryObjectReference(String company, String system, String systemInstance, String type, String value)Add anObjectReferenceto the list of secondaryObjectReferences.
NULL will be ignored and an ObjectReference with the same ID will be replaced by the newer one.voidaddSecondaryObjectReference(ObjectReference objectReference)Add anObjectReferenceto the list of secondaryObjectReferences.
NULL will be ignored and an ObjectReference with the same ID will be replaced by the newer one.TaskSummarycopy()Duplicates this TaskSummary without the internal and external id.List<AttachmentSummary>getAttachmentSummaries()Gets theattachmentSummariesof the Task.StringgetBusinessProcessId()Gets the businessProcessId of the Task.InstantgetClaimed()Gets the time when the Task was claimed.ClassificationSummarygetClassificationSummary()Gets theClassificationSummaryof the Task.InstantgetCompleted()Gets the time when the Task was completed.InstantgetCreated()Gets the time when the task was created.StringgetCreator()Gets the name of the creator of the Task.StringgetCustomAttribute(TaskCustomField customField)Deprecated.UsegetCustomField(TaskCustomField)insteadStringgetCustomField(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.intgetManualPriority()Gets the manualPriority 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 primaryObjectReferenceof the Task.intgetPriority()Gets the priority of the Task.InstantgetReceived()Gets the time when the surrounding process was started.List<ObjectReference>getSecondaryObjectReferences()Gets the secondaryObjectReferences of the Task.TaskStategetState()Gets the state of the Task.WorkbasketSummarygetWorkbasketSummary()Gets theWorkbasketSummaryof the Task.booleanisManualPriorityActive()Returns whether the Task is prioritized manually.booleanisRead()Gets the isRead flag of the Task.booleanisTransferred()Gets the isTransferred flag of the Task.ObjectReferenceremoveSecondaryObjectReference(String objectReferenceID)Removes a secondaryObjectReferenceof the current Task locally, when the ID is represented and does return the removedObjectReferenceor null if there was no match.
-
-
-
Method Detail
-
getId
String getId()
Gets the id of the Task.- Returns:
- taskId
-
getExternalId
String getExternalId()
Gets the external id of the Task.- Returns:
- the external Id
-
getCreator
String getCreator()
Gets the name of the creator of the Task.- Returns:
- creator
-
getCreated
Instant getCreated()
Gets the time when the task was created.- Returns:
- the created
Instant
-
getClaimed
Instant getClaimed()
Gets the time when the Task was claimed.- Returns:
- the claimed
Instant
-
getCompleted
Instant getCompleted()
Gets the time when the Task was completed.- Returns:
- the completed
Instant
-
getModified
Instant getModified()
Gets the time when the Task was last modified.- Returns:
- the last modified
Instant
-
getPlanned
Instant getPlanned()
Gets the time when the Task is planned to be executed.- Returns:
- the planned
Instant
-
getReceived
Instant getReceived()
Gets the time when the surrounding process was started.- Returns:
- the received
Instant
-
getName
String getName()
Gets the name of the Task.- Returns:
- the Task's name
-
getNote
String getNote()
Gets the note attached to the Task.- Returns:
- the Task's note
-
getDescription
String getDescription()
Gets the description of the Task.- Returns:
- the Task's description
-
getPriority
int getPriority()
Gets the priority of the Task.- Returns:
- the Task's priority
-
getManualPriority
int getManualPriority()
Gets 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.- Returns:
- the manualPriority of the Task
-
getState
TaskState getState()
Gets the state of the Task.- Returns:
- the Task's state
-
getClassificationSummary
ClassificationSummary getClassificationSummary()
Gets theClassificationSummaryof the Task.- Returns:
- the Task's
ClassificationSummary
-
getWorkbasketSummary
WorkbasketSummary getWorkbasketSummary()
Gets theWorkbasketSummaryof the Task.- Returns:
- the Task's
WorkbasketSummary
-
getAttachmentSummaries
List<AttachmentSummary> getAttachmentSummaries()
Gets theattachmentSummariesof the Task.- Returns:
- the Task's
attachmentSummaries
-
getSecondaryObjectReferences
List<ObjectReference> getSecondaryObjectReferences()
Gets the secondaryObjectReferences of the Task.- Returns:
- the Task's secondary
ObjectReferences
-
addSecondaryObjectReference
void addSecondaryObjectReference(ObjectReference objectReference)
Add anObjectReferenceto the list of secondaryObjectReferences.
NULL will be ignored and an ObjectReference with the same ID will be replaced by the newer one.- Parameters:
objectReference- the secondaryobjectReferenceto be added to the Task
-
addSecondaryObjectReference
void addSecondaryObjectReference(String company, String system, String systemInstance, String type, String value)
Add anObjectReferenceto the list of secondaryObjectReferences.
NULL will be ignored and an ObjectReference with the same ID will be replaced by the newer one.- Parameters:
company- of theobjectReferenceto be added to the Tasksystem- of theobjectReferenceto be added to the TasksystemInstance- of theobjectReferenceto be added to the Tasktype- of theobjectReferenceto be added to the Taskvalue- of theobjectReferenceto be added to the Task
-
removeSecondaryObjectReference
ObjectReference removeSecondaryObjectReference(String objectReferenceID)
Removes a secondaryObjectReferenceof the current Task locally, when the ID is represented and does return the removedObjectReferenceor null if there was no match.
The changed Task need to be updated calling theTaskService.updateTask(Task).- Parameters:
objectReferenceID- ID of theObjectReferencewhich should be removed.- Returns:
- the
ObjectReferencewhich will be removed after updating OR null if there was no matchingObjectReference
-
getDomain
String getDomain()
Gets the domain of the Task.- Returns:
- the Task's domain
-
getBusinessProcessId
String getBusinessProcessId()
Gets the businessProcessId of the Task.- Returns:
- the Task's businessProcessId
-
getParentBusinessProcessId
String getParentBusinessProcessId()
Gets the parentBusinessProcessId of the Task.- Returns:
- the Task's parentBusinessProcessId
-
getOwner
String getOwner()
Gets the owner of the Task.- Returns:
- the Task's owner
-
getOwnerLongName
String getOwnerLongName()
Gets the owner's long name of the Task.- Returns:
- the long name of the Task owner
-
getPrimaryObjRef
ObjectReference getPrimaryObjRef()
Gets the primaryObjectReferenceof the Task.- Returns:
- the Task's primary
ObjectReference
-
isRead
boolean isRead()
Gets the isRead flag of the Task.- Returns:
- the Task's isRead flag
-
isTransferred
boolean isTransferred()
Gets the isTransferred flag of the Task.- Returns:
- the Task's isTransferred flag.
-
isManualPriorityActive
boolean isManualPriorityActive()
Returns whether the Task is prioritized manually. That means that the priority is set to the value of the manualPriority of the Task.- Returns:
- true, if Tasks are prioritized manually; false otherwise
-
getCustomAttribute
String getCustomAttribute(TaskCustomField customField)
Deprecated.UsegetCustomField(TaskCustomField)insteadGets the custom attribute of the Task.- Parameters:
customField- identifies which custom attribute is requested.- Returns:
- the value for the given customField
-
getCustomField
String getCustomField(TaskCustomField customField)
Gets the custom attribute of the task.- Parameters:
customField- identifies which custom attribute is requested.- Returns:
- the value for the given customField
-
copy
TaskSummary copy()
Duplicates this TaskSummary without the internal and external id.- Returns:
- a copy of this TaskSummary
-
-