Package com.smartsheet.api
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 objectfile
- the file to attachcontentType
- 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 objectinputStream
- the file to attachcontentType
- the content type of the filecontentLength
- 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 idattachment
- the attachment object- Returns:
- the created attachment
-
-