Uses of Interface
org.apache.sling.api.resource.ResourceResolver
Package
Description
Multiplexer services provide aggregated access to all implementations of the related SPI interface.
SPI for applications hooking into the configuration infrastructure for parameterizing and customizing.
Provides default SPI-implementations used by discovery.commons.providers.impl
Provides some static helpers for providers of the Discovery API.
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.Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements.
-
Uses of ResourceResolver in org.apache.sling.api
Modifier and TypeMethodDescription@NotNull ResourceResolver
SlingHttpServletRequest.getResourceResolver()
Returns theResourceResolver
which resolved theresource
of this request. -
Uses of ResourceResolver in org.apache.sling.api.resource
Modifier and TypeMethodDescription@NotNull ResourceResolver
Returns a newResourceResolver
instance based on the givenauthenticationInfo
map and the original authentication info used to create this instance.@NotNull ResourceResolver
ResourceResolverFactory.getAdministrativeResourceResolver
(Map<String, Object> authenticationInfo) Deprecated.as of 2.4 (bundle version 2.5.0) because of inherent security issues.@NotNull ResourceResolver
Resource.getResourceResolver()
Returns theResourceResolver
from which this resource has been retrieved.@NotNull ResourceResolver
ResourceResolverFactory.getResourceResolver
(Map<String, Object> authenticationInfo) Returns a newResourceResolver
instance with further configuration taken from the givenauthenticationInfo
map.@NotNull ResourceResolver
ResourceWrapper.getResourceResolver()
Returns the value of callinggetResourceResolver
on thewrapped resource
.@NotNull ResourceResolver
SyntheticResource.getResourceResolver()
Returns theResourceResolver
with which this synthetic resource is related ornull
if none.@NotNull ResourceResolver
ResourceResolverFactory.getServiceResourceResolver
(Map<String, Object> authenticationInfo) Returns a newResourceResolver
instance with privileges assigned to the service provided by the calling bundle.@Nullable ResourceResolver
ResourceResolverFactory.getThreadResourceResolver()
Returns theResourceResolver
for the current thread.Modifier and TypeMethodDescriptionvoid
ModifyingResourceProvider.commit
(ResourceResolver resolver) Deprecated.Commit all transient changes: create, delete and updatesModifyingResourceProvider.create
(ResourceResolver resolver, String path, Map<String, Object> properties) Deprecated.Create a new resource at the given path.void
ModifyingResourceProvider.delete
(ResourceResolver resolver, String path) Deprecated.Delete the resource at the given path.QueriableResourceProvider.findResources
(ResourceResolver resolver, String query, String language) Deprecated.Searches for resources using the given query formulated in the given language.AttributableResourceProvider.getAttribute
(ResourceResolver resolver, String name) Deprecated.Returns the value of the given resource provider attribute ornull
if the attribute is not set or not visible (as e.g. security sensitive attributes).AttributableResourceProvider.getAttributeNames
(ResourceResolver resolver) Deprecated.Returns a collection of attribute names whose value can be retrieved calling theAttributableResourceProvider.getAttribute(ResourceResolver, String)
method.static @NotNull Resource
ResourceUtil.getOrCreateResource
(@NotNull ResourceResolver resolver, @NotNull String path, String resourceType, String intermediateResourceType, boolean autoCommit) Creates or gets the resource at the given path.static @NotNull Resource
ResourceUtil.getOrCreateResource
(@NotNull ResourceResolver resolver, @NotNull String path, Map<String, Object> resourceProperties, String intermediateResourceType, boolean autoCommit) Creates or gets the resource at the given path.@Nullable Resource
ParametrizableResourceProvider.getResource
(@NotNull ResourceResolver resourceResolver, @NotNull String path, @NotNull Map<String, String> parameters) Deprecated.Returns a resource from this resource provider ornull
if the resource provider cannot find it.@Nullable Resource
ResourceProvider.getResource
(@NotNull ResourceResolver resourceResolver, @NotNull String path) Deprecated.Returns a resource from this resource provider ornull
if the resource provider cannot find it.@Nullable Resource
ResourceProvider.getResource
(@NotNull ResourceResolver resourceResolver, @NotNull javax.servlet.http.HttpServletRequest request, @NotNull String path) Deprecated.since 2.2.0 (and JCR Resource 2.1.0), this method will not be invoked.static @Nullable String
ResourceUtil.getResourceSuperType
(@NotNull ResourceResolver resourceResolver, String resourceType) Deprecated.boolean
ModifyingResourceProvider.hasChanges
(ResourceResolver resolver) Deprecated.Are there any transient changes?QueriableResourceProvider.queryResources
(ResourceResolver resolver, String query, 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.ModifierConstructorDescriptionNonExistingResource
(ResourceResolver resourceResolver, String resourceURI) Create a new non existing resource.SyntheticResource
(@NotNull ResourceResolver resourceResolver, @NotNull String path, @NotNull String resourceType) Creates a synthetic resource with the givenpath
andresourceType
.SyntheticResource
(@NotNull ResourceResolver resourceResolver, @NotNull ResourceMetadata rm, @NotNull String resourceType) Creates a synthetic resource with the givenResourceMetadata
andresourceType
. -
Uses of ResourceResolver in org.apache.sling.api.scripting
Modifier and TypeMethodDescription@Nullable SlingScript
SlingScriptResolver.findScript
(@NotNull ResourceResolver resourceResolver, @NotNull String name) Deprecated.Finds theSlingScript
for the given name.void
SlingBindings.setResourceResolver
(ResourceResolver resourceResolver) -
Uses of ResourceResolver in org.apache.sling.api.security
Modifier and TypeMethodDescriptionboolean
ResourceAccessSecurity.canCreate
(@NotNull String absPathName, @NotNull ResourceResolver resourceResolver) Check whether a resource can be created at the path.@NotNull String
ResourceAccessSecurity.transformQuery
(@NotNull String query, @NotNull String language, @NotNull ResourceResolver resourceResolver) Optionally transform a query based on the current user's credentials. -
Uses of ResourceResolver in org.apache.sling.api.servlets
Modifier and TypeMethodDescription@Nullable javax.servlet.Servlet
ServletResolver.resolveServlet
(@NotNull ResourceResolver resolver, @NotNull String scriptName) Resolves ajavax.servlet.Servlet
whoseservice
method may be used to handle a request. -
Uses of ResourceResolver in org.apache.sling.api.uri
Modifier and TypeMethodDescriptionstatic @NotNull SlingUriBuilder
SlingUriBuilder.createFrom
(@NotNull URI uri, @Nullable ResourceResolver resourceResolver) Creates a builder from an arbitrary URI.static @NotNull SlingUriBuilder
SlingUriBuilder.parse
(@NotNull String uriStr, @Nullable ResourceResolver resourceResolver) Creates a builder from an arbitrary URI string.@NotNull SlingUriBuilder
SlingUriBuilder.setResourceResolver
(ResourceResolver resourceResolver) Sets the resource resolver (required forRequestPathInfo.getSuffixResource()
). -
Uses of ResourceResolver in org.apache.sling.api.wrappers
Modifier and TypeClassDescriptionclass
TheResourceResolverWrapper
is a wrapper for anyResourceResolver
, delegating all method calls to the wrapped resource resolver by default.Modifier and TypeMethodDescription@NotNull ResourceResolver
Wraps and returns theResourceResolver
obtained by callingclone
on the wrapped resource resolver.SlingHttpServletRequestWrapper.getResourceResolver()
ModifierConstructorDescriptionResourceResolverWrapper
(ResourceResolver resolver) Creates a new wrapper instance, delegating all calls to the givenresolver
. -
Uses of ResourceResolver in org.apache.sling.caconfig.impl.def
Modifier and TypeMethodDescriptionboolean
DefaultConfigurationPersistenceStrategy.deleteConfiguration
(@NotNull ResourceResolver resourceResolver, @NotNull String configResourcePath) boolean
DefaultConfigurationPersistenceStrategy.persistConfiguration
(@NotNull ResourceResolver resourceResolver, @NotNull String configResourcePath, @NotNull ConfigurationPersistData data) boolean
DefaultConfigurationPersistenceStrategy.persistConfigurationCollection
(@NotNull ResourceResolver resourceResolver, @NotNull String configResourceCollectionParentPath, @NotNull ConfigurationCollectionPersistData data) -
Uses of ResourceResolver in org.apache.sling.caconfig.impl.override
Modifier and TypeMethodDescriptionConfigurationOverrideMultiplexerImpl.overrideProperties
(@NotNull String contextPath, @NotNull String configName, @Nullable Resource configResource, @NotNull ResourceResolver resourceResolver) -
Uses of ResourceResolver in org.apache.sling.caconfig.management.multiplexer
Modifier and TypeMethodDescription@Nullable Resource
ConfigurationOverrideMultiplexer.overrideProperties
(@NotNull String contextPath, @NotNull String configName, @Nullable Resource configResource, @NotNull ResourceResolver resourceResolver) Override properties in given configuration resource (if any overrides are defined). -
Uses of ResourceResolver in org.apache.sling.caconfig.spi
Modifier and TypeMethodDescriptionboolean
ConfigurationPersistenceStrategy.deleteConfiguration
(@NotNull ResourceResolver resourceResolver, @NotNull String configResourcePath) Deprecated.Delete configuration or configuration collection data from repository using the inner-most context path as reference.boolean
ConfigurationPersistenceStrategy2.deleteConfiguration
(@NotNull ResourceResolver resourceResolver, @NotNull String configResourcePath) Delete configuration or configuration collection data from repository using the inner-most context path as reference.boolean
ConfigurationPersistenceStrategy.persistConfiguration
(@NotNull ResourceResolver resourceResolver, @NotNull String configResourcePath, @NotNull ConfigurationPersistData data) Deprecated.Stores configuration data for a singleton configuration resource.boolean
ConfigurationPersistenceStrategy2.persistConfiguration
(@NotNull ResourceResolver resourceResolver, @NotNull String configResourcePath, @NotNull ConfigurationPersistData data) Stores configuration data for a singleton configuration resource.boolean
ConfigurationPersistenceStrategy.persistConfigurationCollection
(@NotNull ResourceResolver resourceResolver, @NotNull String configResourceCollectionParentPath, @NotNull ConfigurationCollectionPersistData data) Deprecated.Stores configuration data for a configuration resource collection.boolean
ConfigurationPersistenceStrategy2.persistConfigurationCollection
(@NotNull ResourceResolver resourceResolver, @NotNull String configResourceCollectionParentPath, @NotNull ConfigurationCollectionPersistData data) Stores configuration data for a configuration resource collection. -
Uses of ResourceResolver in org.apache.sling.discovery.commons.providers.spi.base
Modifier and TypeMethodDescriptionprotected ResourceResolver
OakBacklogClusterSyncService.getResourceResolver()
Get or create a ResourceResolverprotected ResourceResolver
SyncTokenService.getResourceResolver()
Get or create a ResourceResolverModifier and TypeMethodDescriptionstatic DiscoveryLiteDescriptor
DiscoveryLiteDescriptor.getDescriptorFrom
(ResourceResolver resourceResolver) {"seq":8,"final":true,"id":"aae34e9a-b08d-409e-be10-9ff4106e5387","me":4,"active":[4],"deactivating":[],"inactive":[1,2,3]}IdMapService.toSlingId
(int clusterNodeId, ResourceResolver resourceResolver) -
Uses of ResourceResolver in org.apache.sling.discovery.commons.providers.util
Modifier and TypeMethodDescriptionstatic boolean
ResourceHelper.deleteResource
(ResourceResolver resourceResolver, String path) static Resource
ResourceHelper.getOrCreateResource
(ResourceResolver resourceResolver, String path) -
Uses of ResourceResolver in org.apache.sling.discovery.oak
Modifier and TypeMethodDescriptionprotected ResourceResolver
TopologyWebConsolePlugin.getResourceResolver()
-
Uses of ResourceResolver in org.apache.sling.discovery.oak.cluster
Modifier and TypeMethodDescriptionprotected ResourceResolver
OakClusterViewService.getResourceResolver()
ModifierConstructorDescriptionClusterReader
(ResourceResolver resourceResolver, Config config, IdMapService idMapService, Map<Integer, InstanceInfo> seenLocalInstances) -
Uses of ResourceResolver in org.apache.sling.engine
Modifier and TypeMethodDescriptionvoid
SlingRequestProcessor.processRequest
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ResourceResolver resourceResolver) Process an HTTP request through the Sling request processing engine. -
Uses of ResourceResolver in org.apache.sling.engine.impl.request
-
Uses of ResourceResolver in org.apache.sling.event.impl.jobs.config
Modifier and TypeMethodDescriptionJobManagerConfiguration.createResourceResolver()
Create a new resource resolver for reading and writing the resource tree. -
Uses of ResourceResolver in org.apache.sling.event.impl.support
Modifier and TypeMethodDescriptionstatic Resource
ResourceHelper.createAndCommitResource
(ResourceResolver resolver, String path, Map<String, Object> props) Create the resource and commit itstatic void
ResourceHelper.getOrCreateBasePath
(ResourceResolver resolver, String path) static Resource
ResourceHelper.getOrCreateResource
(ResourceResolver resolver, String path, Map<String, Object> props) Creates or gets the resource at the given path. -
Uses of ResourceResolver in org.apache.sling.fsprovider.internal.mapper
Modifier and TypeMethodDescription@NotNull ResourceResolver
ContentFileResource.getResourceResolver()
@NotNull ResourceResolver
FileResource.getResourceResolver()
Returns the resource resolver which cause this resource object to be created.Modifier and TypeMethodDescriptionContentFileResourceMapper.getChildren
(ResourceResolver resolver, Resource parent) FileResourceMapper.getChildren
(ResourceResolver resolver, Resource parent) FileVaultResourceMapper.getChildren
(ResourceResolver resolver, Resource parent) ContentFileResourceMapper.getResource
(ResourceResolver resolver, String resourcePath) FileResourceMapper.getResource
(ResourceResolver resolver, String resourcePath) FileVaultResourceMapper.getResource
(ResourceResolver resolver, String resourcePath) -
Uses of ResourceResolver in org.apache.sling.fsprovider.internal.mapper.jcr
-
Uses of ResourceResolver in org.apache.sling.jackrabbit.usermanager.impl.resource
ModifierConstructorDescriptionAuthorizableResource
(org.apache.jackrabbit.api.security.user.Authorizable authorizable, ResourceResolver resourceResolver, String path, SystemUserManagerPaths systemUserManagerPaths) protected
BaseResource
(ResourceResolver resourceResolver, String path) NestedAuthorizableResource
(org.apache.jackrabbit.api.security.user.Authorizable authorizable, ResourceResolver resourceResolver, String path, SystemUserManagerPaths systemUserManagerPaths, String relPropPath) PrincipalResource
(Principal principal, ResourceResolver resourceResolver, String path) -
Uses of ResourceResolver in org.apache.sling.jcr.resource.internal.helper
Modifier and TypeMethodDescriptionstatic void
AccessLogger.incrementUsage
(ResourceResolver resolver, String operation, String path) static void
AccessLogger.incrementUsage
(ResourceResolver resolver, String operation, String path, long count) -
Uses of ResourceResolver in org.apache.sling.jcr.resource.internal.helper.jcr
Modifier and TypeMethodDescription@Nullable org.apache.sling.jcr.resource.internal.helper.jcr.JcrItemResource<?>
JcrItemResourceFactory.createResource
(@NotNull ResourceResolver resourceResolver, @NotNull String resourcePath, @Nullable Resource parent, @Nullable Map<String, String> parameters) Creates aResource
instance for the item found at the given path.ModifierConstructorDescriptionJcrNodeResourceIterator
(ResourceResolver resourceResolver, String parentPath, String parentVersion, javax.jcr.NodeIterator nodes, org.apache.sling.jcr.resource.internal.HelperData helper, PathSet excludedPaths) Creates an instance using the given resource manager and the nodes provided as a node iterator. -
Uses of ResourceResolver in org.apache.sling.resourceresolver.impl.helper
Modifier and TypeMethodDescriptionResourceResolverControl.getParentResourceType
(ResourceResolverFactory factory, ResourceResolver resolver, String resourceType) Get the parent resource typeModifierConstructorDescriptionRedirectResource
(ResourceResolver resolver, String path, String target, int status) ResourceResolverContext
(@NotNull ResourceResolver resolver, @NotNull org.apache.sling.resourceresolver.impl.ResourceAccessSecurityTracker tracker) StarResource
(ResourceResolver resourceResolver, String path) -
Uses of ResourceResolver in org.apache.sling.resourceresolver.impl.mapping
ModifierConstructorDescriptionPagedQueryIterator
(String subject, String propertyName, ResourceResolver resolver, String query, int pageSize) -
Uses of ResourceResolver in org.apache.sling.resourceresolver.impl.providers.stateful
Modifier and TypeMethodDescriptionAuthenticatedResourceProvider.create
(ResourceResolver resolver, String path, Map<String, Object> properties) ModifierConstructorDescriptionBasicResolveContext
(@NotNull ResourceResolver resolver, @NotNull ProviderManager resolveContextManager, @NotNull ResourceResolverControl control, T providerState, @NotNull String parentPath) ProviderManager
(@NotNull ResourceResolver resolver, @NotNull org.apache.sling.resourceresolver.impl.ResourceAccessSecurityTracker tracker) -
Uses of ResourceResolver in org.apache.sling.scripting.api.resource
Modifier and TypeMethodDescriptionScriptingResourceResolverProvider.getRequestScopedResourceResolver()
Provides a request-scopedResourceResolver
with only read access to the search paths. -
Uses of ResourceResolver in org.apache.sling.scripting.jsp.taglib
Modifier and TypeMethodDescriptionprotected ResourceResolver
FindResourcesTag.getResourceResolver()
Method for retrieving the ResourceResolver from the page context.protected ResourceResolver
GetResourceTag.getResourceResolver()
Method for retrieving the ResourceResolver from the page context.protected static final ResourceResolver
SlingFunctions.getResourceResolver
(javax.servlet.jsp.PageContext pageContext) Method for retrieving the ResourceResolver from the page context.Modifier and TypeMethodDescriptionSlingFunctions.findResources
(ResourceResolver resourceResolver, String query, String language) Searches for resources using the given query formulated in the given language.static final Resource
SlingFunctions.getResource
(ResourceResolver resolver, String path) Method allow for the retrieval of resources. -
Uses of ResourceResolver in org.apache.sling.scripting.sightly.engine
Modifier and TypeMethodDescriptionstatic Resource
ResourceResolution.getResourceForRequest
(ResourceResolver resolver, SlingHttpServletRequest request) Resolves the resource accessed by arequest
. -
Uses of ResourceResolver in org.apache.sling.scripting.sightly.js.impl.jsapi
Modifier and TypeMethodDescriptionvoid
SlyBindingsValuesProvider.initialise
(ResourceResolver resourceResolver, org.apache.sling.scripting.sightly.js.impl.JsEnvironment environment, Bindings bindings) void
ProxyAsyncScriptableFactory.registerProxies
(ResourceResolver resourceResolver, org.apache.sling.scripting.sightly.js.impl.JsEnvironment environment, Bindings bindings) -
Uses of ResourceResolver in org.apache.sling.scripting.sightly.js.impl.use
ModifierConstructorDescriptionDependencyResolver
(@NotNull ResourceResolver scriptingResourceResolver) -
Uses of ResourceResolver in org.apache.sling.servlets.post.impl.helper
Modifier and TypeMethodDescriptionboolean
JCRSupport.hasSession
(ResourceResolver resolver) boolean
JCRSupportImpl.hasSession
(ResourceResolver resolver) JCRSupport.isFileNodeType
(ResourceResolver resolver, String nodeType) JCRSupportImpl.isFileNodeType
(ResourceResolver resolver, String nodeType) -
Uses of ResourceResolver in org.apache.sling.servlets.resolver.internal.helper
Modifier and TypeMethodDescriptionstatic void
AbstractResourceCollector.clearCache
(@NotNull ResourceResolver resolver) static void
LocationCollector.clearCache
(ResourceResolver resolver) Purge all cache entries owned by the LocationCollectorprotected final @NotNull Resource
AbstractResourceCollector.getResource
(@NotNull ResourceResolver resolver, @NotNull String path, boolean useCaching) Returns a resource for the givenpath
.protected static @NotNull Resource
LocationCollector.getResource
(@NotNull ResourceResolver resolver, @NotNull String path, @NotNull Map<String, Resource> cacheMap) Resolve a path to a resource, either via the cache or the ResourceResolverstatic @Nullable Resource
AbstractResourceCollector.getResourceOrNull
(@NotNull ResourceResolver resolver, @NotNull String path, boolean useCaching) Resolvers a resource or null if there is no resource resolved from the given path.final Collection<Resource>
AbstractResourceCollector.getServlets
(ResourceResolver resolver, List<String> scriptExtensions) -
Uses of ResourceResolver in org.apache.sling.servlets.resolver.internal.resource
ModifierConstructorDescriptionServletResource
(ResourceResolver resourceResolver, javax.servlet.Servlet servlet, String path) -
Uses of ResourceResolver in org.apache.sling.spi.resource.provider
Modifier and TypeMethodDescription@NotNull ResourceResolver
ResolveContext.getResourceResolver()
Get the current resource resolver.