Package org.forgerock.api.annotations
Annotation Interface Query
Indicates an CREST query method on an annotated POJO. This annotation can only be used on
collection resource request handlers.
The annotated method's return type must be:
- A
Promise<QueryResponse, ? extends ResourceException>
promise.
- A
org.forgerock.json.resource.QueryResourceHandler
for the results of the query. - A
org.forgerock.json.resource.QueryRequest
for the request.
- A
Context
to be given the context.
-
Required Element Summary
Modifier and TypeRequired ElementDescriptionDescribe the standard operation details of this action.The type of query this method supports. -
Optional Element Summary
Modifier and TypeOptional ElementDescriptionThe count policies that can be used with this query.The query ID - required only whentype
isID
.The paging modes that can be used with this query.String[]
The set of fields that can be used in a query filter.String[]
The keys that can be used to sort the results of the query.
-
Element Details
-
-
pagingModes
PagingMode[] pagingModesThe paging modes that can be used with this query.- Default:
- {}
-
countPolicies
CountPolicy[] countPoliciesThe count policies that can be used with this query. If the array is empty, this means that the query does not support any form of count policy, and no value for count policy should be specified- Default:
- {}
-
id
String idThe query ID - required only whentype
isID
. If not supplied but required, the name of the annotated method is used.- Default:
- ""
-
queryableFields
String[] queryableFieldsThe set of fields that can be used in a query filter. Required only when thetype
isFILTER
.- Default:
- {}
-
sortKeys
String[] sortKeysThe keys that can be used to sort the results of the query.- Default:
- {}
-