Modifier and Type | Method and Description |
---|---|
ResourceResolver |
SlingHttpServletRequest.getResourceResolver()
Returns the
ResourceResolver which resolved the
resource of this request. |
Modifier and Type | Method and Description |
---|---|
ResourceResolver |
ResourceResolver.clone(Map<String,Object> authenticationInfo)
Returns a new
ResourceResolver instance based on the given
authenticationInfo map and the original authentication info
used to create this instance. |
ResourceResolver |
ResourceResolverFactory.getAdministrativeResourceResolver(Map<String,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. |
ResourceResolver |
SyntheticResource.getResourceResolver()
Returns the
ResourceResolver with which this synthetic resource
is related or null if none. |
ResourceResolver |
ResourceWrapper.getResourceResolver()
Returns the value of calling
getResourceResolver on the
wrapped resource . |
ResourceResolver |
Resource.getResourceResolver()
Returns the
ResourceResolver from which this resource has been
retrieved. |
ResourceResolver |
ResourceResolverFactory.getResourceResolver(Map<String,Object> authenticationInfo)
Returns a new
ResourceResolver instance with further
configuration taken from the given authenticationInfo map. |
ResourceResolver |
ResourceResolverFactory.getServiceResourceResolver(Map<String,Object> authenticationInfo)
Returns a new
ResourceResolver instance with privileges assigned
to the service provided by the calling bundle. |
ResourceResolver |
ResourceResolverFactory.getThreadResourceResolver()
Returns the
ResourceResolver for the current thread. |
Modifier and Type | Method and Description |
---|---|
void |
ModifyingResourceProvider.commit(ResourceResolver resolver)
Commit all transient changes: create, delete and updates
|
Resource |
ModifyingResourceProvider.create(ResourceResolver resolver,
String path,
Map<String,Object> properties)
Create a new resource at the given path.
|
void |
ModifyingResourceProvider.delete(ResourceResolver resolver,
String path)
Delete the resource at the given path.
|
Iterator<Resource> |
QueriableResourceProvider.findResources(ResourceResolver resolver,
String query,
String language)
Searches for resources using the given query formulated in the given
language.
|
Object |
AttributableResourceProvider.getAttribute(ResourceResolver resolver,
String name)
Returns the value of the given resource provider attribute or
null
if the attribute is not set or not visible (as e.g. |
Collection<String> |
AttributableResourceProvider.getAttributeNames(ResourceResolver resolver)
Returns a collection of attribute names whose value can be retrieved
calling the
AttributableResourceProvider.getAttribute(ResourceResolver, String) method. |
static Resource |
ResourceUtil.getOrCreateResource(ResourceResolver resolver,
String path,
Map<String,Object> resourceProperties,
String intermediateResourceType,
boolean autoCommit)
Creates or gets the resource at the given path.
|
static Resource |
ResourceUtil.getOrCreateResource(ResourceResolver resolver,
String path,
String resourceType,
String intermediateResourceType,
boolean autoCommit)
Creates or gets the resource at the given path.
|
Resource |
ResourceProvider.getResource(ResourceResolver resourceResolver,
javax.servlet.http.HttpServletRequest request,
String path)
Deprecated.
since 2.2.0 (and JCR Resource 2.1.0), this method will not be invoked.
|
Resource |
ResourceProvider.getResource(ResourceResolver resourceResolver,
String path)
Returns a resource from this resource provider or
null if
the resource provider cannot find it. |
Resource |
ParametrizableResourceProvider.getResource(ResourceResolver resourceResolver,
String path,
Map<String,String> parameters)
Returns a resource from this resource provider or
null if
the resource provider cannot find it. |
static String |
ResourceUtil.getResourceSuperType(ResourceResolver resourceResolver,
String resourceType)
Deprecated.
|
boolean |
ModifyingResourceProvider.hasChanges(ResourceResolver resolver)
Are there any transient changes?
|
Iterator<ValueMap> |
QueriableResourceProvider.queryResources(ResourceResolver resolver,
String query,
String language)
Queries the storage using the given query formulated in the given
language.
|
void |
ModifyingResourceProvider.revert(ResourceResolver resolver)
Revert all transient changes: create, delete and updates.
|
Constructor and Description |
---|
NonExistingResource(ResourceResolver resourceResolver,
String resourceURI)
Create a new non existing resource.
|
SyntheticResource(ResourceResolver resourceResolver,
ResourceMetadata rm,
String resourceType)
Creates a synthetic resource with the given
ResourceMetadata
and resourceType . |
SyntheticResource(ResourceResolver resourceResolver,
String path,
String resourceType)
Creates a synthetic resource with the given
path and
resourceType . |
Modifier and Type | Method and Description |
---|---|
SlingScript |
SlingScriptResolver.findScript(ResourceResolver resourceResolver,
String name)
Deprecated.
Finds the
SlingScript for the given name. |
Modifier and Type | Method and Description |
---|---|
boolean |
ResourceAccessSecurity.canCreate(String absPathName,
ResourceResolver resourceResolver) |
String |
ResourceAccessSecurity.transformQuery(String query,
String language,
ResourceResolver resourceResolver)
Optionally transform a query based on the current
user's credentials.
|
Modifier and Type | Method and Description |
---|---|
javax.servlet.Servlet |
ServletResolver.resolveServlet(ResourceResolver resolver,
String scriptName)
Resolves a
javax.servlet.Servlet whose
service method may be used to handle a request. |
Modifier and Type | Method and Description |
---|---|
ResourceResolver |
SlingHttpServletRequestWrapper.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 |
JcrResourceResolverFactory.getResourceResolver(javax.jcr.Session session)
Deprecated.
Returns a
ResourceResolver for the given session. |
Modifier and Type | Method and Description |
---|---|
static String |
JcrResourceUtil.getResourceSuperType(ResourceResolver resourceResolver,
String resourceType)
Deprecated.
|
Copyright © 2015 The Apache Software Foundation. All rights reserved.