다음을 통해 공유


Attachments 인터페이스

public interface Attachments

이 클래스의 인스턴스는 Attachments에 정의된 모든 작업에 대한 액세스를 제공합니다.

메서드 요약

한정자 및 형식 메서드 및 설명
abstract java.util.concurrent.CompletableFuture<java.io.InputStream> getAttachment(String attachmentId, String viewId)

첨부 파일을 가져옵니다.

abstract java.util.concurrent.CompletableFuture<AttachmentInfo> getAttachmentInfo(String attachmentId)

첨부 파일정보를 가져옵니다.

default java.lang.String getAttachmentUri(String attachmentId)

첨부 파일 보기의 URI를 가져옵니다.

abstract java.lang.String getAttachmentUri(String attachmentId, String viewId)

첨부 파일 보기의 URI를 가져옵니다.

메서드 세부 정보

getAttachment

public abstract CompletableFuture getAttachment(String attachmentId, String viewId)

GetAttachment. 명명된 뷰를 이진 콘텐츠로 가져옵니다.

매개 변수:

attachmentId - 첨부 파일 ID
viewId - attachmentInfo에서 ID 보기

반환:

InputStream 개체에 대해 관찰 가능한 개체

getAttachmentInfo

public abstract CompletableFuture getAttachmentInfo(String attachmentId)

GetAttachmentInfo. 첨부 파일 뷰를 설명하는 AttachmentInfo 구조를 가져옵니다.

매개 변수:

attachmentId - 첨부 파일 ID

반환:

AttachmentInfo 개체에 대해 관찰할 수 있는 개체

getAttachmentUri

public default String getAttachmentUri(String attachmentId)

첨부 파일 보기의 URI를 가져옵니다.

매개 변수:

attachmentId - 첨부 파일의 ID입니다.

반환:

첨부 파일의 URI입니다.

getAttachmentUri

public abstract String getAttachmentUri(String attachmentId, String viewId)

첨부 파일 보기의 URI를 가져옵니다.

매개 변수:

attachmentId - 첨부 파일의 ID입니다.
viewId - 기본값은 "original"입니다.

반환:

첨부 파일의 URI입니다.

적용 대상