Package org.gluu.oxtrust.model.scim2
Class SearchRequest
java.lang.Object
org.gluu.oxtrust.model.scim2.SearchRequest
This class represents the components of a search request that is employed when doing searches via POST.
See section 3.4.3 RFC 7644.
- Author:
- Val Pecaoco
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCount()voidsetAttributes(String commaSeparatedString) Specifies the names of the resource attributes to return in the response to a search, overriding the set of attributes that would be returned by default.voidsetAttributes(List<String> attributes) Specifies a list of strings indicating the names of the resource attributes to return in response to a search, overriding the set of attributes that would be returned by default.voidSpecifies the desired maximum number of query results per page the response must include.voidsetExcludedAttributes(String commaSeparatedString) Specifies the names of the resource attributes to be removed from the default set of attributes to return.voidsetExcludedAttributes(List<String> excludedAttributes) Specifies a list of strings indicating the names of the resource attributes to be removed from the default set of attributes to return.voidA filter expression so that the search will return only those resources matching the expression.voidsetSchemas(List<String> schemas) voidSpecifies the attribute whose value will be used to order the returned responses.voidsetSortOrder(String sortOrder) The order in which thesortByparameter is applied.voidsetStartIndex(Integer startIndex) Sets the 1-based index of the first query result.
-
Constructor Details
-
SearchRequest
public SearchRequest()Default no args constructor. It creates an instance ofSearchRequestinitializingschemasproperly.
-
-
Method Details
-
getSchemas
-
setSchemas
-
getAttributes
-
setAttributes
Specifies a list of strings indicating the names of the resource attributes to return in response to a search, overriding the set of attributes that would be returned by default.- Parameters:
attributes- AListof Strings
-
setAttributes
Specifies the names of the resource attributes to return in the response to a search, overriding the set of attributes that would be returned by default.- Parameters:
commaSeparatedString- The attribute names in a comma-separated String
-
getExcludedAttributes
-
setExcludedAttributes
Specifies a list of strings indicating the names of the resource attributes to be removed from the default set of attributes to return.- Parameters:
excludedAttributes- AListof Strings
-
setExcludedAttributes
Specifies the names of the resource attributes to be removed from the default set of attributes to return.- Parameters:
commaSeparatedString- The attribute names in a comma-separated String
-
getFilter
-
setFilter
A filter expression so that the search will return only those resources matching the expression. To learn more about SCIM filter expressions and operators, see section 3.4.2.2 of RFC 7644.- Parameters:
filter- A valid filter
-
getSortBy
-
setSortBy
Specifies the attribute whose value will be used to order the returned responses.- Parameters:
sortBy- Attribute name path. Examples are:userName, name.givenName, emails.value.
-
getSortOrder
-
setSortOrder
The order in which thesortByparameter is applied. Allowed values are "ascending" and "descending", being "ascending" the default if unspecified.- Parameters:
sortOrder- A string value
-
getStartIndex
-
setStartIndex
Sets the 1-based index of the first query result.- Parameters:
startIndex- Specifies "where" the result set will start when the search is performed
-
getCount
-
setCount
Specifies the desired maximum number of query results per page the response must include.- Parameters:
count- AnIntegerobject
-
getAttributesStr
-
getExcludedAttributesStr
-