Interface AttachmentResources


  • @Deprecated(since="2.0.0",
                forRemoval=true)
    public interface AttachmentResources
    Deprecated, for removal: This API element is subject to removal in a future version.
    As of release 2.0. Please use AttachmentVersioningResources instead

    This interface provides methods to access Attachment resources by their id.

    Thread Safety: Implementation of this interface must be thread safe.

    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      Attachment attachNewVersion​(long attachmentId, 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 attachNewVersion​(long attachmentId, 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.
    • Method Detail

      • attachNewVersion

        @Deprecated(since="2.0.0",
                    forRemoval=true)
        Attachment attachNewVersion​(long attachmentId,
                                    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 AttachmentVersioningResources instead
        Parameters:
        attachmentId - the id
        file - the file
        contentType - the content type
        Returns:
        the attachment (note that if there is no such resource, this method will throw ResourceNotFoundException rather than returning null).
      • attachNewVersion

        @Deprecated(since="2.0.0",
                    forRemoval=true)
        Attachment attachNewVersion​(long attachmentId,
                                    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 AttachmentVersioningResources instead
        Parameters:
        attachmentId - the id of the attachment to upload a new version.
        inputStream - the file to attach
        contentType - the content type of the file
        attachmentName - attachment name
        contentLength - content length
        Returns:
        the created attachment