public class FolderClassificationsManager extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FolderClassificationsManager.Builder |
| Modifier and Type | Field and Description |
|---|---|
Authentication |
auth |
NetworkSession |
networkSession |
| Modifier | Constructor and Description |
|---|---|
|
FolderClassificationsManager() |
protected |
FolderClassificationsManager(FolderClassificationsManager.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
Classification |
addClassificationToFolder(String folderId)
Adds a classification to a folder by specifying the label of the classification to add.
|
Classification |
addClassificationToFolder(String folderId,
AddClassificationToFolderHeaders headers)
Adds a classification to a folder by specifying the label of the classification to add.
|
Classification |
addClassificationToFolder(String folderId,
AddClassificationToFolderRequestBody requestBody)
Adds a classification to a folder by specifying the label of the classification to add.
|
Classification |
addClassificationToFolder(String folderId,
AddClassificationToFolderRequestBody requestBody,
AddClassificationToFolderHeaders headers)
Adds a classification to a folder by specifying the label of the classification to add.
|
void |
deleteClassificationFromFolder(String folderId)
Removes any classifications from a folder.
|
void |
deleteClassificationFromFolder(String folderId,
DeleteClassificationFromFolderHeaders headers)
Removes any classifications from a folder.
|
Authentication |
getAuth() |
Classification |
getClassificationOnFolder(String folderId)
Retrieves the classification metadata instance that has been applied to a folder.
|
Classification |
getClassificationOnFolder(String folderId,
GetClassificationOnFolderHeaders headers)
Retrieves the classification metadata instance that has been applied to a folder.
|
NetworkSession |
getNetworkSession() |
Classification |
updateClassificationOnFolder(String folderId,
List<UpdateClassificationOnFolderRequestBody> requestBody)
Updates a classification on a folder.
|
Classification |
updateClassificationOnFolder(String folderId,
List<UpdateClassificationOnFolderRequestBody> requestBody,
UpdateClassificationOnFolderHeaders headers)
Updates a classification on a folder.
|
public Authentication auth
public NetworkSession networkSession
public FolderClassificationsManager()
protected FolderClassificationsManager(FolderClassificationsManager.Builder builder)
public Classification getClassificationOnFolder(String folderId)
This API can also be called by including the enterprise ID in the URL explicitly, for example `/folders/:id/enterprise_12345/securityClassification-6VMVochwUWo`.
folderId - The unique identifier that represent a folder.
The ID for any folder can be determined by visiting this folder in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/folder/123` the `folder_id` is `123`.
The root folder of a Box account is always represented by the ID `0`. Example: "12345"
public Classification getClassificationOnFolder(String folderId, GetClassificationOnFolderHeaders headers)
This API can also be called by including the enterprise ID in the URL explicitly, for example `/folders/:id/enterprise_12345/securityClassification-6VMVochwUWo`.
folderId - The unique identifier that represent a folder.
The ID for any folder can be determined by visiting this folder in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/folder/123` the `folder_id` is `123`.
The root folder of a Box account is always represented by the ID `0`. Example: "12345"
headers - Headers of getClassificationOnFolder methodpublic Classification addClassificationToFolder(String folderId)
This API can also be called by including the enterprise ID in the URL explicitly, for example `/folders/:id/enterprise_12345/securityClassification-6VMVochwUWo`.
folderId - The unique identifier that represent a folder.
The ID for any folder can be determined by visiting this folder in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/folder/123` the `folder_id` is `123`.
The root folder of a Box account is always represented by the ID `0`. Example: "12345"
public Classification addClassificationToFolder(String folderId, AddClassificationToFolderRequestBody requestBody)
This API can also be called by including the enterprise ID in the URL explicitly, for example `/folders/:id/enterprise_12345/securityClassification-6VMVochwUWo`.
folderId - The unique identifier that represent a folder.
The ID for any folder can be determined by visiting this folder in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/folder/123` the `folder_id` is `123`.
The root folder of a Box account is always represented by the ID `0`. Example: "12345"
requestBody - Request body of addClassificationToFolder methodpublic Classification addClassificationToFolder(String folderId, AddClassificationToFolderHeaders headers)
This API can also be called by including the enterprise ID in the URL explicitly, for example `/folders/:id/enterprise_12345/securityClassification-6VMVochwUWo`.
folderId - The unique identifier that represent a folder.
The ID for any folder can be determined by visiting this folder in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/folder/123` the `folder_id` is `123`.
The root folder of a Box account is always represented by the ID `0`. Example: "12345"
headers - Headers of addClassificationToFolder methodpublic Classification addClassificationToFolder(String folderId, AddClassificationToFolderRequestBody requestBody, AddClassificationToFolderHeaders headers)
This API can also be called by including the enterprise ID in the URL explicitly, for example `/folders/:id/enterprise_12345/securityClassification-6VMVochwUWo`.
folderId - The unique identifier that represent a folder.
The ID for any folder can be determined by visiting this folder in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/folder/123` the `folder_id` is `123`.
The root folder of a Box account is always represented by the ID `0`. Example: "12345"
requestBody - Request body of addClassificationToFolder methodheaders - Headers of addClassificationToFolder methodpublic Classification updateClassificationOnFolder(String folderId, List<UpdateClassificationOnFolderRequestBody> requestBody)
The classification can only be updated if a classification has already been applied to the folder before. When editing classifications, only values are defined for the enterprise will be accepted.
folderId - The unique identifier that represent a folder.
The ID for any folder can be determined by visiting this folder in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/folder/123` the `folder_id` is `123`.
The root folder of a Box account is always represented by the ID `0`. Example: "12345"
requestBody - Request body of updateClassificationOnFolder methodpublic Classification updateClassificationOnFolder(String folderId, List<UpdateClassificationOnFolderRequestBody> requestBody, UpdateClassificationOnFolderHeaders headers)
The classification can only be updated if a classification has already been applied to the folder before. When editing classifications, only values are defined for the enterprise will be accepted.
folderId - The unique identifier that represent a folder.
The ID for any folder can be determined by visiting this folder in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/folder/123` the `folder_id` is `123`.
The root folder of a Box account is always represented by the ID `0`. Example: "12345"
requestBody - Request body of updateClassificationOnFolder methodheaders - Headers of updateClassificationOnFolder methodpublic void deleteClassificationFromFolder(String folderId)
This API can also be called by including the enterprise ID in the URL explicitly, for example `/folders/:id/enterprise_12345/securityClassification-6VMVochwUWo`.
folderId - The unique identifier that represent a folder.
The ID for any folder can be determined by visiting this folder in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/folder/123` the `folder_id` is `123`.
The root folder of a Box account is always represented by the ID `0`. Example: "12345"
public void deleteClassificationFromFolder(String folderId, DeleteClassificationFromFolderHeaders headers)
This API can also be called by including the enterprise ID in the URL explicitly, for example `/folders/:id/enterprise_12345/securityClassification-6VMVochwUWo`.
folderId - The unique identifier that represent a folder.
The ID for any folder can be determined by visiting this folder in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/folder/123` the `folder_id` is `123`.
The root folder of a Box account is always represented by the ID `0`. Example: "12345"
headers - Headers of deleteClassificationFromFolder methodpublic Authentication getAuth()
public NetworkSession getNetworkSession()