public class MetadataTemplatesManager extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MetadataTemplatesManager.Builder |
| Modifier and Type | Field and Description |
|---|---|
Authentication |
auth |
NetworkSession |
networkSession |
| Modifier | Constructor and Description |
|---|---|
|
MetadataTemplatesManager() |
protected |
MetadataTemplatesManager(MetadataTemplatesManager.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
MetadataTemplate |
createMetadataTemplate(CreateMetadataTemplateRequestBody requestBody)
Creates a new metadata template that can be applied to files and folders.
|
MetadataTemplate |
createMetadataTemplate(CreateMetadataTemplateRequestBody requestBody,
CreateMetadataTemplateHeaders headers)
Creates a new metadata template that can be applied to files and folders.
|
void |
deleteMetadataTemplate(DeleteMetadataTemplateScope scope,
String templateKey)
Delete a metadata template and its instances.
|
void |
deleteMetadataTemplate(DeleteMetadataTemplateScope scope,
String templateKey,
DeleteMetadataTemplateHeaders headers)
Delete a metadata template and its instances.
|
Authentication |
getAuth() |
MetadataTemplates |
getEnterpriseMetadataTemplates()
Used to retrieve all metadata templates created to be used specifically within the user's
enterprise.
|
MetadataTemplates |
getEnterpriseMetadataTemplates(GetEnterpriseMetadataTemplatesHeaders headers)
Used to retrieve all metadata templates created to be used specifically within the user's
enterprise.
|
MetadataTemplates |
getEnterpriseMetadataTemplates(GetEnterpriseMetadataTemplatesQueryParams queryParams)
Used to retrieve all metadata templates created to be used specifically within the user's
enterprise.
|
MetadataTemplates |
getEnterpriseMetadataTemplates(GetEnterpriseMetadataTemplatesQueryParams queryParams,
GetEnterpriseMetadataTemplatesHeaders headers)
Used to retrieve all metadata templates created to be used specifically within the user's
enterprise.
|
MetadataTemplates |
getGlobalMetadataTemplates()
Used to retrieve all generic, global metadata templates available to all enterprises using Box.
|
MetadataTemplates |
getGlobalMetadataTemplates(GetGlobalMetadataTemplatesHeaders headers)
Used to retrieve all generic, global metadata templates available to all enterprises using Box.
|
MetadataTemplates |
getGlobalMetadataTemplates(GetGlobalMetadataTemplatesQueryParams queryParams)
Used to retrieve all generic, global metadata templates available to all enterprises using Box.
|
MetadataTemplates |
getGlobalMetadataTemplates(GetGlobalMetadataTemplatesQueryParams queryParams,
GetGlobalMetadataTemplatesHeaders headers)
Used to retrieve all generic, global metadata templates available to all enterprises using Box.
|
MetadataTemplate |
getMetadataTemplate(GetMetadataTemplateScope scope,
String templateKey)
Retrieves a metadata template by its `scope` and `templateKey` values.
|
MetadataTemplate |
getMetadataTemplate(GetMetadataTemplateScope scope,
String templateKey,
GetMetadataTemplateHeaders headers)
Retrieves a metadata template by its `scope` and `templateKey` values.
|
MetadataTemplate |
getMetadataTemplateById(String templateId)
Retrieves a metadata template by its ID.
|
MetadataTemplate |
getMetadataTemplateById(String templateId,
GetMetadataTemplateByIdHeaders headers)
Retrieves a metadata template by its ID.
|
MetadataTemplates |
getMetadataTemplatesByInstanceId(GetMetadataTemplatesByInstanceIdQueryParams queryParams)
Finds a metadata template by searching for the ID of an instance of the template.
|
MetadataTemplates |
getMetadataTemplatesByInstanceId(GetMetadataTemplatesByInstanceIdQueryParams queryParams,
GetMetadataTemplatesByInstanceIdHeaders headers)
Finds a metadata template by searching for the ID of an instance of the template.
|
NetworkSession |
getNetworkSession() |
MetadataTemplate |
updateMetadataTemplate(UpdateMetadataTemplateScope scope,
String templateKey,
List<UpdateMetadataTemplateRequestBody> requestBody)
Updates a metadata template.
|
MetadataTemplate |
updateMetadataTemplate(UpdateMetadataTemplateScope scope,
String templateKey,
List<UpdateMetadataTemplateRequestBody> requestBody,
UpdateMetadataTemplateHeaders headers)
Updates a metadata template.
|
public Authentication auth
public NetworkSession networkSession
public MetadataTemplatesManager()
protected MetadataTemplatesManager(MetadataTemplatesManager.Builder builder)
public MetadataTemplates getMetadataTemplatesByInstanceId(GetMetadataTemplatesByInstanceIdQueryParams queryParams)
queryParams - Query parameters of getMetadataTemplatesByInstanceId methodpublic MetadataTemplates getMetadataTemplatesByInstanceId(GetMetadataTemplatesByInstanceIdQueryParams queryParams, GetMetadataTemplatesByInstanceIdHeaders headers)
queryParams - Query parameters of getMetadataTemplatesByInstanceId methodheaders - Headers of getMetadataTemplatesByInstanceId methodpublic MetadataTemplate getMetadataTemplate(GetMetadataTemplateScope scope, String templateKey)
To find the `scope` and `templateKey` for a template, list all templates for an enterprise or globally, or list all templates applied to a file or folder.
scope - The scope of the metadata template. Example: "global"templateKey - The name of the metadata template. Example: "properties"public MetadataTemplate getMetadataTemplate(GetMetadataTemplateScope scope, String templateKey, GetMetadataTemplateHeaders headers)
To find the `scope` and `templateKey` for a template, list all templates for an enterprise or globally, or list all templates applied to a file or folder.
scope - The scope of the metadata template. Example: "global"templateKey - The name of the metadata template. Example: "properties"headers - Headers of getMetadataTemplate methodpublic MetadataTemplate updateMetadataTemplate(UpdateMetadataTemplateScope scope, String templateKey, List<UpdateMetadataTemplateRequestBody> requestBody)
The metadata template can only be updated if the template already exists.
The update is applied atomically. If any errors occur during the application of the operations, the metadata template will not be changed.
scope - The scope of the metadata template. Example: "global"templateKey - The name of the metadata template. Example: "properties"requestBody - Request body of updateMetadataTemplate methodpublic MetadataTemplate updateMetadataTemplate(UpdateMetadataTemplateScope scope, String templateKey, List<UpdateMetadataTemplateRequestBody> requestBody, UpdateMetadataTemplateHeaders headers)
The metadata template can only be updated if the template already exists.
The update is applied atomically. If any errors occur during the application of the operations, the metadata template will not be changed.
scope - The scope of the metadata template. Example: "global"templateKey - The name of the metadata template. Example: "properties"requestBody - Request body of updateMetadataTemplate methodheaders - Headers of updateMetadataTemplate methodpublic void deleteMetadataTemplate(DeleteMetadataTemplateScope scope, String templateKey)
scope - The scope of the metadata template. Example: "global"templateKey - The name of the metadata template. Example: "properties"public void deleteMetadataTemplate(DeleteMetadataTemplateScope scope, String templateKey, DeleteMetadataTemplateHeaders headers)
scope - The scope of the metadata template. Example: "global"templateKey - The name of the metadata template. Example: "properties"headers - Headers of deleteMetadataTemplate methodpublic MetadataTemplate getMetadataTemplateById(String templateId)
templateId - The ID of the template. Example: "f7a9891f"public MetadataTemplate getMetadataTemplateById(String templateId, GetMetadataTemplateByIdHeaders headers)
templateId - The ID of the template. Example: "f7a9891f"headers - Headers of getMetadataTemplateById methodpublic MetadataTemplates getGlobalMetadataTemplates()
public MetadataTemplates getGlobalMetadataTemplates(GetGlobalMetadataTemplatesQueryParams queryParams)
queryParams - Query parameters of getGlobalMetadataTemplates methodpublic MetadataTemplates getGlobalMetadataTemplates(GetGlobalMetadataTemplatesHeaders headers)
headers - Headers of getGlobalMetadataTemplates methodpublic MetadataTemplates getGlobalMetadataTemplates(GetGlobalMetadataTemplatesQueryParams queryParams, GetGlobalMetadataTemplatesHeaders headers)
queryParams - Query parameters of getGlobalMetadataTemplates methodheaders - Headers of getGlobalMetadataTemplates methodpublic MetadataTemplates getEnterpriseMetadataTemplates()
public MetadataTemplates getEnterpriseMetadataTemplates(GetEnterpriseMetadataTemplatesQueryParams queryParams)
queryParams - Query parameters of getEnterpriseMetadataTemplates methodpublic MetadataTemplates getEnterpriseMetadataTemplates(GetEnterpriseMetadataTemplatesHeaders headers)
headers - Headers of getEnterpriseMetadataTemplates methodpublic MetadataTemplates getEnterpriseMetadataTemplates(GetEnterpriseMetadataTemplatesQueryParams queryParams, GetEnterpriseMetadataTemplatesHeaders headers)
queryParams - Query parameters of getEnterpriseMetadataTemplates methodheaders - Headers of getEnterpriseMetadataTemplates methodpublic MetadataTemplate createMetadataTemplate(CreateMetadataTemplateRequestBody requestBody)
requestBody - Request body of createMetadataTemplate methodpublic MetadataTemplate createMetadataTemplate(CreateMetadataTemplateRequestBody requestBody, CreateMetadataTemplateHeaders headers)
requestBody - Request body of createMetadataTemplate methodheaders - Headers of createMetadataTemplate methodpublic Authentication getAuth()
public NetworkSession getNetworkSession()