Package com.smartsheet.api
Interface AttachmentResources
-
@Deprecated(since="2.0.0", forRemoval=true) public interface AttachmentResourcesDeprecated, for removal: This API element is subject to removal in a future version.As of release 2.0. Please useAttachmentVersioningResourcesinsteadThis 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 AttachmentattachNewVersion(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.AttachmentattachNewVersion(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 useAttachmentVersioningResourcesinstead- Parameters:
attachmentId- the idfile- the filecontentType- 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 useAttachmentVersioningResourcesinstead- Parameters:
attachmentId- the id of the attachment to upload a new version.inputStream- the file to attachcontentType- the content type of the fileattachmentName- attachment namecontentLength- content length- Returns:
- the created attachment
-
-