public class MetadataFilter extends SerializableObject
| Modifier and Type | Class and Description |
|---|---|
static class |
MetadataFilter.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,MetadataFilterValue> |
filters
Specifies which fields on the template to filter the search results by.
|
protected EnumWrapper<MetadataFilterScopeField> |
scope
Specifies the scope of the template to filter search results by.
|
protected String |
templateKey
The key of the template used to filter search results.
|
explicitlySetNullableFields| Modifier | Constructor and Description |
|---|---|
|
MetadataFilter() |
protected |
MetadataFilter(MetadataFilter.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Map<String,MetadataFilterValue> |
getFilters() |
EnumWrapper<MetadataFilterScopeField> |
getScope() |
String |
getTemplateKey() |
int |
hashCode() |
String |
toString() |
getRawData, setRawDatagetExplicitlySetNullableFields, isFieldExplicitlySet, markNullableFieldAsSet, markNullableFieldsAsSetprotected EnumWrapper<MetadataFilterScopeField> scope
This will be `enterprise_{enterprise_id}` for templates defined for use in this enterprise, and `global` for general templates that are available to all enterprises using Box.
protected String templateKey
In many cases the template key is automatically derived of its display name, for example `Contract Template` would become `contractTemplate`. In some cases the creator of the template will have provided its own template key.
Please [list the templates for an enterprise][list], or get all instances on a [file][file] or [folder][folder] to inspect a template's key.
[list]: https://developer.box.com/reference/get-metadata-templates-enterprise [file]: https://developer.box.com/reference/get-files-id-metadata [folder]: https://developer.box.com/reference/get-folders-id-metadata
protected Map<String,MetadataFilterValue> filters
public MetadataFilter()
protected MetadataFilter(MetadataFilter.Builder builder)
public EnumWrapper<MetadataFilterScopeField> getScope()
public String getTemplateKey()
public Map<String,MetadataFilterValue> getFilters()