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 Attachment Attributes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AttachmentSummaryasSummary()Return 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 classification summary for this attachment.voidsetCustomAttributeMap(Map<String,String> customAttributes)Sets the custom attribute Map of the attachment.voidsetObjectReference(ObjectReference objectReference)Sets theprimaryObjectReferenceof 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 theprimaryObjectReferenceof the attachment.- Parameters:
objectReference- theprimaryObjectReferenceof the attachment
-
setClassificationSummary
void setClassificationSummary(ClassificationSummary classificationSummary)
Set the classification summary for this attachment.- Parameters:
classificationSummary- theClassificationSummaryfor this attachment
-
setReceived
void setReceived(Instant received)
Sets the time when the attachment was received.- Parameters:
received- the time asInstantwhen the attachment was received
-
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- aMapthat contains the custom attributes of the attachment as key, value pairs
-
asSummary
AttachmentSummary asSummary()
Return 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
-
-