Interface Attachment

All Superinterfaces:
AttachmentSummary
All Known Implementing Classes:
AttachmentImpl

public interface Attachment extends AttachmentSummary
Attachment-Interface to specify attributes of an Attachment.
  • Method Details

    • 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:
      copy in interface AttachmentSummary
      Returns:
      a copy of this Attachment