Package pro.taskana.task.api.models
Interface Attachment
- All Superinterfaces:
AttachmentSummary
- All Known Implementing Classes:
AttachmentImpl
Attachment-Interface to specify attributes of an Attachment.
-
Method Summary
Modifier and TypeMethodDescriptionReturns a summary of the current Attachment.copy()Duplicates this Attachment without the id and taskId.Returns the custom attributes of this Attachment.voidsetChannel(String channel) Sets the channel on which the Attachment was received.voidsetClassificationSummary(ClassificationSummary classificationSummary) Set the classificationSummary for this Attachment.voidsetCustomAttributeMap(Map<String, String> customAttributes) Sets the custom attribute Map of the Attachment.voidsetObjectReference(ObjectReference objectReference) Sets the primaryObjectReference of the Attachment.voidsetReceived(Instant received) Sets the time when the Attachment was received.Methods inherited from interface pro.taskana.task.api.models.AttachmentSummary
getChannel, getClassificationSummary, getCreated, getId, getModified, getObjectReference, getReceived, getTaskId
-
Method Details
-
setObjectReference
Sets the primaryObjectReference of the Attachment.- Parameters:
objectReference- the primaryObjectReference of the Attachment
-
setClassificationSummary
Set the classificationSummary for this Attachment.- Parameters:
classificationSummary- the ClassificationSummary for this Attachment
-
setReceived
Sets the time when the Attachment was received.- Parameters:
received- the time when the Attachment was received as Instant
-
setChannel
Sets the channel on which the Attachment was received.- Parameters:
channel- the channel on which the Attachment was received
-
getCustomAttributeMap
Returns the custom attributes of this Attachment.- Returns:
- customAttributes as Map
-
setCustomAttributeMap
Sets the custom attribute Map of the Attachment.- Parameters:
customAttributes- a Map that contains the custom attributes of the Attachment as key, value pairs
-
asSummary
AttachmentSummary asSummary()Returns a summary of the current Attachment.- Returns:
- the AttachmentSummary object for the current Attachment
-
copy
Attachment copy()Duplicates this Attachment without the id and taskId.- Specified by:
copyin interfaceAttachmentSummary- Returns:
- a copy of this Attachment
-