Interface AssociatedAttachmentResources


  • @Deprecated(since="2.0.0",
                forRemoval=true)
    public interface AssociatedAttachmentResources
    Deprecated, for removal: This API element is subject to removal in a future version.
    As of release 2.0. Please use the corresponding method in the [Row/Sheet/etc]AttachmentResources classes
    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      Attachment attachFile​(long objectId, java.io.File file, java.lang.String contentType)
      Deprecated, for removal: This API element is subject to removal in a future version.
      As of release 2.0.
      Attachment attachFile​(long objectId, java.io.InputStream inputStream, java.lang.String contentType, long contentLength, java.lang.String attachmentName)
      Deprecated, for removal: This API element is subject to removal in a future version.
      As of release 2.0.
      Attachment attachURL​(long objectId, Attachment attachment)
      Deprecated, for removal: This API element is subject to removal in a future version.
      As of release 2.0.
      java.util.List<Attachment> listAttachments​(long objectId)
      Deprecated, for removal: This API element is subject to removal in a future version.
      As of release 2.0.
    • Method Detail

      • listAttachments

        @Deprecated(since="2.0.0",
                    forRemoval=true)
        java.util.List<Attachment> listAttachments​(long objectId)
        Deprecated, for removal: This API element is subject to removal in a future version.
        As of release 2.0. Please use the corresponding method in the [Row/Sheet/etc]AttachmentResources classes
        Parameters:
        objectId - the ID of the object to which the attachments are associated
        Returns:
        the attachments (note that empty list will be returned if there is none)
      • attachFile

        @Deprecated(since="2.0.0",
                    forRemoval=true)
        Attachment attachFile​(long objectId,
                              java.io.File file,
                              java.lang.String contentType)
        Deprecated, for removal: This API element is subject to removal in a future version.
        As of release 2.0. Please use the corresponding method in the [Row/Sheet/etc]AttachmentResources classes
        Parameters:
        objectId - the id of the object
        file - the file to attach
        contentType - the content type of the file
        Returns:
        the created attachment
      • attachFile

        @Deprecated(since="2.0.0",
                    forRemoval=true)
        Attachment attachFile​(long objectId,
                              java.io.InputStream inputStream,
                              java.lang.String contentType,
                              long contentLength,
                              java.lang.String attachmentName)
        Deprecated, for removal: This API element is subject to removal in a future version.
        As of release 2.0. Please use the corresponding method in the [Row/Sheet/etc]AttachmentResources classes
        Parameters:
        objectId - the id of the object
        inputStream - the file to attach
        contentType - the content type of the file
        contentLength - the size of the file in bytes.
        attachmentName - the name of the file.
        Returns:
        the created attachment
      • attachURL

        @Deprecated(since="2.0.0",
                    forRemoval=true)
        Attachment attachURL​(long objectId,
                             Attachment attachment)
        Deprecated, for removal: This API element is subject to removal in a future version.
        As of release 2.0. Please use the corresponding method in the [Row/Sheet/etc]AttachmentResources classes
        Parameters:
        objectId - the object id
        attachment - the attachment object
        Returns:
        the created attachment