Interface Attachment

    • Method Detail

      • setClassificationSummary

        void setClassificationSummary​(ClassificationSummary classificationSummary)
        Set the classification summary 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 as Instant when 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 - a Map that 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:
        copy in interface AttachmentSummary
        Returns:
        a copy of this Attachment