public class MetadataQuery extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MetadataQuery.OrderBy |
Constructor and Description |
---|
MetadataQuery(String from)
Creates Metadata Query
|
MetadataQuery(String from,
int limit)
Creates Metadata Query
|
Modifier and Type | Method and Description |
---|---|
MetadataQuery |
addParameter(String name,
boolean value)
Adds parameter to query
|
MetadataQuery |
addParameter(String name,
double value)
Adds parameter to query
|
MetadataQuery |
addParameter(String name,
float value)
Adds parameter to query
|
MetadataQuery |
addParameter(String name,
int value)
Adds parameter to query
|
MetadataQuery |
addParameter(String name,
JsonValue value)
Adds parameter to query
|
MetadataQuery |
addParameter(String name,
long value)
Adds parameter to query
|
MetadataQuery |
addParameter(String name,
String value)
Adds parameter to query
|
MetadataQuery |
setAncestorFolderId(String ancestorFolderId)
Sets the folder_id to which to restrain the query.
|
MetadataQuery |
setFields(String... fields)
The fields to retrieve.
|
MetadataQuery |
setMarker(String marker)
The marker to use for requesting the next page
|
MetadataQuery |
setOrderBy(MetadataQuery.OrderBy... fields)
The field_key(s) to order on and the corresponding direction(s)
|
MetadataQuery |
setQuery(String query)
The logical expression of the query
|
public MetadataQuery(String from, int limit)
from
- The template used in the query. Must be in the form scope_enterpriseID.templateKeylimit
- Max results to return for a single request (0-100 inclusive)public MetadataQuery(String from)
from
- The template used in the query. Must be in the form scope.templateKeypublic MetadataQuery setQuery(String query)
query
- Query stringpublic MetadataQuery setAncestorFolderId(String ancestorFolderId)
ancestorFolderId
- The folder idpublic MetadataQuery setMarker(String marker)
marker
- Marker string.public MetadataQuery setOrderBy(MetadataQuery.OrderBy... fields)
fields
- Fields with sort orderpublic MetadataQuery setFields(String... fields)
fields
- Field namespublic MetadataQuery addParameter(String name, String value)
name
- Parameter namevalue
- Parameter valuepublic MetadataQuery addParameter(String name, int value)
name
- Parameter namevalue
- Parameter valuepublic MetadataQuery addParameter(String name, boolean value)
name
- Parameter namevalue
- Parameter valuepublic MetadataQuery addParameter(String name, float value)
name
- Parameter namevalue
- Parameter valuepublic MetadataQuery addParameter(String name, long value)
name
- Parameter namevalue
- Parameter valuepublic MetadataQuery addParameter(String name, double value)
name
- Parameter namevalue
- Parameter valuepublic MetadataQuery addParameter(String name, JsonValue value)
name
- Parameter namevalue
- Parameter value