Uses of Class
org.forgerock.json.JsonPointer
Package
Description
Provides an API for the traversal and manipulation of JSON object model structures in Java.
Classes and interfaces for core types including connections, request
handlers, resources, and their exceptions.
Extension points for integrating with UMA functionality.
Secrets backend that reads secrets from a remote Hashicorp Vault server.
Provides a mechanism for implementing query filters.
-
Uses of JsonPointer in org.forgerock.json
Modifier and TypeFieldDescriptionstatic final JsonPointer
JsonPatch.FROM_PTR
Path to the "from" attribute of a patch entry.static final JsonPointer
JsonPatch.OP_PTR
Path to the "op" attribute of a patch entry.static final JsonPointer
JsonPatch.PATH_PTR
Path to the "path" attribute of a patch entry.static final JsonPointer
JsonPatch.VALUE_PTR
Path to the "value" attribute of a patch entry.Modifier and TypeMethodDescriptionJsonPointer.child
(int child) Returns a new JSON pointer, which identifies a specified child element of the array identified by this pointer.Returns a new JSON pointer, which identifies a specified child member of the object identified by this pointer.JsonPointer.concat
(JsonPointer suffix) Creates a new JSON pointer which is a descendant of this JSON pointer.JsonValue.getPointer()
Returns the pointer of the JSON value in its JSON structure.JsonPointer.head
(int endIndex) Returns a pointer which is a subsequence of the path elements contained in this pointer beginning with the first element (0) and ending with the element at positionendIndex-1
.JsonPointer.parent()
Returns a pointer to the parent of the JSON value identified by this JSON pointer, ornull
if the pointer has no parent JSON value (i.e.static JsonPointer
Constructs a JSON pointer from an iterable collection of reference tokens.static JsonPointer
Constructs a JSON pointer, identifying the specified pointer value.static JsonPointer
Constructs a JSON pointer from an array of reference tokens.JsonPointer.relativePointer()
Returns a pointer containing all but the first reference token contained in this pointer, or/
if this pointer contains less than 2 reference tokens.JsonPointer.relativePointer
(int sz) Returns a pointer containing the lastsz
reference tokens contained in this pointer.static JsonPointer
JsonPointer.rootPtr()
Returns a JSON pointer identifying the root value of a JSON structure.Modifier and TypeMethodDescriptionJsonValueFunctions.pointer()
Returns the JSON string value as a JSON pointer.Modifier and TypeMethodDescriptionJsonValue.add
(JsonPointer pointer, Object object) Adds the value identified by the specified pointer, relative to this value as root.JsonValue.addPermissive
(JsonPointer pointer, Object object) Adds the value identified by the specified pointer, relative to this value as root.JsonPointer.concat
(JsonPointer suffix) Creates a new JSON pointer which is a descendant of this JSON pointer.JsonValue.get
(JsonPointer pointer) Returns the specified child value with a pointer, relative to this value as root.boolean
JsonPointer.isPrefixOf
(JsonPointer candidate) Checks whethercandidate
is an extension of this JSON Pointer.JsonValue.put
(JsonPointer pointer, Object object) Sets the value identified by the specified pointer, relative to this value as root.JsonValue.putPermissive
(JsonPointer pointer, Object object) Sets the value identified by the specified pointer, relative to this value as root.void
JsonValue.remove
(JsonPointer pointer) Removes the specified child value with a pointer, relative to this value as root.ModifierConstructorDescriptionJsonValue
(Object object, JsonPointer pointer) Constructs a JSON value object with a given object and pointer. -
Uses of JsonPointer in org.forgerock.json.resource
Modifier and TypeFieldDescriptionstatic final JsonPointer
Resources.FIELD_VALUE_ALL_PTR
JsonPointer used in fields to denote "all fields", i.e., no filtering.Modifier and TypeMethodDescriptionPatchOperation.getField()
Returns the field targeted by the patch operation.SortKey.getField()
Returns the sort key field.PatchOperation.getFrom()
Returns the source field for move and copy operations.Modifier and TypeMethodDescriptionActionRequest.getFields()
CreateRequest.getFields()
DeleteRequest.getFields()
PatchRequest.getFields()
QueryRequest.getFields()
ReadRequest.getFields()
Request.getFields()
Returns the list of fields which should be included with each JSON resource returned by this request.ResourceResponse.getFields()
Returns the list of fields which should be included in this JSON resource after field filtering has occurred.UpdateRequest.getFields()
QueryRequest.getQueryFilter()
Returns the query filter which will be used for selecting which JSON resources will be returned.static QueryFilter<JsonPointer>
Parses the provided query string into aQueryFilter
.JsonValueFunctions.queryFilter()
Parses and returns the JSON string value as aQueryFilter
.Modifier and TypeMethodDescriptionstatic PatchOperation
PatchOperation.add
(JsonPointer field, Object value) Creates a new "add" patch operation which will add the provided value(s) to the specified field.ActionRequest.addField
(JsonPointer... fields) CreateRequest.addField
(JsonPointer... fields) DeleteRequest.addField
(JsonPointer... fields) PatchRequest.addField
(JsonPointer... fields) QueryRequest.addField
(JsonPointer... fields) ReadRequest.addField
(JsonPointer... fields) Request.addField
(JsonPointer... fields) Adds one or more fields which should be included with each JSON resource returned by this request.void
ResourceResponse.addField
(JsonPointer... fields) Adds a field to the list of fields which should be included in this JSON resource after field filtering has occurred.UpdateRequest.addField
(JsonPointer... fields) static SortKey
SortKey.ascendingOrder
(JsonPointer field) Creates a new ascending-order sort key for the provided JSON field.static PatchOperation
PatchOperation.copy
(JsonPointer from, JsonPointer field) Creates a new "copy" patch operation which will copy the value found at `from` to `path`.static SortKey
SortKey.descendingOrder
(JsonPointer field) Creates a new descending-order sort key for the provided JSON field.static PatchOperation
PatchOperation.increment
(JsonPointer field, Number amount) Creates a new "increment" patch operation which will increment the value(s) of the specified field by the amount provided.static PatchOperation
PatchOperation.move
(JsonPointer from, JsonPointer field) Creates a new "move" patch operation which will move the value found at `from` to `path`.static PatchOperation
PatchOperation.operation
(String operation, JsonPointer field, Object value) Creates a new patch operation having the specified operation type, field, and value(s).static PatchOperation
PatchOperation.remove
(JsonPointer field) Creates a new "remove" patch operation which will remove the specified field.static PatchOperation
PatchOperation.remove
(JsonPointer field, Object value) Creates a new "remove" patch operation which will remove the provided value(s) from the specified field.static PatchOperation
PatchOperation.replace
(JsonPointer field, Object value) Creates a new "replace" patch operation which will replace the value(s) of the specified field with the provided value(s).static PatchOperation
PatchOperation.transform
(JsonPointer field, Object transform) Creates a new "transform" patch operation which sets the value at field based on a transformation.Modifier and TypeMethodDescriptionstatic JsonValue
Resources.filterResource
(JsonValue resource, Collection<JsonPointer> fields) Returns a JSON object containing only the specified fields from the provided JSON value.static ResourceResponse
Resources.filterResource
(ResourceResponse resource, Collection<JsonPointer> fields) Returns a JSON object containing only the specified fields from the provided resource.QueryRequest.setQueryFilter
(QueryFilter<JsonPointer> filter) Sets the query filter which will be used for selecting which JSON resources will be returned. -
Uses of JsonPointer in org.forgerock.openam.uma.extensions
Modifier and TypeMethodDescriptionResourceDelegationFilter.beforeQueryResourceSets
(String userId, QueryFilter<JsonPointer> queryFilter) Invoked before a users, owned and shared with, resource sets a queried.Modifier and TypeMethodDescriptionResourceDelegationFilter.beforeQueryResourceSets
(String userId, QueryFilter<JsonPointer> queryFilter) Invoked before a users, owned and shared with, resource sets a queried. -
Uses of JsonPointer in org.forgerock.secrets.vault
ModifierConstructorDescriptionVaultKeyValueSecretStore
(SecretReference<GenericSecret> tokenReference, Map<JsonPointer, ? extends VaultKeyValueSecretStore.SecretFieldDecoder> fieldDecoders, VaultConfig config) Constructs the key-value store using the given authentication token and options. -
Uses of JsonPointer in org.forgerock.util.query
Modifier and TypeMethodDescriptionJsonValueFilterVisitor.jsonValueFilterVisitor()
Returns aQueryFilterVisitor
that can assess if aJsonValue
resource matches a set of criteria defined by aQueryFilter
.Modifier and TypeMethodDescriptionJsonValueFilterVisitor.visitComplexFilter
(JsonValue p, JsonPointer field, QueryFilter<JsonPointer> subFilter) JsonValueFilterVisitor.visitContainsFilter
(JsonValue p, JsonPointer field, Object valueAssertion) JsonValueFilterVisitor.visitEqualsFilter
(JsonValue p, JsonPointer field, Object valueAssertion) JsonValueFilterVisitor.visitExtendedMatchFilter
(JsonValue p, JsonPointer field, String matchingRuleId, Object valueAssertion) JsonValueFilterVisitor.visitGreaterThanFilter
(JsonValue p, JsonPointer field, Object valueAssertion) JsonValueFilterVisitor.visitGreaterThanOrEqualToFilter
(JsonValue p, JsonPointer field, Object valueAssertion) JsonValueFilterVisitor.visitLessThanFilter
(JsonValue p, JsonPointer field, Object valueAssertion) JsonValueFilterVisitor.visitLessThanOrEqualToFilter
(JsonValue p, JsonPointer field, Object valueAssertion) JsonValueFilterVisitor.visitPresentFilter
(JsonValue p, JsonPointer field) JsonValueFilterVisitor.visitStartsWithFilter
(JsonValue p, JsonPointer field, Object valueAssertion) Modifier and TypeMethodDescriptionJsonValueFilterVisitor.visitAndFilter
(JsonValue p, List<QueryFilter<JsonPointer>> subFilters) JsonValueFilterVisitor.visitComplexFilter
(JsonValue p, JsonPointer field, QueryFilter<JsonPointer> subFilter) JsonValueFilterVisitor.visitNotFilter
(JsonValue p, QueryFilter<JsonPointer> subFilter) JsonValueFilterVisitor.visitOrFilter
(JsonValue p, List<QueryFilter<JsonPointer>> subFilters)