Class ResourceQuery
Object
se.curity.identityserver.sdk.data.query.ResourceQuery
- All Implemented Interfaces:
SerializableAsMap
Representation of a resource query which can be used to limit selected resources.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA query for specific attributes.static final classEnumeration of attributes to be excluded from a query result.static final classEnumeration of attributes to be included in a query result.static final classPagination parameter of the query.static classSorting parameter of the query. -
Method Summary
Modifier and TypeMethodDescriptionasMap()static ResourceQuerycreate(ResourceQuery.AttributesEnumeration attributesEnumeration, ResourceQuery.Pagination pagination, @Nullable ResourceQuery.Sorting sorting, @Nullable Filter filter) Creates a resource query out of the provided components.static ResourceQueryempty()toString()
-
Method Details
-
empty
- Returns:
- the empty resource query. This query should match all records, but may impose a limit on the number of records returned.
-
create
public static ResourceQuery create(ResourceQuery.AttributesEnumeration attributesEnumeration, ResourceQuery.Pagination pagination, @Nullable ResourceQuery.Sorting sorting, @Nullable Filter filter) Creates a resource query out of the provided components.- Parameters:
attributesEnumeration- TheResourceQuery.AttributesEnumerationto usepagination- TheResourceQuery.Paginationto usesorting- WhatResourceQuery.Sortingshould be used (if any)filter- What SCIMFiltershould be used (if any)- Returns:
- A
ResourceQuerywith all provided components combined - Since:
- 3.0.0
-
getAttributesEnumeration
- Returns:
- enumeration of attributes for inclusion or exclusion.
-
getPagination
- Returns:
- the pagination parameters.
-
getSorting
- Returns:
- the query sorting parameter, if any, or null.
-
getFilter
- Returns:
- the query filter, if any, or null.
-
asMap
- Specified by:
asMapin interfaceSerializableAsMap- Returns:
- representation of this Object as a Map containing only Java primitive types, plus instances of
Collection,StringandMap.It should be possible to fully re-construct this Object from a Map obtained by calling this method.
Unfortunately, in Java it is quite hard to make the type system enforce this condition, so implementators must be especially careful about this.
- Since:
- 2.2.0
-
toString
-