public class FileWatermarksManager extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FileWatermarksManager.Builder |
| Modifier and Type | Field and Description |
|---|---|
Authentication |
auth |
NetworkSession |
networkSession |
| Modifier | Constructor and Description |
|---|---|
|
FileWatermarksManager() |
protected |
FileWatermarksManager(FileWatermarksManager.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteFileWatermark(String fileId)
Removes the watermark from a file.
|
void |
deleteFileWatermark(String fileId,
DeleteFileWatermarkHeaders headers)
Removes the watermark from a file.
|
Authentication |
getAuth() |
Watermark |
getFileWatermark(String fileId)
Retrieve the watermark for a file.
|
Watermark |
getFileWatermark(String fileId,
GetFileWatermarkHeaders headers)
Retrieve the watermark for a file.
|
NetworkSession |
getNetworkSession() |
Watermark |
updateFileWatermark(String fileId,
UpdateFileWatermarkRequestBody requestBody)
Applies or update a watermark on a file.
|
Watermark |
updateFileWatermark(String fileId,
UpdateFileWatermarkRequestBody requestBody,
UpdateFileWatermarkHeaders headers)
Applies or update a watermark on a file.
|
public Authentication auth
public NetworkSession networkSession
public FileWatermarksManager()
protected FileWatermarksManager(FileWatermarksManager.Builder builder)
public Watermark getFileWatermark(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 Watermark getFileWatermark(String fileId, GetFileWatermarkHeaders 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 getFileWatermark methodpublic Watermark updateFileWatermark(String fileId, UpdateFileWatermarkRequestBody 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 updateFileWatermark methodpublic Watermark updateFileWatermark(String fileId, UpdateFileWatermarkRequestBody requestBody, UpdateFileWatermarkHeaders 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 updateFileWatermark methodheaders - Headers of updateFileWatermark methodpublic void deleteFileWatermark(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 void deleteFileWatermark(String fileId, DeleteFileWatermarkHeaders 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 deleteFileWatermark methodpublic Authentication getAuth()
public NetworkSession getNetworkSession()