public class BoxApiPreview
extends com.box.androidsdk.content.BoxApiFile
| Modifier and Type | Class and Description |
|---|---|
static class |
BoxApiPreview.Extensions
Enumeration of all preview supported extensions
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FIELD_AUTHENTICATED_DOWNLOAD_URL |
protected static java.lang.String |
LOG_CONTENT_ACCESS_PARAM |
static java.lang.String |
METADATA_FILE_INFO_TAG |
static java.lang.String |
METADATA_FOLDER_INFO_TAG |
protected static java.lang.String |
PREVIEW_AUTHENTICATED_DOWNLOAD_PARAM |
| Constructor and Description |
|---|
BoxApiPreview(com.box.androidsdk.content.models.BoxSession session) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAuthenticatedDownloadUrl(com.box.androidsdk.content.models.BoxFile boxFile) |
BoxRequestsPreview.CheckFileConsistency |
getCheckFileConsistencyRequest(java.lang.String fileId,
java.lang.String versionId,
BoxApiPreview.Extensions ext)
Returns a request that we will use to check file consistency.
|
java.lang.String |
getContentUrl(java.lang.String fileId) |
java.lang.String |
getContentUrlNoAccess(java.lang.String fileId) |
java.lang.String |
getDicomUrl(java.lang.String fileId,
java.lang.String fileName) |
BoxRequestsPreview.DownloadPreview |
getDownloadPreviewRequest(java.io.OutputStream outputStream,
java.lang.String fileId,
BoxApiPreview.Extensions ext)
Returns a request that retrieves and caches a preview
|
static com.box.androidsdk.content.requests.BoxRequestsFile.GetFileInfo |
getFileInfoRequest(PreviewController previewController,
com.box.androidsdk.content.models.BoxFile fileInfo)
Returns a request that retrieves file information
|
protected BoxRequestsPreview.PreviewBatchRequest |
getOfflineRequests(PreviewController previewController,
com.box.androidsdk.content.models.BoxFile boxFile)
Returns a preview batch request that contains a number of individual requests that are required to view the given file offline.
|
java.lang.String[] |
getPreviewFileFields() |
java.lang.String |
getPreviewUrl(java.lang.String fileId,
BoxApiPreview.Extensions ext) |
java.lang.String |
getPreviewUrlNoAccess(java.lang.String fileId,
BoxApiPreview.Extensions ext) |
java.lang.String |
getRepresentationContentUrl(com.box.androidsdk.content.models.BoxRepresentation representation)
Return the string url of a BoxRepresentation
|
getAbortUploadSessionRequest, getAddCommentRequest, getAddTaggedCommentRequest, getAddToCollectionRequest, getCollaborationsRequest, getCommentsRequest, getCommentUrl, getCommitSessionRequest, getCommitSessionRequest, getCopyRequest, getCreateSharedLinkRequest, getCreateUploadSessionRequest, getCreateUploadSessionRequest, getCreateUploadVersionSessionRequest, getCreateUploadVersionSessionRequest, getDeleteFileVersionUrl, getDeleteFromCollectionRequest, getDeleteRequest, getDeleteTrashedFileRequest, getDeleteVersionRequest, getDisableSharedLinkRequest, getDownloadRepresentationRequest, getDownloadRequest, getDownloadRequest, getDownloadThumbnailRequest, getDownloadThumbnailRequest, getDownloadUrlRequest, getEmbedLinkRequest, getFileCollaborationsUrl, getFileCommentsUrl, getFileCopyUrl, getFileDownloadUrl, getFileInfoUrl, getFilePreviewedRequest, getFilesUrl, getFileUploadNewVersionUrl, getFileUploadUrl, getFileVersionsUrl, getInfoRequest, getListUploadSessionRequest, getMoveRequest, getPreviewFileUrl, getPromoteFileVersionUrl, getPromoteVersionRequest, getRenameRequest, getRestoreTrashedFileRequest, getThumbnailFileDownloadUrl, getTrashedFileRequest, getTrashedFileUrl, getUpdateRequest, getUploadNewVersionRequest, getUploadNewVersionRequest, getUploadRequest, getUploadRequest, getUploadSession, getUploadSessionForNewFileUrl, getUploadSessionForNewFileVersionUrl, getUploadSessionInfoUrl, getUploadSessionPartRequest, getUploadSessionPartRequest, getVersionsRequestpublic static final java.lang.String METADATA_FILE_INFO_TAG
public static final java.lang.String METADATA_FOLDER_INFO_TAG
public static final java.lang.String FIELD_AUTHENTICATED_DOWNLOAD_URL
protected static final java.lang.String LOG_CONTENT_ACCESS_PARAM
protected static final java.lang.String PREVIEW_AUTHENTICATED_DOWNLOAD_PARAM
public BoxApiPreview(com.box.androidsdk.content.models.BoxSession session)
public java.lang.String getPreviewUrl(java.lang.String fileId,
BoxApiPreview.Extensions ext)
public java.lang.String getDicomUrl(java.lang.String fileId,
java.lang.String fileName)
public java.lang.String getPreviewUrlNoAccess(java.lang.String fileId,
BoxApiPreview.Extensions ext)
public java.lang.String getContentUrl(java.lang.String fileId)
public java.lang.String getContentUrlNoAccess(java.lang.String fileId)
public java.lang.String[] getPreviewFileFields()
public java.lang.String getRepresentationContentUrl(@NonNull
com.box.androidsdk.content.models.BoxRepresentation representation)
representation - BoxRepresentation to be accessedpublic java.lang.String getAuthenticatedDownloadUrl(com.box.androidsdk.content.models.BoxFile boxFile)
public static com.box.androidsdk.content.requests.BoxRequestsFile.GetFileInfo getFileInfoRequest(PreviewController previewController, com.box.androidsdk.content.models.BoxFile fileInfo)
previewController - Controller to use for requests.fileInfo - The file to get information onpublic BoxRequestsPreview.DownloadPreview getDownloadPreviewRequest(java.io.OutputStream outputStream, java.lang.String fileId, BoxApiPreview.Extensions ext)
outputStream - the output stream to cache the preview tofileId - the file id of the preview to retrieveext - extension of the previewpublic BoxRequestsPreview.CheckFileConsistency getCheckFileConsistencyRequest(java.lang.String fileId, java.lang.String versionId, BoxApiPreview.Extensions ext)
fileId - The id of the file to checkversionId - The version of the file to checkext - The extension of the preview to request.protected BoxRequestsPreview.PreviewBatchRequest getOfflineRequests(PreviewController previewController, com.box.androidsdk.content.models.BoxFile boxFile)
boxFile - the file to save for offline.previewController - the preview controller to use for storage and api implementations.