public class FilesManager extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FilesManager.Builder |
| Modifier and Type | Field and Description |
|---|---|
Authentication |
auth |
NetworkSession |
networkSession |
| Modifier | Constructor and Description |
|---|---|
|
FilesManager() |
protected |
FilesManager(FilesManager.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
FileFull |
copyFile(String fileId,
CopyFileRequestBody requestBody)
Creates a copy of a file.
|
FileFull |
copyFile(String fileId,
CopyFileRequestBody requestBody,
CopyFileHeaders headers)
Creates a copy of a file.
|
FileFull |
copyFile(String fileId,
CopyFileRequestBody requestBody,
CopyFileQueryParams queryParams)
Creates a copy of a file.
|
FileFull |
copyFile(String fileId,
CopyFileRequestBody requestBody,
CopyFileQueryParams queryParams,
CopyFileHeaders headers)
Creates a copy of a file.
|
void |
deleteFileById(String fileId)
Deletes a file, either permanently or by moving it to the trash.
|
void |
deleteFileById(String fileId,
DeleteFileByIdHeaders headers)
Deletes a file, either permanently or by moving it to the trash.
|
Authentication |
getAuth() |
FileFull |
getFileById(String fileId)
Retrieves the details about a file.
|
FileFull |
getFileById(String fileId,
GetFileByIdHeaders headers)
Retrieves the details about a file.
|
FileFull |
getFileById(String fileId,
GetFileByIdQueryParams queryParams)
Retrieves the details about a file.
|
FileFull |
getFileById(String fileId,
GetFileByIdQueryParams queryParams,
GetFileByIdHeaders headers)
Retrieves the details about a file.
|
InputStream |
getFileThumbnailById(String fileId,
GetFileThumbnailByIdExtension extension)
Retrieves a thumbnail, or smaller image representation, of a file.
|
InputStream |
getFileThumbnailById(String fileId,
GetFileThumbnailByIdExtension extension,
GetFileThumbnailByIdHeaders headers)
Retrieves a thumbnail, or smaller image representation, of a file.
|
InputStream |
getFileThumbnailById(String fileId,
GetFileThumbnailByIdExtension extension,
GetFileThumbnailByIdQueryParams queryParams)
Retrieves a thumbnail, or smaller image representation, of a file.
|
InputStream |
getFileThumbnailById(String fileId,
GetFileThumbnailByIdExtension extension,
GetFileThumbnailByIdQueryParams queryParams,
GetFileThumbnailByIdHeaders headers)
Retrieves a thumbnail, or smaller image representation, of a file.
|
String |
getFileThumbnailUrl(String fileId,
GetFileThumbnailUrlExtension extension)
Retrieves a thumbnail, or smaller image representation, of a file.
|
String |
getFileThumbnailUrl(String fileId,
GetFileThumbnailUrlExtension extension,
GetFileThumbnailUrlHeaders headers)
Retrieves a thumbnail, or smaller image representation, of a file.
|
String |
getFileThumbnailUrl(String fileId,
GetFileThumbnailUrlExtension extension,
GetFileThumbnailUrlQueryParams queryParams)
Retrieves a thumbnail, or smaller image representation, of a file.
|
String |
getFileThumbnailUrl(String fileId,
GetFileThumbnailUrlExtension extension,
GetFileThumbnailUrlQueryParams queryParams,
GetFileThumbnailUrlHeaders headers)
Retrieves a thumbnail, or smaller image representation, of a file.
|
NetworkSession |
getNetworkSession() |
FileFull |
updateFileById(String fileId)
Updates a file.
|
FileFull |
updateFileById(String fileId,
UpdateFileByIdHeaders headers)
Updates a file.
|
FileFull |
updateFileById(String fileId,
UpdateFileByIdQueryParams queryParams)
Updates a file.
|
FileFull |
updateFileById(String fileId,
UpdateFileByIdQueryParams queryParams,
UpdateFileByIdHeaders headers)
Updates a file.
|
FileFull |
updateFileById(String fileId,
UpdateFileByIdRequestBody requestBody)
Updates a file.
|
FileFull |
updateFileById(String fileId,
UpdateFileByIdRequestBody requestBody,
UpdateFileByIdHeaders headers)
Updates a file.
|
FileFull |
updateFileById(String fileId,
UpdateFileByIdRequestBody requestBody,
UpdateFileByIdQueryParams queryParams)
Updates a file.
|
FileFull |
updateFileById(String fileId,
UpdateFileByIdRequestBody requestBody,
UpdateFileByIdQueryParams queryParams,
UpdateFileByIdHeaders headers)
Updates a file.
|
public Authentication auth
public NetworkSession networkSession
public FilesManager()
protected FilesManager(FilesManager.Builder builder)
public FileFull getFileById(String fileId)
fileId - The unique identifier that represents a file.
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/files/123` the `file_id` is `123`. Example: "12345"
public FileFull getFileById(String fileId, GetFileByIdQueryParams queryParams)
fileId - The unique identifier that represents a file.
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/files/123` the `file_id` is `123`. Example: "12345"
queryParams - Query parameters of getFileById methodpublic FileFull getFileById(String fileId, GetFileByIdHeaders headers)
fileId - The unique identifier that represents a file.
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/files/123` the `file_id` is `123`. Example: "12345"
headers - Headers of getFileById methodpublic FileFull getFileById(String fileId, GetFileByIdQueryParams queryParams, GetFileByIdHeaders headers)
fileId - The unique identifier that represents a file.
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/files/123` the `file_id` is `123`. Example: "12345"
queryParams - Query parameters of getFileById methodheaders - Headers of getFileById methodpublic FileFull updateFileById(String fileId)
fileId - The unique identifier that represents a file.
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/files/123` the `file_id` is `123`. Example: "12345"
public FileFull updateFileById(String fileId, UpdateFileByIdRequestBody requestBody)
fileId - The unique identifier that represents a file.
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/files/123` the `file_id` is `123`. Example: "12345"
requestBody - Request body of updateFileById methodpublic FileFull updateFileById(String fileId, UpdateFileByIdQueryParams queryParams)
fileId - The unique identifier that represents a file.
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/files/123` the `file_id` is `123`. Example: "12345"
queryParams - Query parameters of updateFileById methodpublic FileFull updateFileById(String fileId, UpdateFileByIdRequestBody requestBody, UpdateFileByIdQueryParams queryParams)
fileId - The unique identifier that represents a file.
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/files/123` the `file_id` is `123`. Example: "12345"
requestBody - Request body of updateFileById methodqueryParams - Query parameters of updateFileById methodpublic FileFull updateFileById(String fileId, UpdateFileByIdHeaders headers)
fileId - The unique identifier that represents a file.
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/files/123` the `file_id` is `123`. Example: "12345"
headers - Headers of updateFileById methodpublic FileFull updateFileById(String fileId, UpdateFileByIdRequestBody requestBody, UpdateFileByIdHeaders headers)
fileId - The unique identifier that represents a file.
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/files/123` the `file_id` is `123`. Example: "12345"
requestBody - Request body of updateFileById methodheaders - Headers of updateFileById methodpublic FileFull updateFileById(String fileId, UpdateFileByIdQueryParams queryParams, UpdateFileByIdHeaders headers)
fileId - The unique identifier that represents a file.
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/files/123` the `file_id` is `123`. Example: "12345"
queryParams - Query parameters of updateFileById methodheaders - Headers of updateFileById methodpublic FileFull updateFileById(String fileId, UpdateFileByIdRequestBody requestBody, UpdateFileByIdQueryParams queryParams, UpdateFileByIdHeaders headers)
fileId - The unique identifier that represents a file.
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/files/123` the `file_id` is `123`. Example: "12345"
requestBody - Request body of updateFileById methodqueryParams - Query parameters of updateFileById methodheaders - Headers of updateFileById methodpublic void deleteFileById(String fileId)
The enterprise settings determine whether the item will be permanently deleted from Box or moved to the trash.
fileId - The unique identifier that represents a file.
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/files/123` the `file_id` is `123`. Example: "12345"
public void deleteFileById(String fileId, DeleteFileByIdHeaders headers)
The enterprise settings determine whether the item will be permanently deleted from Box or moved to the trash.
fileId - The unique identifier that represents a file.
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/files/123` the `file_id` is `123`. Example: "12345"
headers - Headers of deleteFileById methodpublic FileFull copyFile(String fileId, CopyFileRequestBody requestBody)
fileId - The unique identifier that represents a file.
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/files/123` the `file_id` is `123`. Example: "12345"
requestBody - Request body of copyFile methodpublic FileFull copyFile(String fileId, CopyFileRequestBody requestBody, CopyFileQueryParams queryParams)
fileId - The unique identifier that represents a file.
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/files/123` the `file_id` is `123`. Example: "12345"
requestBody - Request body of copyFile methodqueryParams - Query parameters of copyFile methodpublic FileFull copyFile(String fileId, CopyFileRequestBody requestBody, CopyFileHeaders headers)
fileId - The unique identifier that represents a file.
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/files/123` the `file_id` is `123`. Example: "12345"
requestBody - Request body of copyFile methodheaders - Headers of copyFile methodpublic FileFull copyFile(String fileId, CopyFileRequestBody requestBody, CopyFileQueryParams queryParams, CopyFileHeaders headers)
fileId - The unique identifier that represents a file.
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/files/123` the `file_id` is `123`. Example: "12345"
requestBody - Request body of copyFile methodqueryParams - Query parameters of copyFile methodheaders - Headers of copyFile methodpublic String getFileThumbnailUrl(String fileId, GetFileThumbnailUrlExtension extension)
Sizes of `32x32`,`64x64`, `128x128`, and `256x256` can be returned in the `.png` format and sizes of `32x32`, `160x160`, and `320x320` can be returned in the `.jpg` format.
Thumbnails can be generated for the image and video file formats listed [found on our community site][1].
[1]: https://community.box.com/t5/Migrating-and-Previewing-Content/File-Types-and-Fonts-Supported-in-Box-Content-Preview/ta-p/327
fileId - The unique identifier that represents a file.
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/files/123` the `file_id` is `123`. Example: "12345"
extension - The file format for the thumbnail. Example: "png"public String getFileThumbnailUrl(String fileId, GetFileThumbnailUrlExtension extension, GetFileThumbnailUrlQueryParams queryParams)
Sizes of `32x32`,`64x64`, `128x128`, and `256x256` can be returned in the `.png` format and sizes of `32x32`, `160x160`, and `320x320` can be returned in the `.jpg` format.
Thumbnails can be generated for the image and video file formats listed [found on our community site][1].
[1]: https://community.box.com/t5/Migrating-and-Previewing-Content/File-Types-and-Fonts-Supported-in-Box-Content-Preview/ta-p/327
fileId - The unique identifier that represents a file.
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/files/123` the `file_id` is `123`. Example: "12345"
extension - The file format for the thumbnail. Example: "png"queryParams - Query parameters of getFileThumbnailById methodpublic String getFileThumbnailUrl(String fileId, GetFileThumbnailUrlExtension extension, GetFileThumbnailUrlHeaders headers)
Sizes of `32x32`,`64x64`, `128x128`, and `256x256` can be returned in the `.png` format and sizes of `32x32`, `160x160`, and `320x320` can be returned in the `.jpg` format.
Thumbnails can be generated for the image and video file formats listed [found on our community site][1].
[1]: https://community.box.com/t5/Migrating-and-Previewing-Content/File-Types-and-Fonts-Supported-in-Box-Content-Preview/ta-p/327
fileId - The unique identifier that represents a file.
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/files/123` the `file_id` is `123`. Example: "12345"
extension - The file format for the thumbnail. Example: "png"headers - Headers of getFileThumbnailById methodpublic String getFileThumbnailUrl(String fileId, GetFileThumbnailUrlExtension extension, GetFileThumbnailUrlQueryParams queryParams, GetFileThumbnailUrlHeaders headers)
Sizes of `32x32`,`64x64`, `128x128`, and `256x256` can be returned in the `.png` format and sizes of `32x32`, `160x160`, and `320x320` can be returned in the `.jpg` format.
Thumbnails can be generated for the image and video file formats listed [found on our community site][1].
[1]: https://community.box.com/t5/Migrating-and-Previewing-Content/File-Types-and-Fonts-Supported-in-Box-Content-Preview/ta-p/327
fileId - The unique identifier that represents a file.
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/files/123` the `file_id` is `123`. Example: "12345"
extension - The file format for the thumbnail. Example: "png"queryParams - Query parameters of getFileThumbnailById methodheaders - Headers of getFileThumbnailById methodpublic InputStream getFileThumbnailById(String fileId, GetFileThumbnailByIdExtension extension)
Sizes of `32x32`,`64x64`, `128x128`, and `256x256` can be returned in the `.png` format and sizes of `32x32`, `160x160`, and `320x320` can be returned in the `.jpg` format.
Thumbnails can be generated for the image and video file formats listed [found on our community site][1].
[1]: https://community.box.com/t5/Migrating-and-Previewing-Content/File-Types-and-Fonts-Supported-in-Box-Content-Preview/ta-p/327
fileId - The unique identifier that represents a file.
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/files/123` the `file_id` is `123`. Example: "12345"
extension - The file format for the thumbnail. Example: "png"public InputStream getFileThumbnailById(String fileId, GetFileThumbnailByIdExtension extension, GetFileThumbnailByIdQueryParams queryParams)
Sizes of `32x32`,`64x64`, `128x128`, and `256x256` can be returned in the `.png` format and sizes of `32x32`, `160x160`, and `320x320` can be returned in the `.jpg` format.
Thumbnails can be generated for the image and video file formats listed [found on our community site][1].
[1]: https://community.box.com/t5/Migrating-and-Previewing-Content/File-Types-and-Fonts-Supported-in-Box-Content-Preview/ta-p/327
fileId - The unique identifier that represents a file.
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/files/123` the `file_id` is `123`. Example: "12345"
extension - The file format for the thumbnail. Example: "png"queryParams - Query parameters of getFileThumbnailById methodpublic InputStream getFileThumbnailById(String fileId, GetFileThumbnailByIdExtension extension, GetFileThumbnailByIdHeaders headers)
Sizes of `32x32`,`64x64`, `128x128`, and `256x256` can be returned in the `.png` format and sizes of `32x32`, `160x160`, and `320x320` can be returned in the `.jpg` format.
Thumbnails can be generated for the image and video file formats listed [found on our community site][1].
[1]: https://community.box.com/t5/Migrating-and-Previewing-Content/File-Types-and-Fonts-Supported-in-Box-Content-Preview/ta-p/327
fileId - The unique identifier that represents a file.
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/files/123` the `file_id` is `123`. Example: "12345"
extension - The file format for the thumbnail. Example: "png"headers - Headers of getFileThumbnailById methodpublic InputStream getFileThumbnailById(String fileId, GetFileThumbnailByIdExtension extension, GetFileThumbnailByIdQueryParams queryParams, GetFileThumbnailByIdHeaders headers)
Sizes of `32x32`,`64x64`, `128x128`, and `256x256` can be returned in the `.png` format and sizes of `32x32`, `160x160`, and `320x320` can be returned in the `.jpg` format.
Thumbnails can be generated for the image and video file formats listed [found on our community site][1].
[1]: https://community.box.com/t5/Migrating-and-Previewing-Content/File-Types-and-Fonts-Supported-in-Box-Content-Preview/ta-p/327
fileId - The unique identifier that represents a file.
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/files/123` the `file_id` is `123`. Example: "12345"
extension - The file format for the thumbnail. Example: "png"queryParams - Query parameters of getFileThumbnailById methodheaders - Headers of getFileThumbnailById methodpublic Authentication getAuth()
public NetworkSession getNetworkSession()