Package org.forgerock.api.annotations
Annotation Type 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
Required ElementsModifier and TypeRequired ElementDescriptionDescribe the standard operation details of this action.The type of query this method supports. -
Optional Element Summary
Optional ElementsModifier 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
-
operationDescription
Describe the standard operation details of this action. -
type
The type of query this method supports.
-
-
-
pagingModes
The paging modes that can be used with this query.- Default:
- {}
-
countPolicies
The 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
The query ID - required only whentype
isID
. If not supplied but required, the name of the annotated method is used.- Default:
- ""
-
queryableFields
The set of fields that can be used in a query filter. Required only when thetype
isFILTER
.- Default:
- {}
-
sortKeys
The keys that can be used to sort the results of the query.- Default:
- {}
-