public class CrestQuery extends Object
| Constructor and Description |
|---|
CrestQuery(org.forgerock.util.query.QueryFilter<org.forgerock.json.JsonPointer> queryFilter)
Constructs a new CrestQuery instance with the specified query filter.
|
CrestQuery(String queryIdPattern)
Constructs a new CrestQuery instance with the specified query id.
|
CrestQuery(String queryId,
org.forgerock.util.query.QueryFilter<org.forgerock.json.JsonPointer> queryFilter,
List<org.forgerock.json.JsonPointer> fields)
Constructs a new CrestQuery instance with the specified query filter.
|
CrestQuery(String queryId,
org.forgerock.util.query.QueryFilter<org.forgerock.json.JsonPointer> queryFilter,
List<org.forgerock.json.JsonPointer> fields,
boolean escapeQueryId)
Constructs a new CrestQuery instance with the specified query filter.
|
| Modifier and Type | Method and Description |
|---|---|
List<org.forgerock.json.JsonPointer> |
getFields()
Gets the list of CREST fields that should be returned in the query result.
|
org.forgerock.util.query.QueryFilter<org.forgerock.json.JsonPointer> |
getQueryFilter()
Gets the CREST query filter.
|
String |
getQueryId()
Gets the CREST query id.
|
boolean |
hasQueryFilter()
Determines if the CREST query is based on a query filter.
|
boolean |
hasQueryId()
Determines if the CREST query is based on a query id.
|
boolean |
isEscapeQueryId()
Determines if queryId for the CREST should be escaped
|
String |
toString()
This is mainly for debugging purposes so you can say "this is a rough idea of the CrestQuery object I've
been handed".
|
public CrestQuery(String queryIdPattern)
queryIdPattern - The query id.public CrestQuery(org.forgerock.util.query.QueryFilter<org.forgerock.json.JsonPointer> queryFilter)
queryFilter - The query filter.public CrestQuery(String queryId, org.forgerock.util.query.QueryFilter<org.forgerock.json.JsonPointer> queryFilter, List<org.forgerock.json.JsonPointer> fields)
queryId - The query ID.queryFilter - The query filter.fields - The fields to return in the query results.public CrestQuery(String queryId, org.forgerock.util.query.QueryFilter<org.forgerock.json.JsonPointer> queryFilter, List<org.forgerock.json.JsonPointer> fields, boolean escapeQueryId)
queryId - The query ID.queryFilter - The query filter.fields - The fields to return in the query results.escapeQueryId - escapes queryId to prevent LDAP injectionpublic String getQueryId()
public org.forgerock.util.query.QueryFilter<org.forgerock.json.JsonPointer> getQueryFilter()
public List<org.forgerock.json.JsonPointer> getFields()
public boolean hasQueryId()
public boolean hasQueryFilter()
public boolean isEscapeQueryId()
Copyright © 2010–2023 Open Identity Platform Community. All rights reserved.