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()
void
setAttributes
(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.void
setAttributes
(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.void
Specifies the desired maximum number of query results per page the response must include.void
setExcludedAttributes
(String commaSeparatedString) Specifies the names of the resource attributes to be removed from the default set of attributes to return.void
setExcludedAttributes
(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.void
A filter expression so that the search will return only those resources matching the expression.void
setSchemas
(List<String> schemas) void
Specifies the attribute whose value will be used to order the returned responses.void
setSortOrder
(String sortOrder) The order in which thesortBy
parameter is applied.void
setStartIndex
(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 ofSearchRequest
initializingschemas
properly.
-
-
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
- AList
of 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
- AList
of 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 thesortBy
parameter 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
- AnInteger
object
-
getAttributesStr
-
getExcludedAttributesStr
-