Package io.jans.scim.model.scim2
Class SearchRequest
- java.lang.Object
-
- io.jans.scim.model.scim2.SearchRequest
-
public class SearchRequest extends Object
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 Constructor Description SearchRequest()
Default no args constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getAttributes()
String
getAttributesStr()
Integer
getCount()
List<String>
getExcludedAttributes()
String
getExcludedAttributesStr()
String
getFilter()
List<String>
getSchemas()
String
getSortBy()
String
getSortOrder()
Integer
getStartIndex()
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
setCount(Integer count)
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
setFilter(String filter)
A filter expression so that the search will return only those resources matching the expression.void
setSchemas(List<String> schemas)
void
setSortBy(String sortBy)
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 Detail
-
SearchRequest
public SearchRequest()
Default no args constructor. It creates an instance ofSearchRequest
initializingschemas
properly.
-
-
Method Detail
-
setAttributes
public 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.- Parameters:
attributes
- AList
of Strings
-
setAttributes
public 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.- Parameters:
commaSeparatedString
- The attribute names in a comma-separated String
-
setExcludedAttributes
public 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.- Parameters:
excludedAttributes
- AList
of Strings
-
setExcludedAttributes
public void setExcludedAttributes(String commaSeparatedString)
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
public String getFilter()
-
setFilter
public void setFilter(String filter)
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
public String getSortBy()
-
setSortBy
public void setSortBy(String sortBy)
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
public String getSortOrder()
-
setSortOrder
public void setSortOrder(String sortOrder)
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
public Integer getStartIndex()
-
setStartIndex
public void setStartIndex(Integer startIndex)
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
public Integer getCount()
-
setCount
public void setCount(Integer count)
Specifies the desired maximum number of query results per page the response must include.- Parameters:
count
- AnInteger
object
-
getAttributesStr
public String getAttributesStr()
-
getExcludedAttributesStr
public String getExcludedAttributesStr()
-
-