@Retention(value=RUNTIME) @Target(value=METHOD) public @interface Query
The annotated method's return type must be:
Promise<QueryResponse, ? extends ResourceException> promise.org.forgerock.json.resource.QueryResourceHandler for the results of the query.org.forgerock.json.resource.QueryRequest for the request.Context to be given the context.RequestHandler,
SingletonProvider,
CollectionProvider| Modifier and Type | Required Element and Description |
|---|---|
Operation |
operationDescription
Describe the standard operation details of this action.
|
QueryType |
type
The type of query this method supports.
|
| Modifier and Type | Optional Element and Description |
|---|---|
CountPolicy[] |
countPolicies
The count policies that can be used with this query.
|
String |
id
The query ID - required only when
type is ID. |
PagingMode[] |
pagingModes
The paging modes that can be used with this query.
|
String[] |
queryableFields
The set of fields that can be used in a query filter.
|
String[] |
sortKeys
The keys that can be used to sort the results of the query.
|
public abstract Operation operationDescription
public abstract QueryType type
public abstract PagingMode[] pagingModes
public abstract CountPolicy[] countPolicies
public abstract String id
type is ID. If not supplied but required, the name of the
annotated method is used.public abstract String[] queryableFields
type is FILTER.public abstract String[] sortKeys
Copyright © 2025 Open Identity Platform Community. All rights reserved.