Package org.forgerock.api.models
Class Query.Builder
- Enclosing class:
- Query
Builder to help construct the Read.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the Query instance.countPolicies
(CountPolicy... countPolicy) Set the supported page count policies.pagingModes
(PagingMode... pagingMode) Set the paging mode.queryableFields
(String... queryableFields) Set the queryable fields.Set the query id.protected Query.Builder
self()
Returns the builder instance.supportedSortKeys
(String... supportedSortKeys) Set the supported sort keys.Set the query type.Methods inherited from class org.forgerock.api.models.Operation.Builder
description, description, detailsFromAnnotation, error, errors, parameter, parameters, stability, supportedLocales
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
self
Returns the builder instance.- Specified by:
self
in classOperation.Builder<Query.Builder>
- Returns:
- Builder
-
type
Set the query type.- Parameters:
type
- query type enum- Returns:
- Builder
-
pagingModes
Set the paging mode.- Parameters:
pagingMode
- Query paging mode enum- Returns:
- Builder
-
countPolicies
Set the supported page count policies. 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.- Parameters:
countPolicy
- Array of supported paging mode policies- Returns:
- Builder
-
queryId
Set the query id. Required if “type” is ID.- Parameters:
queryId
- Query id- Returns:
- Builder
-
queryableFields
Set the queryable fields.- Parameters:
queryableFields
- Array of the fields that are queryable- Returns:
- Builder
-
supportedSortKeys
Set the supported sort keys.- Parameters:
supportedSortKeys
- Array of supported sort keys- Returns:
- Builder
-
build
Builds the Query instance.- Returns:
- Query instance
-