Class VocabularySearchRequest
-
Method Summary
Modifier and TypeMethodDescriptionaddAttributeFilters
(String... attributeFilters) addAttributeMatch
(String attribute, String... valueMatches) addHasAttributes
(String... hasAttributes) static VocabularySearchRequest
build
(VocabularyUri vocabularyUri) boolean
getLimit()
int
hashCode()
boolean
boolean
setAttributeFilters
(Collection<String> attributeNames) Clear all attributes and if the provided collection is not null use all the attributes from that collectionsetAttributeMatch
(Map<String, List<String>> attributeMatch) Clear all attributes and if the provided collection is not null use all the attributes from that collectionsetElementId
(ElementUri elementId) setFreeTextSearch
(String freeTextSearch) Set the free text search stringsetFromDate
(Date fromDate) setHasAttributes
(Collection<String> hasAttributes) Clear all attributes and if the provided collection is not null use all the attributes from that collectionsetIncludeAttributes
(boolean includeAttributes) setIncludeChildList
(boolean includeChildList) Set the page size limit for the searchSet the offset for the search, not-inclusivevoid
-
Method Details
-
build
-
getVocabularyUri
-
getElementId
-
setElementId
-
isIncludeAttributes
public boolean isIncludeAttributes() -
setIncludeAttributes
-
getAttributeFilters
-
addAttributeFilters
-
isIncludeChildList
public boolean isIncludeChildList() -
setIncludeChildList
-
getFromDate
-
setFromDate
-
getToDate
-
setToDate
-
getAttributeMatch
-
addAttributeMatch
-
getHasAttributes
-
addHasAttributes
-
setAttributeFilters
Clear all attributes and if the provided collection is not null use all the attributes from that collectionAttribute filters are used to filter out attributes of matched elements by the attribute names. They do not affect what elements will match, only what attributes will be included in the result.
- Parameters:
attributeNames
- collection of attributes names to allow- Returns:
- instance of this request
-
setAttributeMatch
Clear all attributes and if the provided collection is not null use all the attributes from that collectionAttribute matchers are used to filter out vocabulary elements by attribute name and values. Element has to match all attribute matchers.
- Parameters:
attributeMatch
- allowed values for matching attribute name- Returns:
- instance of this request
-
setHasAttributes
Clear all attributes and if the provided collection is not null use all the attributes from that collectionHas attributes is used to filter out vocabulary elements that don't have any of the required attribute names
- Parameters:
hasAttributes
- need vocabulary element attributes- Returns:
- instance of this request
-
equals
-
hashCode
public int hashCode() -
setVocabularyUri
-
getAttributeFiltersAsPredicate
-
getOffset
-
setOffset
Set the offset for the search, not-inclusiveE.g. if offset is 10, the first 10 elements will be skipped
If set to null, no offset will be applied
- Parameters:
offset
- positive offset or null- Returns:
- instance of this request
-
getLimit
-
setLimit
Set the page size limit for the searchE.g. if limit is 10, only 10 elements will be returned even if more elements match the search
If set to null, the maximum number of elements will be returned
- Parameters:
limit
- positive limit or null- Returns:
- instance of this request
-
getFreeTextSearch
-
setFreeTextSearch
Set the free text search stringFree text search depends on the database implementation, but generally matches as many elements as possible, both by element id and attribute values
If a null or blank string is provided, the free text search will be disabled
- Parameters:
freeTextSearch
- free text search string or null- Returns:
- instance of this request
-