Package | Description |
---|---|
org.apache.sling.api.resource | |
org.apache.sling.api.wrappers | |
org.apache.sling.caconfig |
API for accessing context-aware configuration.
|
org.apache.sling.caconfig.management |
Management API of the Context-Aware configuration implementation.
|
org.apache.sling.spi.resource.provider | |
org.apache.sling.validation | |
org.apache.sling.validation.model | |
org.apache.sling.validation.spi |
Modifier and Type | Interface and Description |
---|---|
interface |
ModifiableValueMap
The
ModifiableValueMap is an extension
of the ValueMap which allows to modify and
persist properties. |
interface |
PersistableValueMap
Deprecated.
Use the
ModifiableValueMap instead. |
Modifier and Type | Field and Description |
---|---|
static ValueMap |
ValueMap.EMPTY
Empty immutable value map.
|
Modifier and Type | Method and Description |
---|---|
@NotNull ValueMap |
ResourceWrapper.getValueMap() |
ValueMap |
AbstractResource.getValueMap()
This method calls
Adaptable.adaptTo(Class)
with the ValueMap class as an argument. |
@NotNull ValueMap |
Resource.getValueMap()
Returns a value map for this resource.
|
static @NotNull ValueMap |
ResourceUtil.getValueMap(Resource res)
Returns an
ValueMap object for the given
Resource . |
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<ValueMap> |
QueriableResourceProvider.queryResources(ResourceResolver resolver,
java.lang.String query,
java.lang.String language)
Deprecated.
Queries the storage using the given query formulated in the given
language.
|
Modifier and Type | Class and Description |
---|---|
class |
CompositeValueMap
Deprecated.
Use
ValueMapUtil.merge(ValueMap...) instead. Note that it
does not support the parameter merge = false . However, this could easily
be achieved with another decorator that restricts the set of allowed keys. |
class |
DeepReadModifiableValueMapDecorator
A value map wrapper which implements deep reading of properties
based on the resource tree and also supports
ModifiableValueMap . |
class |
DeepReadValueMapDecorator
A value map wrapper which implements deep reading of properties
based on the resource tree.
|
class |
ModifiableValueMapDecorator
ModifiableValueMapDecorator decorates another Map
to provide a basic implementation for the additional methods
of a ModifiableValueMap . |
class |
ValueMapDecorator
ValueMapDecorator decorates another Map
to provide a basic implementation for the additional methods
of a ValueMap . |
Modifier and Type | Method and Description |
---|---|
static @NotNull ValueMap |
ValueMapUtil.cache(@NotNull ValueMap valueMap)
Decorates the given
ValueMap with a caching layer. |
static @NotNull ValueMap |
ValueMapUtil.merge(@NotNull java.util.List<ValueMap> valueMaps)
Merge provided
ValueMaps into a single view ValueMap that aggregates
all key-value pairs of the given maps. |
static @NotNull ValueMap |
ValueMapUtil.merge(ValueMap... valueMaps)
A convenience method that turns the var-args into a
Collection
and delegates to ValueMapUtil.merge(List) . |
static @NotNull ValueMap |
ValueMapUtil.mergeAndCache(@NotNull java.util.List<ValueMap> valueMaps)
Convenience method that allows creating a merged
ValueMap where
accessed mappings are cached to optimize repeated lookups. |
Modifier and Type | Method and Description |
---|---|
static @NotNull ValueMap |
ValueMapUtil.cache(@NotNull ValueMap valueMap)
Decorates the given
ValueMap with a caching layer. |
static @NotNull ValueMap |
ValueMapUtil.merge(ValueMap... valueMaps)
A convenience method that turns the var-args into a
Collection
and delegates to ValueMapUtil.merge(List) . |
Constructor and Description |
---|
CompositeValueMap(ValueMap properties,
ValueMap defaults)
Deprecated.
Constructor
|
CompositeValueMap(ValueMap properties,
ValueMap defaults,
boolean merge)
Deprecated.
Constructor
|
DeepReadModifiableValueMapDecorator(Resource resource,
ValueMap base) |
DeepReadValueMapDecorator(Resource resource,
ValueMap base) |
Modifier and Type | Method and Description |
---|---|
@NotNull ValueMap |
ConfigurationBuilder.asValueMap()
Get configuration as singleton resource and return its properties as value map.
|
Modifier and Type | Method and Description |
---|---|
@NotNull ValueMap |
ConfigurationData.getEffectiveValues()
Configuration values stored for the given context path merged with inherited values and default values.
|
@NotNull ValueMap |
ConfigurationData.getValues()
Configuration values stored for the given context path.
|
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<ValueMap> |
QueryLanguageProvider.queryResources(@NotNull ResolveContext<T> ctx,
java.lang.String query,
java.lang.String language)
Queries the storage using the given query formulated in the given
language.
|
Modifier and Type | Method and Description |
---|---|
ValidationResult |
ValidationService.validate(ValueMap valueMap,
ValidationModel model)
|
Modifier and Type | Method and Description |
---|---|
ValueMap |
ValidatorInvocation.getParameters() |
Modifier and Type | Method and Description |
---|---|
ValueMap |
ValidatorContext.getValueMap() |
Modifier and Type | Method and Description |
---|---|
ValidationResult |
Validator.validate(T data,
ValidatorContext context,
ValueMap arguments)
Validates the
data and/or the valueMap according to the internal constraints of this validator. |
Copyright © 2022 The Apache Software Foundation. All rights reserved.