Package | Description |
---|---|
org.apache.sling.api | |
org.apache.sling.api.resource | |
org.apache.sling.api.scripting | |
org.apache.sling.api.security | |
org.apache.sling.api.servlets | |
org.apache.sling.api.uri | |
org.apache.sling.api.wrappers | |
org.apache.sling.caconfig.management.multiplexer |
Multiplexer services provide aggregated access to all implementations of the related SPI interface.
|
org.apache.sling.caconfig.spi |
SPI for applications hooking into the configuration infrastructure for parameterizing and customizing.
|
org.apache.sling.discovery.commons.providers.spi.base |
Provides default SPI-implementations used by discovery.commons.providers.impl
|
org.apache.sling.discovery.commons.providers.util |
Provides some static helpers for providers of the Discovery API.
|
org.apache.sling.discovery.oak | |
org.apache.sling.discovery.oak.cluster | |
org.apache.sling.engine | |
org.apache.sling.scripting.api.resource |
The
org.apache.sling.scripting.api.resource package provides a unified API for scripting bundles that need to perform script
resolution across the Resource space. |
org.apache.sling.scripting.sightly.engine |
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements.
|
org.apache.sling.spi.resource.provider |
Modifier and Type | Method and Description |
---|---|
@NotNull ResourceResolver |
SlingHttpServletRequest.getResourceResolver()
Returns the
ResourceResolver which resolved the
resource of this request. |
Modifier and Type | Method and Description |
---|---|
@NotNull ResourceResolver |
ResourceResolver.clone(java.util.Map<java.lang.String,java.lang.Object> authenticationInfo)
Returns a new
ResourceResolver instance based on the given
authenticationInfo map and the original authentication info
used to create this instance. |
@NotNull ResourceResolver |
ResourceResolverFactory.getAdministrativeResourceResolver(java.util.Map<java.lang.String,java.lang.Object> authenticationInfo)
Deprecated.
as of 2.4 (bundle version 2.5.0) because of inherent security
issues. Services requiring specific permissions should use
the
ResourceResolverFactory.getServiceResourceResolver(Map) instead. |
@NotNull ResourceResolver |
ResourceWrapper.getResourceResolver()
Returns the value of calling
getResourceResolver on the
wrapped resource . |
@NotNull ResourceResolver |
SyntheticResource.getResourceResolver()
Returns the
ResourceResolver with which this synthetic resource
is related or null if none. |
@NotNull ResourceResolver |
Resource.getResourceResolver()
Returns the
ResourceResolver from which this resource has been
retrieved. |
@NotNull ResourceResolver |
ResourceResolverFactory.getResourceResolver(java.util.Map<java.lang.String,java.lang.Object> authenticationInfo)
Returns a new
ResourceResolver instance with further
configuration taken from the given authenticationInfo map. |
@NotNull ResourceResolver |
ResourceResolverFactory.getServiceResourceResolver(java.util.Map<java.lang.String,java.lang.Object> authenticationInfo)
Returns a new
ResourceResolver instance with privileges assigned
to the service provided by the calling bundle. |
@Nullable ResourceResolver |
ResourceResolverFactory.getThreadResourceResolver()
Returns the
ResourceResolver for the current thread. |
Modifier and Type | Method and Description |
---|---|
void |
ModifyingResourceProvider.commit(ResourceResolver resolver)
Deprecated.
Commit all transient changes: create, delete and updates
|
Resource |
ModifyingResourceProvider.create(ResourceResolver resolver,
java.lang.String path,
java.util.Map<java.lang.String,java.lang.Object> properties)
Deprecated.
Create a new resource at the given path.
|
void |
ModifyingResourceProvider.delete(ResourceResolver resolver,
java.lang.String path)
Deprecated.
Delete the resource at the given path.
|
java.util.Iterator<Resource> |
QueriableResourceProvider.findResources(ResourceResolver resolver,
java.lang.String query,
java.lang.String language)
Deprecated.
Searches for resources using the given query formulated in the given
language.
|
java.lang.Object |
AttributableResourceProvider.getAttribute(ResourceResolver resolver,
java.lang.String name)
Deprecated.
Returns the value of the given resource provider attribute or
null
if the attribute is not set or not visible (as e.g. |
java.util.Collection<java.lang.String> |
AttributableResourceProvider.getAttributeNames(ResourceResolver resolver)
Deprecated.
Returns a collection of attribute names whose value can be retrieved
calling the
AttributableResourceProvider.getAttribute(ResourceResolver, String) method. |
static @NotNull Resource |
ResourceUtil.getOrCreateResource(@NotNull ResourceResolver resolver,
@NotNull java.lang.String path,
java.util.Map<java.lang.String,java.lang.Object> resourceProperties,
java.lang.String intermediateResourceType,
boolean autoCommit)
Creates or gets the resource at the given path.
|
static @NotNull Resource |
ResourceUtil.getOrCreateResource(@NotNull ResourceResolver resolver,
@NotNull java.lang.String path,
java.lang.String resourceType,
java.lang.String intermediateResourceType,
boolean autoCommit)
Creates or gets the resource at the given path.
|
@Nullable Resource |
ResourceProvider.getResource(@NotNull ResourceResolver resourceResolver,
@NotNull javax.servlet.http.HttpServletRequest request,
@NotNull java.lang.String path)
Deprecated.
since 2.2.0 (and JCR Resource 2.1.0), this method will not be invoked.
|
@Nullable Resource |
ResourceProvider.getResource(@NotNull ResourceResolver resourceResolver,
@NotNull java.lang.String path)
Deprecated.
Returns a resource from this resource provider or
null if
the resource provider cannot find it. |
@Nullable Resource |
ParametrizableResourceProvider.getResource(@NotNull ResourceResolver resourceResolver,
@NotNull java.lang.String path,
@NotNull java.util.Map<java.lang.String,java.lang.String> parameters)
Deprecated.
Returns a resource from this resource provider or
null if
the resource provider cannot find it. |
static @Nullable java.lang.String |
ResourceUtil.getResourceSuperType(@NotNull ResourceResolver resourceResolver,
java.lang.String resourceType)
Deprecated.
|
boolean |
ModifyingResourceProvider.hasChanges(ResourceResolver resolver)
Deprecated.
Are there any transient changes?
|
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.
|
void |
ModifyingResourceProvider.revert(ResourceResolver resolver)
Deprecated.
Revert all transient changes: create, delete and updates.
|
Constructor and Description |
---|
NonExistingResource(ResourceResolver resourceResolver,
java.lang.String resourceURI)
Create a new non existing resource.
|
SyntheticResource(@NotNull ResourceResolver resourceResolver,
@NotNull ResourceMetadata rm,
@NotNull java.lang.String resourceType)
Creates a synthetic resource with the given
ResourceMetadata
and resourceType . |
SyntheticResource(@NotNull ResourceResolver resourceResolver,
@NotNull java.lang.String path,
@NotNull java.lang.String resourceType)
Creates a synthetic resource with the given
path and
resourceType . |
Modifier and Type | Method and Description |
---|---|
@Nullable ResourceResolver |
SlingBindings.getResourceResolver()
|
Modifier and Type | Method and Description |
---|---|
@Nullable SlingScript |
SlingScriptResolver.findScript(@NotNull ResourceResolver resourceResolver,
@NotNull java.lang.String name)
Deprecated.
Finds the
SlingScript for the given name. |
void |
SlingBindings.setResourceResolver(ResourceResolver resourceResolver)
|
Modifier and Type | Method and Description |
---|---|
boolean |
ResourceAccessSecurity.canCreate(@NotNull java.lang.String absPathName,
@NotNull ResourceResolver resourceResolver)
Check whether a resource can be created at the path.
|
@NotNull java.lang.String |
ResourceAccessSecurity.transformQuery(@NotNull java.lang.String query,
@NotNull java.lang.String language,
@NotNull ResourceResolver resourceResolver)
Optionally transform a query based on the current
user's credentials.
|
Modifier and Type | Method and Description |
---|---|
@Nullable javax.servlet.Servlet |
ServletResolver.resolveServlet(@NotNull ResourceResolver resolver,
@NotNull java.lang.String scriptName)
Resolves a
javax.servlet.Servlet whose
service method may be used to handle a request. |
Modifier and Type | Method and Description |
---|---|
static @NotNull SlingUriBuilder |
SlingUriBuilder.createFrom(@NotNull java.net.URI uri,
@Nullable ResourceResolver resourceResolver)
Creates a builder from an arbitrary URI.
|
static @NotNull SlingUriBuilder |
SlingUriBuilder.parse(@NotNull java.lang.String uriStr,
@Nullable ResourceResolver resourceResolver)
Creates a builder from an arbitrary URI string.
|
@NotNull SlingUriBuilder |
SlingUriBuilder.setResourceResolver(ResourceResolver resourceResolver)
Sets the resource resolver (required for
RequestPathInfo.getSuffixResource() ). |
Modifier and Type | Class and Description |
---|---|
class |
ResourceResolverWrapper
The
ResourceResolverWrapper is a wrapper for any ResourceResolver , delegating all method calls to the wrapped resource
resolver by default. |
Modifier and Type | Method and Description |
---|---|
@NotNull ResourceResolver |
ResourceResolverWrapper.clone(java.util.Map<java.lang.String,java.lang.Object> authenticationInfo)
Wraps and returns the
ResourceResolver obtained by calling clone on the wrapped resource resolver. |
ResourceResolver |
SlingHttpServletRequestWrapper.getResourceResolver() |
Constructor and Description |
---|
ResourceResolverWrapper(ResourceResolver resolver)
Creates a new wrapper instance, delegating all calls to the given
resolver . |
Modifier and Type | Method and Description |
---|---|
@Nullable Resource |
ConfigurationOverrideMultiplexer.overrideProperties(@NotNull java.lang.String contextPath,
@NotNull java.lang.String configName,
@Nullable Resource configResource,
@NotNull ResourceResolver resourceResolver)
Override properties in given configuration resource (if any overrides are defined).
|
Modifier and Type | Method and Description |
---|---|
boolean |
ConfigurationPersistenceStrategy2.deleteConfiguration(@NotNull ResourceResolver resourceResolver,
@NotNull java.lang.String configResourcePath)
Delete configuration or configuration collection data from repository using the inner-most context path as reference.
|
boolean |
ConfigurationPersistenceStrategy.deleteConfiguration(@NotNull ResourceResolver resourceResolver,
@NotNull java.lang.String configResourcePath)
Deprecated.
Delete configuration or configuration collection data from repository using the inner-most context path as reference.
|
boolean |
ConfigurationPersistenceStrategy2.persistConfiguration(@NotNull ResourceResolver resourceResolver,
@NotNull java.lang.String configResourcePath,
@NotNull ConfigurationPersistData data)
Stores configuration data for a singleton configuration resource.
|
boolean |
ConfigurationPersistenceStrategy.persistConfiguration(@NotNull ResourceResolver resourceResolver,
@NotNull java.lang.String configResourcePath,
@NotNull ConfigurationPersistData data)
Deprecated.
Stores configuration data for a singleton configuration resource.
|
boolean |
ConfigurationPersistenceStrategy2.persistConfigurationCollection(@NotNull ResourceResolver resourceResolver,
@NotNull java.lang.String configResourceCollectionParentPath,
@NotNull ConfigurationCollectionPersistData data)
Stores configuration data for a configuration resource collection.
|
boolean |
ConfigurationPersistenceStrategy.persistConfigurationCollection(@NotNull ResourceResolver resourceResolver,
@NotNull java.lang.String configResourceCollectionParentPath,
@NotNull ConfigurationCollectionPersistData data)
Deprecated.
Stores configuration data for a configuration resource collection.
|
Modifier and Type | Method and Description |
---|---|
protected ResourceResolver |
SyncTokenService.getResourceResolver()
Get or create a ResourceResolver
|
protected ResourceResolver |
OakBacklogClusterSyncService.getResourceResolver()
Get or create a ResourceResolver
|
Modifier and Type | Method and Description |
---|---|
static DiscoveryLiteDescriptor |
DiscoveryLiteDescriptor.getDescriptorFrom(ResourceResolver resourceResolver)
{"seq":8,"final":true,"id":"aae34e9a-b08d-409e-be10-9ff4106e5387","me":4,"active":[4],"deactivating":[],"inactive":[1,2,3]}
|
java.lang.String |
IdMapService.toSlingId(int clusterNodeId,
ResourceResolver resourceResolver) |
Modifier and Type | Method and Description |
---|---|
static boolean |
ResourceHelper.deleteResource(ResourceResolver resourceResolver,
java.lang.String path) |
static Resource |
ResourceHelper.getOrCreateResource(ResourceResolver resourceResolver,
java.lang.String path) |
Modifier and Type | Method and Description |
---|---|
protected ResourceResolver |
TopologyWebConsolePlugin.getResourceResolver() |
Modifier and Type | Method and Description |
---|---|
protected ResourceResolver |
OakClusterViewService.getResourceResolver() |
Modifier and Type | Method and Description |
---|---|
void |
SlingRequestProcessor.processRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
ResourceResolver resourceResolver)
Process an HTTP request through the Sling request processing engine.
|
Modifier and Type | Method and Description |
---|---|
ResourceResolver |
ScriptingResourceResolverProvider.getRequestScopedResourceResolver()
Provides a request-scoped
ResourceResolver with only read access to the search paths. |
Modifier and Type | Method and Description |
---|---|
static Resource |
ResourceResolution.getResourceForRequest(ResourceResolver resolver,
SlingHttpServletRequest request)
Resolves the resource accessed by a
request . |
Modifier and Type | Method and Description |
---|---|
@NotNull ResourceResolver |
ResolveContext.getResourceResolver()
Get the current resource resolver.
|
Copyright © 2022 The Apache Software Foundation. All rights reserved.