Uses of Class
org.forgerock.json.JsonValue
-
Packages that use JsonValue Package Description org.forgerock.audit Package contains the AuditService.org.forgerock.audit.events Package contains audit events.org.forgerock.audit.events.handlers This package contains the defaultAuditEventHandlers
.org.forgerock.audit.events.handlers.buffering This package contains the batch publisher and its various implementations.org.forgerock.audit.filter Contains the classes for filtering audit events.org.forgerock.audit.handlers.csv This package contains the default AuditEventHandler implementations.org.forgerock.audit.handlers.elasticsearch This package contains the ElasticsearchAuditEventHandler
implementation.org.forgerock.audit.handlers.jms This package contains a JMS AuditEventHandler implementation.org.forgerock.audit.handlers.json This package contains the JSON-fileAuditEventHandler
implementation.org.forgerock.audit.handlers.json.stdout This package contains the JSON-stdoutAuditEventHandler
implementation.org.forgerock.audit.handlers.splunk This package contains the audit handler implementation for Splunk.org.forgerock.audit.handlers.syslog This package contains a Syslog AuditEventHandler implementation.org.forgerock.audit.json This package contains utilities to build and configure audit service and handlers from JSON configuration.org.forgerock.audit.util This package contains utility classes used in the audit service.org.forgerock.config.resolvers This package contains the common config property resolvers.org.forgerock.config.util Contains utility classes for commons config.org.forgerock.json Provides an API for the traversal and manipulation of JSON object model structures in Java.org.forgerock.json.resource Classes and interfaces for core types including connections, request handlers, resources, and their exceptions.org.forgerock.json.resource.http JSON resource Commons HTTP Framework integration.org.forgerock.json.schema.validator.exceptions Schema validator exceptions.org.forgerock.opendj.rest2ldap APIs for implementing REST to LDAP gateways.org.forgerock.opendj.server.core Classes implementing core server APIs.org.forgerock.tokenhandler Provides token handler definition.org.forgerock.util.query Provides a mechanism for implementing query filters.org.opends.server.api Contains a number of API declarations for use throughout the Directory Server.org.opends.server.protocols.jmx Contains the implementation for the Directory Server connection handler that is responsible for interacting with clients using JMX.org.opends.server.protocols.ldap Contains the implementation for the Directory Server connection handler that is responsible for interacting with clients using LDAPv3.org.opends.server.replication.common This package contains utilities that can are used by all the packages below org.opends.server.replication.org.opends.server.replication.protocol This package contains the code used by the replication server and by the code running on the Directory Server side to exchange their information.org.opends.server.replication.server.changelog.api This package contains the API for the changelog database. -
-
Uses of JsonValue in org.forgerock.audit
Constructors in org.forgerock.audit with parameters of type JsonValue Constructor Description AuditingContext(JsonValue savedContext, ClassLoader classLoader)
Restore a serialized audit context. -
Uses of JsonValue in org.forgerock.audit.events
Fields in org.forgerock.audit.events declared as JsonValue Modifier and Type Field Description protected JsonValue
AuditEventBuilder. jsonValue
Represents the event as a JSON value.Methods in org.forgerock.audit.events that return JsonValue Modifier and Type Method Description static JsonValue
AuditEventHelper. getAuditEventProperties(JsonValue auditEvent)
Gets the Audit Event schema properties.static JsonValue
AuditEventHelper. getAuditEventSchema(JsonValue auditEvent)
Gets the Audit Event schema.JsonValue
EventTopicsMetaData. getSchema(String topic)
Returns the JSON schema for the requested topic if this object has meta-data for that topic.JsonValue
AuditEvent. getValue()
Returns the Json value of this event.Methods in org.forgerock.audit.events with parameters of type JsonValue Modifier and Type Method Description static JsonValue
AuditEventHelper. getAuditEventProperties(JsonValue auditEvent)
Gets the Audit Event schema properties.static JsonValue
AuditEventHelper. getAuditEventSchema(JsonValue auditEvent)
Gets the Audit Event schema.static List<String>
AuditEventHelper. getConfiguredAuditEventHandlers(JsonValue auditEvent)
Gets the AuditEventHandlers that the audit event is configure to log to.static String
AuditEventHelper. getPropertyType(JsonValue auditEvent, JsonPointer property)
Gets a AuditEvent property type.static boolean
AuditEventHelper. isPropertyRequired(JsonValue auditEvent, JsonPointer property)
Gets whether a AuditEvent property is required.T
AccessAuditEventBuilder. request(String protocol, String operation, JsonValue detail)
Sets the provided request details for the event.T
AccessAuditEventBuilder. responseWithDetail(AccessAuditEventBuilder.ResponseStatus status, String statusCode, long elapsedTime, TimeUnit elapsedTimeUnits, JsonValue detail)
Sets the provided response for the event, with an additional detail.EventTopicsMetaDataBuilder
EventTopicsMetaDataBuilder. withAdditionalTopicSchemas(JsonValue additionalTopicSchemas)
Specifies schemas for additional topics.EventTopicsMetaDataBuilder
EventTopicsMetaDataBuilder. withCoreTopicSchemaExtensions(JsonValue coreTopicSchemaExtensions)
Specifies additional fields that should be added to the schemas for core event topics.Constructor parameters in org.forgerock.audit.events with type arguments of type JsonValue Constructor Description EventTopicsMetaData(Map<String,JsonValue> eventTopicsMetaData)
Create a new EventTopicsMetaData. -
Uses of JsonValue in org.forgerock.audit.events.handlers
Methods in org.forgerock.audit.events.handlers that return JsonValue Modifier and Type Method Description JsonValue
AuditEventTopicState. getEvent()
Returns the event content.Methods in org.forgerock.audit.events.handlers with parameters of type JsonValue Modifier and Type Method Description Promise<ResourceResponse,ResourceException>
AuditEventHandler. publishEvent(org.forgerock.services.context.Context context, String topic, JsonValue event)
Publishes an event to the provided topic.Promise<ResourceResponse,ResourceException>
NoOpAuditEventHandler. publishEvent(org.forgerock.services.context.Context context, String topic, JsonValue event)
Constructors in org.forgerock.audit.events.handlers with parameters of type JsonValue Constructor Description AuditEventTopicState(org.forgerock.services.context.Context context, String topic, JsonValue event)
Creates a (topic,event) pair. -
Uses of JsonValue in org.forgerock.audit.events.handlers.buffering
Methods in org.forgerock.audit.events.handlers.buffering with parameters of type JsonValue Modifier and Type Method Description void
BatchConsumer. addToBatch(String topic, JsonValue event, StringBuilder payload)
Adds an audit event to a batch payload.boolean
BatchPublisher. offer(String topic, JsonValue event)
Offers up an event to be added to a batch.boolean
BufferedBatchPublisher. offer(String topic, JsonValue event)
Inserts the specified element at the tail of this queue if it is possible to do so immediately without exceeding the queue's capacity, returningtrue
upon success andfalse
if this queue is full. -
Uses of JsonValue in org.forgerock.audit.filter
Methods in org.forgerock.audit.filter with parameters of type JsonValue Modifier and Type Method Description void
Filter. doFilter(String auditTopic, JsonValue auditEvent)
Runs a filter on the given audit event. -
Uses of JsonValue in org.forgerock.audit.handlers.csv
Methods in org.forgerock.audit.handlers.csv with parameters of type JsonValue Modifier and Type Method Description Promise<ResourceResponse,ResourceException>
CsvAuditEventHandler. publishEvent(org.forgerock.services.context.Context context, String topic, JsonValue event)
Create a csv audit log entry. -
Uses of JsonValue in org.forgerock.audit.handlers.elasticsearch
Methods in org.forgerock.audit.handlers.elasticsearch with parameters of type JsonValue Modifier and Type Method Description void
ElasticsearchAuditEventHandler. addToBatch(String topic, JsonValue event, StringBuilder payload)
Adds an audit event to an Elasticsearch Bulk API payload.Promise<ResourceResponse,ResourceException>
ElasticsearchAuditEventHandler. publishEvent(org.forgerock.services.context.Context context, String topic, JsonValue event)
protected Promise<ResourceResponse,ResourceException>
ElasticsearchAuditEventHandler. publishSingleEvent(String topic, JsonValue event)
Publishes a single event to the provided topic. -
Uses of JsonValue in org.forgerock.audit.handlers.jms
Methods in org.forgerock.audit.handlers.jms with parameters of type JsonValue Modifier and Type Method Description void
JmsAuditEventHandler. addToBatch(String topic, JsonValue event, StringBuilder payload)
Promise<ResourceResponse,ResourceException>
JmsAuditEventHandler. publishEvent(org.forgerock.services.context.Context context, String topic, JsonValue event)
-
Uses of JsonValue in org.forgerock.audit.handlers.json
Methods in org.forgerock.audit.handlers.json with parameters of type JsonValue Modifier and Type Method Description Promise<ResourceResponse,ResourceException>
JsonAuditEventHandler. publishEvent(org.forgerock.services.context.Context context, String topic, JsonValue event)
-
Uses of JsonValue in org.forgerock.audit.handlers.json.stdout
Methods in org.forgerock.audit.handlers.json.stdout with parameters of type JsonValue Modifier and Type Method Description Promise<ResourceResponse,ResourceException>
JsonStdoutAuditEventHandler. publishEvent(org.forgerock.services.context.Context context, String topic, JsonValue event)
-
Uses of JsonValue in org.forgerock.audit.handlers.splunk
Methods in org.forgerock.audit.handlers.splunk with parameters of type JsonValue Modifier and Type Method Description void
SplunkAuditEventHandler. addToBatch(String topic, JsonValue event, StringBuilder payload)
Promise<ResourceResponse,ResourceException>
SplunkAuditEventHandler. publishEvent(org.forgerock.services.context.Context context, String topic, JsonValue event)
-
Uses of JsonValue in org.forgerock.audit.handlers.syslog
Methods in org.forgerock.audit.handlers.syslog with parameters of type JsonValue Modifier and Type Method Description Promise<ResourceResponse,ResourceException>
SyslogAuditEventHandler. publishEvent(org.forgerock.services.context.Context context, String topic, JsonValue event)
-
Uses of JsonValue in org.forgerock.audit.json
Methods in org.forgerock.audit.json that return JsonValue Modifier and Type Method Description static JsonValue
AuditJsonConfig. getAuditEventHandlerConfigurationSchema(String className, ClassLoader classLoader)
Gets the configuration schema for an audit event handler as json schema.static JsonValue
AuditJsonConfig. getJson(InputStream input)
Returns a JSON value from the provided input stream.Methods in org.forgerock.audit.json with parameters of type JsonValue Modifier and Type Method Description static <C extends EventHandlerConfiguration>
CAuditJsonConfig. parseAuditEventHandlerConfiguration(Class<C> clazz, JsonValue jsonConfig)
Returns the audit event handler configuration from the provided JSON string.static AuditServiceConfiguration
AuditJsonConfig. parseAuditServiceConfiguration(JsonValue json)
Returns the audit service configuration from the provided JSON value.static void
AuditJsonConfig. registerHandlerToService(JsonValue jsonConfig, AuditServiceBuilder auditServiceBuilder)
Configures and registers the audit event handler corresponding to the provided JSON configuration to the provided audit service.static void
AuditJsonConfig. registerHandlerToService(JsonValue jsonConfig, AuditServiceBuilder auditServiceBuilder, ClassLoader classLoader)
Configures and registers the audit event handler corresponding to the provided JSON configuration to the provided audit service, using a specific class loader. -
Uses of JsonValue in org.forgerock.audit.util
Methods in org.forgerock.audit.util that return JsonValue Modifier and Type Method Description static JsonValue
ElasticsearchUtil. denormalizeJson(JsonValue value)
De-normalizes JSON that was previously normalized byElasticsearchUtil.normalizeJson(JsonValue)
.static JsonValue
JsonValueUtils. expand(Map<String,Object> object)
Expands a Json Object Map, where the keys of the map are theJsonPointer
s and the values are the value theJsonPointer
resolves to.protected static JsonValue
ElasticsearchUtil. restoreKeyPeriods(JsonValue value, JsonValue normalized)
Reverses the normalization steps preformed byElasticsearchUtil.replaceKeyPeriodsWithUnderscores(String)
.Methods in org.forgerock.audit.util with parameters of type JsonValue Modifier and Type Method Description static JsonValue
ElasticsearchUtil. denormalizeJson(JsonValue value)
De-normalizes JSON that was previously normalized byElasticsearchUtil.normalizeJson(JsonValue)
.static String
JsonValueUtils. extractValueAsString(JsonValue json, String fieldName)
Extracts String representation of field identified byfieldName
fromjson
object.static String
JsonValueUtils. extractValueAsString(JsonValue json, JsonPointer pointer)
Extracts String representation of field identified bypointer
fromjson
object.static Map<String,Object>
JsonValueUtils. flatten(JsonValue jsonValue)
Flattens aJsonValue
to a Map, where the keys of the Map areJsonPointer
s and the values are the value theJsonPointer
s resolve to.static Set<String>
JsonSchemaUtils. generateJsonPointers(JsonValue schema)
Generates the Set ofJsonPointer
s in a given JsonSchema.static String
ElasticsearchUtil. normalizeJson(JsonValue value)
Deprecated.UseElasticsearchUtil.NORMALIZING_OBJECT_MAPPER
instead.static boolean
ElasticsearchUtil. renameField(JsonValue jsonValue, String oldKey, String newKey)
Renames a field within the givenJsonValue
.protected static JsonValue
ElasticsearchUtil. restoreKeyPeriods(JsonValue value, JsonValue normalized)
Reverses the normalization steps preformed byElasticsearchUtil.replaceKeyPeriodsWithUnderscores(String)
. -
Uses of JsonValue in org.forgerock.config.resolvers
Methods in org.forgerock.config.resolvers with parameters of type JsonValue Modifier and Type Method Description static PropertyResolver
PropertyResolvers. jsonResolver(String name, JsonValue json)
Construct a newJsonValueResolver
using a given aJsonValue
.static PropertyResolver
PropertyResolvers. jsonResolver(JsonValue json)
Construct a newJsonValueResolver
using a given aJsonValue
. -
Uses of JsonValue in org.forgerock.config.util
Methods in org.forgerock.config.util that return JsonValue Modifier and Type Method Description JsonValue
JsonValuePropertyEvaluator. evaluate(JsonValue object, boolean escape)
Traverses aJsonValue
and does property substitution as well as any type coercion.JsonValue
JsonValuePropertyEvaluator. evaluate(JsonValue object, SubstitutionContext context)
Traverses aJsonValue
and does property substitution as well as any type coercion.Methods in org.forgerock.config.util that return types with arguments of type JsonValue Modifier and Type Method Description static Predicate<JsonValue>
JsonValuePropertyEvaluator. singleKeyWithName(String name)
Create a predicate for a JSON coercion function as used in theMap
argument toJsonValuePropertyEvaluator(SubstitutionService, List)
.Methods in org.forgerock.config.util with parameters of type JsonValue Modifier and Type Method Description JsonValue
JsonValuePropertyEvaluator. evaluate(JsonValue object, boolean escape)
Traverses aJsonValue
and does property substitution as well as any type coercion.JsonValue
JsonValuePropertyEvaluator. evaluate(JsonValue object, SubstitutionContext context)
Traverses aJsonValue
and does property substitution as well as any type coercion.Method parameters in org.forgerock.config.util with type arguments of type JsonValue Modifier and Type Method Description static JsonValuePropertyEvaluator.CoercionFunctionSpecBuilder
JsonValuePropertyEvaluator. coerce(Predicate<JsonValue> predicate)
Define a coercion function.JsonValuePropertyEvaluator.CoercionFunctionSpec
JsonValuePropertyEvaluator.CoercionFunctionSpecBuilder. using(BiFunction<JsonValue,SubstitutionService,Object,JsonValueException> function)
Specify the function that will convert the matched JSON into an object. -
Uses of JsonValue in org.forgerock.json
Methods in org.forgerock.json that return JsonValue Modifier and Type Method Description JsonValue
JsonValue. add(int index, Object object)
Adds the specified value to the list.JsonValue
JsonValue. add(Object object)
Adds the specified value to the end of the list.JsonValue
JsonValue. add(String key, Object object)
Adds the specified value.JsonValue
JsonValue. add(JsonPointer pointer, Object object)
Adds the value identified by the specified pointer, relative to this value as root.JsonValue
JsonValue. addIfNotNull(String key, Object object)
Adds the specified object value only if it is not nullJsonValue
JsonValue. addPermissive(JsonPointer pointer, Object object)
Adds the value identified by the specified pointer, relative to this value as root.JsonValue
JsonValueTraverseFunction. apply(JsonValue value)
JsonValue
JsonValue. clone()
Returns a shallow copy of this JSON value.JsonValue
JsonValue. copy()
Returns a deep copy of this JSON value.JsonValue
JsonValue. defaultTo(Object object)
Defaults the JSON value to the specified value if it is currentlynull
.static JsonValue
JsonPatch. diff(JsonValue original, JsonValue target)
Compares two JSON values, and produces a JSON Patch value, which contains the operations necessary to modify theoriginal
value to arrive at thetarget
value.JsonValue
JsonValue. diff(JsonValue target)
Performs a deep comparison of this JSON vlaue with another JSON value, and produces a JSON Patch value, which contains the operations necessary to modify the current value to arrive at thetarget
value.JsonValue
JsonValue. expect(Class<?> type)
Called to enforce that the JSON value is of a particular type.JsonValue
JsonValue. get(int index)
Returns the specified child value.JsonValue
JsonValue. get(String key)
Returns the specified item value.JsonValue
JsonValue. get(JsonPointer pointer)
Returns the specified child value with a pointer, relative to this value as root.JsonValue
JsonValueException. getJsonValue()
Returns the JSON value for which the exception was thrown.static JsonValue
JsonValue. json(Object object)
Returns a JSON value whose content is the provided object.static JsonValue
JsonPatch. merge(JsonValue first, JsonValue second)
Creates a new JSON value which combines the contents two JSON values.JsonValue
JsonValue. merge(JsonValue other)
Creates a new JSON value which combines the contents this JSON value with another.JsonValue
JsonValue. put(int index, Object object)
Sets the value of the specified child list element.JsonValue
JsonValue. put(String key, Object object)
Sets the value of the specified member.JsonValue
JsonValue. put(JsonPointer pointer, Object object)
Sets the value identified by the specified pointer, relative to this value as root.JsonValue
JsonValue. putIfNotNull(String key, Object object)
Sets the value of the specified member, only if it is not null.JsonValue
JsonValue. putPermissive(JsonPointer pointer, Object object)
Sets the value identified by the specified pointer, relative to this value as root.JsonValue
JsonValue. required()
Throws aJsonValueException
if the JSON value isnull
.Methods in org.forgerock.json that return types with arguments of type JsonValue Modifier and Type Method Description static Function<JsonValue,byte[],JsonValueException>
JsonValueFunctions. base64Binary()
static Function<JsonValue,byte[],JsonValueException>
JsonValueFunctions. base64urlBinary()
Returns abyte[]
by converting the JsonValue usingasString()
and thenBase64url
-decoding the result.static Function<JsonValue,Charset,JsonValueException>
JsonValueFunctions. charset()
Returns the JSON string value as a character set used for byte encoding/decoding.static Function<JsonValue,JsonValue,JsonValueException>
JsonValueFunctions. deepTransformBy(Function<JsonValue,?,JsonValueException> function)
Returns the JSON value as the result of a deep JsonValue object-traversal, applying the provided transformfunction
to each element.static Function<JsonValue,JsonValue,JsonValueException>
JsonValueFunctions. deepTransformBy(Function<JsonValue,?,JsonValueException> function)
Returns the JSON value as the result of a deep JsonValue object-traversal, applying the provided transformfunction
to each element.static Function<JsonValue,Duration,JsonValueException>
JsonValueFunctions. duration()
Returns the JSON string value as aDuration
.static <T extends Enum<T>>
Function<JsonValue,T,JsonValueException>JsonValueFunctions. enumConstant(Class<T> type)
Returns the JSON string value as an enum constant of the specified enum type.static Function<JsonValue,Instant,JsonValueException>
JsonValueFunctions. epochSecondsInstant()
Returns aInstant
by converting the JsonValue into a number and interpreting that as the number of seconds since the UTC epoch as perInstant.ofEpochSecond(long)
.static Function<JsonValue,File,JsonValueException>
JsonValueFunctions. file()
Returns the JSON string value as aFile
object.static Function<JsonValue,JsonValue,JsonValueException>
JsonValueFunctions. identity()
Deprecated.useJsonValue::copy
directly insteadstatic Function<JsonValue,JsonValue,JsonValueException>
JsonValueFunctions. identity()
Deprecated.useJsonValue::copy
directly insteadstatic Function<JsonValue,Instant,JsonValueException>
JsonValueFunctions. instant()
static Function<JsonValue,Integer,NumberFormatException>
JsonValueFunctions. integer()
Returns anInteger
by converting the JsonValue usingasInteger()
, or by parsing the JsonValue string usingInteger.parseInt(String)
.Iterator<JsonValue>
JsonValue. iterator()
Returns an iterator over the child values that this JSON value contains.static <V,E extends Exception>
Function<JsonValue,List<V>,E>JsonValueFunctions. listOf(Function<JsonValue,V,E> transformFunction)
Returns the JSON value as aList
containing objects whose type (and value) is specified by a transformation function.static Function<JsonValue,Optional<JsonValue>,JsonValueException>
JsonValueFunctions. optional()
Return anOptional
if the given JsonValue has a value, orOptional.empty()
if the JsonValue contains a null value.static Function<JsonValue,Optional<JsonValue>,JsonValueException>
JsonValueFunctions. optional()
Return anOptional
if the given JsonValue has a value, orOptional.empty()
if the JsonValue contains a null value.static <T> Function<JsonValue,Optional<T>,JsonValueException>
JsonValueFunctions. optionalOf(Function<JsonValue,T,JsonValueException> mappingFunction)
Return anOptional
of a new type if the given JsonValue has a value, orOptional.empty()
if the JsonValue contains a null value.static Function<JsonValue,Boolean,NeverThrowsException>
JsonValueFunctions. parseBoolean()
Returns aBoolean
by converting the JsonValue usingasLong()
, or by parsing the JsonValue string usingBoolean.parseBoolean(String)
.static Function<JsonValue,Long,NumberFormatException>
JsonValueFunctions. parseLong()
Returns aLong
by converting the JsonValue usingasLong()
, or by parsing the JsonValue string usingLong.parseLong(String)
.static Function<JsonValue,Pattern,JsonValueException>
JsonValueFunctions. pattern()
Returns the JSON string value as a regular expression pattern.static Function<JsonValue,JsonPointer,JsonValueException>
JsonValueFunctions. pointer()
Returns the JSON string value as a JSON pointer.static <V> Function<JsonValue,Set<V>,JsonValueException>
JsonValueFunctions. setOf(Class<V> type)
Returns the JSON value as aSet
containing objects whose type (and value) is specified by the parametertype
.static <V,E extends Exception>
Function<JsonValue,Set<V>,E>JsonValueFunctions. setOf(Function<JsonValue,V,E> transformFunction)
Returns the JSON value as aSet
containing objects whose type (and value) is specified by a transformation function.Stream<JsonValue>
JsonValue. stream()
Construct a Stream from this JsonValue object.static Function<JsonValue,List<String>,JsonValueException>
JsonValueFunctions. stringOrListOfStrings()
Return a list of string values from the given JsonValue.static Function<JsonValue,URI,JsonValueException>
JsonValueFunctions. uri()
Returns the JSON string value as a uniform resource identifier.static Function<JsonValue,URL,JsonValueException>
JsonValueFunctions. url()
Returns the JSON string value as a uniform resource locator.static Function<JsonValue,UUID,JsonValueException>
JsonValueFunctions. uuid()
Returns the JSON string value as a universally unique identifier (UUID).Methods in org.forgerock.json with parameters of type JsonValue Modifier and Type Method Description JsonValue
JsonValueTraverseFunction. apply(JsonValue value)
static JsonValue
JsonPatch. diff(JsonValue original, JsonValue target)
Compares two JSON values, and produces a JSON Patch value, which contains the operations necessary to modify theoriginal
value to arrive at thetarget
value.JsonValue
JsonValue. diff(JsonValue target)
Performs a deep comparison of this JSON vlaue with another JSON value, and produces a JSON Patch value, which contains the operations necessary to modify the current value to arrive at thetarget
value.Object
JsonPatchValueTransformer. getTransformedValue(JsonValue target, JsonValue op)
Return the value to be used for a given patch operation.static boolean
JsonPatch. isEqual(JsonValue value, JsonValue other)
Compares two JSON values, and returns whether the two objects are identical.boolean
JsonValue. isEqualTo(JsonValue other)
Performs a deep comparison of this JSON value with another JSON value, and returns whether the two objects are identical.static JsonValue
JsonPatch. merge(JsonValue first, JsonValue second)
Creates a new JSON value which combines the contents two JSON values.JsonValue
JsonValue. merge(JsonValue other)
Creates a new JSON value which combines the contents this JSON value with another.static void
JsonPatch. patch(JsonValue original, JsonValue patch)
Applies a set of modifications in a JSON patch value to an original value, resulting in the intended target value.static void
JsonPatch. patch(JsonValue original, JsonValue patch, JsonPatchValueTransformer transform)
Applies a set of modifications in a JSON patch value to an original value, resulting in the intended target value.void
JsonValue. patch(JsonValue patch)
Applies a set of modifications in a JSON patch value to the current object, resulting in the intended target value.protected Object
JsonValueTraverseFunction. traverseList(JsonValue value)
Transform a JsonValue List into another object.protected Object
JsonValueTraverseFunction. traverseMap(JsonValue value)
Transform a JsonValue Map into another object.Method parameters in org.forgerock.json with type arguments of type JsonValue Modifier and Type Method Description <V,E extends Exception>
VJsonValue. as(Function<JsonValue,V,E> transformFunction)
Returns the JSON value as an object whose type (and value) is specified by a transformation function.<V,E extends Exception>
Promise<V,E>JsonValue. asAsync(AsyncFunction<JsonValue,V,E> transformFunction)
Returns the JSON value as a promised object whose type (and value) is specified by a transformation function.static Function<JsonValue,JsonValue,JsonValueException>
JsonValueFunctions. deepTransformBy(Function<JsonValue,?,JsonValueException> function)
Returns the JSON value as the result of a deep JsonValue object-traversal, applying the provided transformfunction
to each element.static <V,E extends Exception>
Function<JsonValue,List<V>,E>JsonValueFunctions. listOf(Function<JsonValue,V,E> transformFunction)
Returns the JSON value as aList
containing objects whose type (and value) is specified by a transformation function.static <T> Function<JsonValue,Optional<T>,JsonValueException>
JsonValueFunctions. optionalOf(Function<JsonValue,T,JsonValueException> mappingFunction)
Return anOptional
of a new type if the given JsonValue has a value, orOptional.empty()
if the JsonValue contains a null value.static <V,E extends Exception>
Function<JsonValue,Set<V>,E>JsonValueFunctions. setOf(Function<JsonValue,V,E> transformFunction)
Returns the JSON value as aSet
containing objects whose type (and value) is specified by a transformation function.Constructors in org.forgerock.json with parameters of type JsonValue Constructor Description JsonValueException(JsonValue value)
Constructs a new exception with the specified JSON value andnull
as its detail message.JsonValueException(JsonValue value, String message)
Constructs a new exception with the specified JSON value and detail message.JsonValueException(JsonValue value, String message, Throwable cause)
Constructs a new exception with the specified JSON value, detail message and cause.JsonValueException(JsonValue value, Throwable cause)
Constructs a new exception with the specified JSON value and cause.Constructor parameters in org.forgerock.json with type arguments of type JsonValue Constructor Description JsonValueTraverseFunction(Function<JsonValue,?,JsonValueException> transform)
Construct the traversal function with a transformation function to apply to each array element nested object attribute value element, or primitive element. -
Uses of JsonValue in org.forgerock.json.resource
Methods in org.forgerock.json.resource that return JsonValue Modifier and Type Method Description static JsonValue
Resources. filterResource(JsonValue resource, Collection<JsonPointer> fields)
Returns a JSON object containing only the specified fields from the provided JSON value.JsonValue
ActionRequest. getContent()
Returns the content of this action request.JsonValue
CreateRequest. getContent()
Returns the content of the JSON resource to be created.JsonValue
ResourceResponse. getContent()
Returns the JSON content of this resource.JsonValue
UpdateRequest. getContent()
Returns the content of the JSON resource to be replaced.JsonValue
ResourceException. getDetail()
Returns the additional detail which can be evaluated by applications.JsonValue
ActionResponse. getJsonContent()
Gets theJsonValue
content contained in theResponse
.JsonValue
PatchOperation. getValue()
Returns the value for the patch operation.JsonValue
ActionRequest. toJsonValue()
JsonValue
CreateRequest. toJsonValue()
JsonValue
DeleteRequest. toJsonValue()
JsonValue
PatchOperation. toJsonValue()
Returns a JSON value representation of this patch operation.JsonValue
PatchRequest. toJsonValue()
JsonValue
QueryRequest. toJsonValue()
JsonValue
ReadRequest. toJsonValue()
JsonValue
Request. toJsonValue()
Return a JsonValue representation of this request.JsonValue
ResourceException. toJsonValue()
Returns the exception in a JSON object structure, suitable for inclusion in the entity of an HTTP error response.JsonValue
UpdateRequest. toJsonValue()
Methods in org.forgerock.json.resource that return types with arguments of type JsonValue Modifier and Type Method Description static Function<JsonValue,QueryFilter<JsonPointer>,JsonValueException>
JsonValueFunctions. queryFilter()
Parses and returns the JSON string value as aQueryFilter
.static Function<JsonValue,ResourcePath,JsonValueException>
JsonValueFunctions. resourcePath()
Returns the JSON string value as aResourcePath
.Methods in org.forgerock.json.resource with parameters of type JsonValue Modifier and Type Method Description PatchRequest
PatchRequest. addPatchOperation(String operation, String field, JsonValue value)
Adds a single patch operation which should be performed against the targeted resource.int
SortKeyComparator. compare(JsonValue left, JsonValue right)
static JsonValue
Resources. filterResource(JsonValue resource, Collection<JsonPointer> fields)
Returns a JSON object containing only the specified fields from the provided JSON value.static ActionResponse
Responses. newActionResponse(JsonValue json)
Returns a newJsonValue
response with the provided JSON content.static CreateRequest
Requests. newCreateRequest(String resourceContainer, String newResourceId, JsonValue content)
Returns a new create request with the provided resource path, new resource ID, and JSON content.static CreateRequest
Requests. newCreateRequest(String resourceContainer, JsonValue content)
Returns a new create request with the provided resource path, and JSON content.static CreateRequest
Requests. newCreateRequest(ResourcePath resourceContainer, String newResourceId, JsonValue content)
Returns a new create request with the provided resource path, new resource ID, and JSON content.static CreateRequest
Requests. newCreateRequest(ResourcePath resourceContainer, JsonValue content)
Returns a new create request with the provided resource path, and JSON content.static ResourceResponse
Responses. newResourceResponse(String id, String revision, JsonValue content)
Returns a newResource
response with the provided Resource as content.static UpdateRequest
Requests. newUpdateRequest(String resourceContainer, String resourceId, JsonValue newContent)
Returns a new update request with the provided resource container path, resource ID, and new JSON content.static UpdateRequest
Requests. newUpdateRequest(String resourcePath, JsonValue newContent)
Returns a new update request with the provided resource path and new JSON content.static UpdateRequest
Requests. newUpdateRequest(ResourcePath resourceContainer, String resourceId, JsonValue newContent)
Returns a new update request with the provided resource container path, resource ID, and new JSON content.static UpdateRequest
Requests. newUpdateRequest(ResourcePath resourcePath, JsonValue newContent)
Returns a new update request with the provided resource path and new JSON content.static ResourceApiVersionSpecificationFilter.ResourcePathAndVersionSpecification
ResourceApiVersionSpecificationFilter.ResourcePathAndVersionSpecification. resourcePathAndVersionSpecification(JsonValue versionMatrix)
Create a newResourcePathAndVersionSpecification
configured with resource path to version specification.ActionRequest
ActionRequest. setContent(JsonValue content)
Sets the content of this action request.CreateRequest
CreateRequest. setContent(JsonValue content)
Sets the content of the JSON resource to be created.UpdateRequest
UpdateRequest. setContent(JsonValue content)
Sets the content of the JSON resource to be replaced.<E extends ResourceException>
EResourceException. setDetail(JsonValue detail)
Sets the additional detail which can be evaluated by applications.static PatchOperation
PatchOperation. valueOf(JsonValue json)
Parses the provided JSON content as a patch operation.static List<PatchOperation>
PatchOperation. valueOfList(JsonValue json)
Parses the provided JSON content as a list of patch operations.Constructors in org.forgerock.json.resource with parameters of type JsonValue Constructor Description AdviceContext(JsonValue savedContext, ClassLoader classLoader)
Restore from JSON representation. -
Uses of JsonValue in org.forgerock.json.resource.http
Constructors in org.forgerock.json.resource.http with parameters of type JsonValue Constructor Description HttpContext(JsonValue savedContext, ClassLoader classLoader)
Restore from JSON representation. -
Uses of JsonValue in org.forgerock.json.schema.validator.exceptions
Constructors in org.forgerock.json.schema.validator.exceptions with parameters of type JsonValue Constructor Description SchemaException(JsonValue value, Exception e)
Create a new SchemaException wrapping an existing exception.SchemaException(JsonValue value, String message)
Create the exception with the given value and message.SchemaException(JsonValue value, String message, Exception e)
Create a new SchemaException from an existing exception.SchemaException(JsonValue value, String message, Throwable throwable)
Create the exception with the given value, message and cause. -
Uses of JsonValue in org.forgerock.opendj.rest2ldap
Methods in org.forgerock.opendj.rest2ldap that return JsonValue Modifier and Type Method Description JsonValue
AffinityContext. toJsonValue()
Methods in org.forgerock.opendj.rest2ldap with parameters of type JsonValue Modifier and Type Method Description static X509KeyManager
Rest2LdapJsonConfigurator. configureKeyManager(JsonValue configuration)
Configures aX509KeyManager
using the provided JSON configuration.static LdapClient
Rest2LdapJsonConfigurator. configureLdapClient(JsonValue configuration, String name, TrustManager trustManager, X509KeyManager keyManager)
Creates a new LDAP client using the named configuration in the provided JSON list of client configurations.static Options
Rest2LdapJsonConfigurator. configureOptions(JsonValue config)
Parses Rest2Ldap configuration options.static List<Resource>
Rest2LdapJsonConfigurator. configureResources(JsonValue config, Options options)
Parses a list of Rest2Ldap resource definitions.static TrustManager
Rest2LdapJsonConfigurator. configureTrustManager(JsonValue configuration)
Configures aTrustManager
using the provided JSON configuration.JsonPropertyMapper
JsonPropertyMapper. jsonSchema(JsonValue jsonSchema)
Sets the JSON schema corresponding to this simple property mapper.SimplePropertyMapper
SimplePropertyMapper. jsonSchema(JsonValue jsonSchema)
Sets the JSON schema corresponding to this simple property mapper.static void
SimplePropertyMapper. putTypeAndFormat(JsonValue jsonSchema, AttributeType attrType)
Puts the type and format corresponding to the provided attribute type on the provided JSON schema. -
Uses of JsonValue in org.forgerock.opendj.server.core
Methods in org.forgerock.opendj.server.core that return JsonValue Modifier and Type Method Description JsonValue
AbstractContext. toJsonValue()
-
Uses of JsonValue in org.forgerock.tokenhandler
Methods in org.forgerock.tokenhandler that return JsonValue Modifier and Type Method Description JsonValue
TokenHandler. validateAndExtractState(String token)
Validates and parses the token, extracting any encapsulated state.Methods in org.forgerock.tokenhandler with parameters of type JsonValue Modifier and Type Method Description String
TokenHandler. generate(JsonValue state)
Generates a new token using the state. -
Uses of JsonValue in org.forgerock.util.query
Methods in org.forgerock.util.query that return types with arguments of type JsonValue Modifier and Type Method Description static QueryFilterVisitor<Boolean,JsonValue,JsonPointer>
JsonValueFilterVisitor. jsonValueFilterVisitor()
Returns aQueryFilterVisitor
that can assess if aJsonValue
resource matches a set of criteria defined by aQueryFilter
.Methods in org.forgerock.util.query with parameters of type JsonValue Modifier and Type Method Description Boolean
JsonValueFilterVisitor. visitAndFilter(JsonValue p, List<QueryFilter<JsonPointer>> subFilters)
Boolean
JsonValueFilterVisitor. visitBooleanLiteralFilter(JsonValue p, boolean value)
Boolean
JsonValueFilterVisitor. visitComplexFilter(JsonValue p, JsonPointer field, QueryFilter<JsonPointer> subFilter)
Boolean
JsonValueFilterVisitor. visitContainsFilter(JsonValue p, JsonPointer field, Object valueAssertion)
Boolean
JsonValueFilterVisitor. visitEqualsFilter(JsonValue p, JsonPointer field, Object valueAssertion)
Boolean
JsonValueFilterVisitor. visitExtendedMatchFilter(JsonValue p, JsonPointer field, String matchingRuleId, Object valueAssertion)
Boolean
JsonValueFilterVisitor. visitGreaterThanFilter(JsonValue p, JsonPointer field, Object valueAssertion)
Boolean
JsonValueFilterVisitor. visitGreaterThanOrEqualToFilter(JsonValue p, JsonPointer field, Object valueAssertion)
Boolean
JsonValueFilterVisitor. visitLessThanFilter(JsonValue p, JsonPointer field, Object valueAssertion)
Boolean
JsonValueFilterVisitor. visitLessThanOrEqualToFilter(JsonValue p, JsonPointer field, Object valueAssertion)
Boolean
JsonValueFilterVisitor. visitNotFilter(JsonValue p, QueryFilter<JsonPointer> subFilter)
Boolean
JsonValueFilterVisitor. visitOrFilter(JsonValue p, List<QueryFilter<JsonPointer>> subFilters)
Boolean
JsonValueFilterVisitor. visitPresentFilter(JsonValue p, JsonPointer field)
Boolean
JsonValueFilterVisitor. visitStartsWithFilter(JsonValue p, JsonPointer field, Object valueAssertion)
-
Uses of JsonValue in org.opends.server.api
Methods in org.opends.server.api that return JsonValue Modifier and Type Method Description abstract JsonValue
ClientConnection. getMonitorSummary()
Returns a summary of this client connection in JSON (format that is both human readable and machine parseable). -
Uses of JsonValue in org.opends.server.protocols.jmx
Methods in org.opends.server.protocols.jmx that return JsonValue Modifier and Type Method Description JsonValue
JmxClientConnection. getMonitorSummary()
-
Uses of JsonValue in org.opends.server.protocols.ldap
Methods in org.opends.server.protocols.ldap that return JsonValue Modifier and Type Method Description JsonValue
LdapClientConnection. getMonitorSummary()
-
Uses of JsonValue in org.opends.server.replication.common
Methods in org.opends.server.replication.common that return JsonValue Modifier and Type Method Description JsonValue
CSN. toJson()
Returns the json representation of this CSN. -
Uses of JsonValue in org.opends.server.replication.protocol
Methods in org.opends.server.replication.protocol that return JsonValue Modifier and Type Method Description JsonValue
LDAPUpdateMsg. toJson()
JsonValue
ModifyDNMsg. toJson()
JsonValue
UpdateMsg. toJson()
Returns the json representation of this update message. -
Uses of JsonValue in org.opends.server.replication.server.changelog.api
Methods in org.opends.server.replication.server.changelog.api that return JsonValue Modifier and Type Method Description JsonValue
ChangeNumberIndexRecord. toJson()
Returns the json representation of this change number index record.
-