public class IGCSearch extends Object
| Constructor and Description |
|---|
IGCSearch() |
IGCSearch(List<String> types)
Creates a new search for all assets of the provided types.
|
IGCSearch(List<String> types,
IGCSearchConditionSet conditions)
Creates a new search for all assets of the provided types, based on the provided criteria.
|
IGCSearch(String type)
Creates a new search for all assets of the provided type.
|
IGCSearch(String type,
IGCSearchConditionSet conditions)
Creates a new search for assets of the provided type, based on the provided criteria.
|
IGCSearch(String type,
List<String> properties,
IGCSearchConditionSet conditions)
Creates a new search for assets of the provided type, based on the provided criteria, retrieving all of the
properties specified for each result.
|
IGCSearch(String type,
String[] properties,
IGCSearchConditionSet conditions)
Creates a new search for assets of the provided type, based on the provided criteria, retrieving all of the
properties specified for each result.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addConditions(IGCSearchConditionSet conditions)
Adds a set of conditions to use for the search.
|
void |
addProperties(List<String> properties)
Add all properties provided by the array as ones to include in the search.
|
void |
addProperty(String property)
Add a property for which to search.
|
void |
addSortingCriteria(IGCSearchSorting sortings)
Adds the provided sorting criteria to use for the search.
|
void |
addType(String type)
Add an asset type for which to search.
|
com.fasterxml.jackson.databind.JsonNode |
getQuery()
Retrieves the query string for this search object.
|
void |
setBeginAt(int beginAt)
Set the number of results to skip over before returning (ie.
|
void |
setDevGlossary(boolean on)
Set whether to search the development glossary (true) or published glossary (false).
|
void |
setPageSize(int size)
Set the number of results to include in each page.
|
String |
toString() |
public IGCSearch()
public IGCSearch(String type)
type - the type of assets to retrievepublic IGCSearch(List<String> types)
types - the types of assets to retrievepublic IGCSearch(String type, IGCSearchConditionSet conditions)
type - the type of assets to retrieveconditions - the set of conditions to use as search criteriapublic IGCSearch(List<String> types, IGCSearchConditionSet conditions)
types - the types of assets to retrieveconditions - the set of conditions to use as search criteriapublic IGCSearch(String type, List<String> properties, IGCSearchConditionSet conditions)
type - the type of assets to retrieveproperties - the properties to retrieve for each assetconditions - the set of conditions to use as search criteriapublic IGCSearch(String type, String[] properties, IGCSearchConditionSet conditions)
type - the type of assets to retrieveproperties - the properties to retrieve for each assetconditions - the set of conditions to use as search criteriapublic void addType(String type)
type - the name of the asset type to include in the searchpublic void addProperty(String property)
property - the name of the property to include in the searchpublic void addProperties(List<String> properties)
properties - the names of properties to include in the searchpublic void addConditions(IGCSearchConditionSet conditions)
conditions - the set of conditions to add to the search criteriapublic void addSortingCriteria(IGCSearchSorting sortings)
sortings - the criteria to use for sorting resultspublic void setPageSize(int size)
size - the number of results to include in each pagepublic void setBeginAt(int beginAt)
beginAt - the number at which to start returning resultspublic void setDevGlossary(boolean on)
on - set to true to search the development glossary, or false (default) to search publishedpublic com.fasterxml.jackson.databind.JsonNode getQuery()
Copyright © 2018–2021 ODPi. All rights reserved.