public class FileClassificationsManager extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FileClassificationsManager.Builder |
| Modifier and Type | Field and Description |
|---|---|
Authentication |
auth |
NetworkSession |
networkSession |
| Modifier | Constructor and Description |
|---|---|
|
FileClassificationsManager() |
protected |
FileClassificationsManager(FileClassificationsManager.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
Classification |
addClassificationToFile(String fileId)
Adds a classification to a file by specifying the label of the classification to add.
|
Classification |
addClassificationToFile(String fileId,
AddClassificationToFileHeaders headers)
Adds a classification to a file by specifying the label of the classification to add.
|
Classification |
addClassificationToFile(String fileId,
AddClassificationToFileRequestBody requestBody)
Adds a classification to a file by specifying the label of the classification to add.
|
Classification |
addClassificationToFile(String fileId,
AddClassificationToFileRequestBody requestBody,
AddClassificationToFileHeaders headers)
Adds a classification to a file by specifying the label of the classification to add.
|
void |
deleteClassificationFromFile(String fileId)
Removes any classifications from a file.
|
void |
deleteClassificationFromFile(String fileId,
DeleteClassificationFromFileHeaders headers)
Removes any classifications from a file.
|
Authentication |
getAuth() |
Classification |
getClassificationOnFile(String fileId)
Retrieves the classification metadata instance that has been applied to a file.
|
Classification |
getClassificationOnFile(String fileId,
GetClassificationOnFileHeaders headers)
Retrieves the classification metadata instance that has been applied to a file.
|
NetworkSession |
getNetworkSession() |
Classification |
updateClassificationOnFile(String fileId,
List<UpdateClassificationOnFileRequestBody> requestBody)
Updates a classification on a file.
|
Classification |
updateClassificationOnFile(String fileId,
List<UpdateClassificationOnFileRequestBody> requestBody,
UpdateClassificationOnFileHeaders headers)
Updates a classification on a file.
|
public Authentication auth
public NetworkSession networkSession
public FileClassificationsManager()
protected FileClassificationsManager(FileClassificationsManager.Builder builder)
public Classification getClassificationOnFile(String fileId)
This API can also be called by including the enterprise ID in the URL explicitly, for example `/files/:id//enterprise_12345/securityClassification-6VMVochwUWo`.
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 Classification getClassificationOnFile(String fileId, GetClassificationOnFileHeaders headers)
This API can also be called by including the enterprise ID in the URL explicitly, for example `/files/:id//enterprise_12345/securityClassification-6VMVochwUWo`.
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 getClassificationOnFile methodpublic Classification addClassificationToFile(String fileId)
This API can also be called by including the enterprise ID in the URL explicitly, for example `/files/:id//enterprise_12345/securityClassification-6VMVochwUWo`.
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 Classification addClassificationToFile(String fileId, AddClassificationToFileRequestBody requestBody)
This API can also be called by including the enterprise ID in the URL explicitly, for example `/files/:id//enterprise_12345/securityClassification-6VMVochwUWo`.
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 addClassificationToFile methodpublic Classification addClassificationToFile(String fileId, AddClassificationToFileHeaders headers)
This API can also be called by including the enterprise ID in the URL explicitly, for example `/files/:id//enterprise_12345/securityClassification-6VMVochwUWo`.
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 addClassificationToFile methodpublic Classification addClassificationToFile(String fileId, AddClassificationToFileRequestBody requestBody, AddClassificationToFileHeaders headers)
This API can also be called by including the enterprise ID in the URL explicitly, for example `/files/:id//enterprise_12345/securityClassification-6VMVochwUWo`.
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 addClassificationToFile methodheaders - Headers of addClassificationToFile methodpublic Classification updateClassificationOnFile(String fileId, List<UpdateClassificationOnFileRequestBody> requestBody)
The classification can only be updated if a classification has already been applied to the file before. When editing classifications, only values are defined for the enterprise will be accepted.
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 updateClassificationOnFile methodpublic Classification updateClassificationOnFile(String fileId, List<UpdateClassificationOnFileRequestBody> requestBody, UpdateClassificationOnFileHeaders headers)
The classification can only be updated if a classification has already been applied to the file before. When editing classifications, only values are defined for the enterprise will be accepted.
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 updateClassificationOnFile methodheaders - Headers of updateClassificationOnFile methodpublic void deleteClassificationFromFile(String fileId)
This API can also be called by including the enterprise ID in the URL explicitly, for example `/files/:id//enterprise_12345/securityClassification-6VMVochwUWo`.
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 deleteClassificationFromFile(String fileId, DeleteClassificationFromFileHeaders headers)
This API can also be called by including the enterprise ID in the URL explicitly, for example `/files/:id//enterprise_12345/securityClassification-6VMVochwUWo`.
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 deleteClassificationFromFile methodpublic Authentication getAuth()
public NetworkSession getNetworkSession()