Package pro.taskana.task.api.models
Interface Attachment
-
- All Superinterfaces:
AttachmentSummary
- All Known Implementing Classes:
AttachmentImpl
public interface Attachment extends AttachmentSummary
Attachment-Interface to specify attributes of an Attachment.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AttachmentSummaryasSummary()Returns a summary of the current Attachment.Attachmentcopy()Duplicates this Attachment without the id and taskId.Map<String,String>getCustomAttributeMap()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 Detail
-
setObjectReference
void setObjectReference(ObjectReference objectReference)
Sets the primaryObjectReference of the Attachment.- Parameters:
objectReference- the primaryObjectReference of the Attachment
-
setClassificationSummary
void setClassificationSummary(ClassificationSummary classificationSummary)
Set the classificationSummary for this Attachment.- Parameters:
classificationSummary- the ClassificationSummary for this Attachment
-
setReceived
void setReceived(Instant received)
Sets the time when the Attachment was received.- Parameters:
received- the time when the Attachment was received as Instant
-
setChannel
void setChannel(String channel)
Sets the channel on which the Attachment was received.- Parameters:
channel- the channel on which the Attachment was received
-
getCustomAttributeMap
Map<String,String> getCustomAttributeMap()
Returns the custom attributes of this Attachment.- Returns:
- customAttributes as Map
-
setCustomAttributeMap
void setCustomAttributeMap(Map<String,String> customAttributes)
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
-
-