Modifier and Type | Method and Description |
---|---|
Resource |
SlingHttpServletRequest.getResource()
Returns the
Resource object on whose behalf the servlet acts. |
Modifier and Type | Method and Description |
---|---|
javax.servlet.RequestDispatcher |
SlingHttpServletRequest.getRequestDispatcher(Resource resource)
Same as
SlingHttpServletRequest.getRequestDispatcher(Resource,RequestDispatcherOptions)
but using empty options. |
javax.servlet.RequestDispatcher |
SlingHttpServletRequest.getRequestDispatcher(Resource resource,
RequestDispatcherOptions options)
Returns a
RequestDispatcher object that acts as a wrapper
for the resource located at the given resource. |
Modifier and Type | Method and Description |
---|---|
Resource |
RequestPathInfo.getSuffixResource()
Returns the resource addressed by the suffix or null if the request does
not have a suffix or the suffix does not address an accessible resource.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractResource
The
AbstractResource is an abstract implementation of the
Resource interface. |
class |
NonExistingResource
Simple helper class representing nonexisting resources.
|
class |
ResourceWrapper
The
ResourceWrapper is a wrapper for any Resource
delegating all method calls to the wrapped resource by default. |
class |
SyntheticResource
The
SyntheticResource class is a simple implementation of the
Resource interface which may be used to provide a resource
object which has no actual resource data. |
Modifier and Type | Method and Description |
---|---|
Resource |
ResourceResolver.copy(java.lang.String srcAbsPath,
java.lang.String destAbsPath)
This method copies the subgraph rooted at, and including, the resource at
srcAbsPath to the new location at destAbsPath and
adds it as a child node of the resource at destAbsPath . |
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.
|
Resource |
ResourceResolver.create(Resource parent,
java.lang.String name,
java.util.Map<java.lang.String,java.lang.Object> properties)
Add a child resource to the given parent resource
|
Resource |
ResourceDecorator.decorate(Resource resource)
Decorate a resource.
|
Resource |
ResourceDecorator.decorate(Resource resource,
javax.servlet.http.HttpServletRequest request)
Deprecated.
since 2.3.0 (and JCR Resource 2.1.0), this method will not be invoked.
|
Resource |
ResourceWrapper.getChild(java.lang.String relPath)
Returns the value of calling
getChild on the
wrapped resource . |
Resource |
AbstractResource.getChild(java.lang.String relPath)
Returns the indicated child of this resource.
|
Resource |
Resource.getChild(java.lang.String relPath)
Returns the child at the given relative path of this resource or
null if no such child exists. |
static Resource |
ResourceUtil.getOrCreateResource(ResourceResolver resolver,
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 Resource |
ResourceUtil.getOrCreateResource(ResourceResolver resolver,
java.lang.String path,
java.lang.String resourceType,
java.lang.String intermediateResourceType,
boolean autoCommit)
Creates or gets the resource at the given path.
|
Resource |
ResourceWrapper.getParent()
Returns the value of calling
getParent on the
wrapped resource . |
Resource |
AbstractResource.getParent()
Returns the parent resource of this resource.
|
Resource |
NonExistingResource.getParent() |
Resource |
Resource.getParent()
Returns the parent resource or
null if this resource
represents the root of the resource tree. |
static Resource |
ResourceUtil.getParent(Resource rsrc)
Deprecated.
since 2.1.0, use
getParent() instead |
Resource |
ResourceResolver.getParent(Resource child)
Returns the parent resource of this resource.
|
Resource |
ResourceWrapper.getResource()
Returns the
Resource wrapped by this instance. |
Resource |
ResourceProvider.getResource(ResourceResolver resourceResolver,
javax.servlet.http.HttpServletRequest request,
java.lang.String path)
Deprecated.
since 2.2.0 (and JCR Resource 2.1.0), this method will not be invoked.
|
Resource |
ResourceProvider.getResource(ResourceResolver resourceResolver,
java.lang.String path)
Deprecated.
Returns a resource from this resource provider or
null if
the resource provider cannot find it. |
Resource |
ParametrizableResourceProvider.getResource(ResourceResolver resourceResolver,
java.lang.String path,
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. |
Resource |
ResourceResolver.getResource(Resource base,
java.lang.String path)
Returns a
Resource object for data located at the given path. |
Resource |
ResourceResolver.getResource(java.lang.String path)
Returns a
Resource object for data located at the given path. |
Resource |
ResourceResolver.move(java.lang.String srcAbsPath,
java.lang.String destAbsPath)
This method moves the subgraph rooted at, and including, the resource at
srcAbsPath to the new location at destAbsPath and
adds it as a child node of the resource at destAbsPath . |
Resource |
ResourceResolver.resolve(javax.servlet.http.HttpServletRequest request)
Deprecated.
as of 2.0.4, use
ResourceResolver.resolve(HttpServletRequest, String)
instead. |
Resource |
ResourceResolver.resolve(javax.servlet.http.HttpServletRequest request,
java.lang.String absPath)
Resolves the resource from the given
absPath optionally
taking HttpServletRequest into account, such as the value of
the Host request header. |
Resource |
ResourceResolver.resolve(java.lang.String absPath)
Resolves the resource from the given absolute path.
|
static Resource |
ResourceUtil.unwrap(Resource rsrc)
Unwrap the resource and return the wrapped implementation.
|
Modifier and Type | Method and Description |
---|---|
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.util.Iterator<Resource> |
ResourceResolver.findResources(java.lang.String query,
java.lang.String language)
Searches for resources using the given query formulated in the given
language.
|
java.lang.Iterable<Resource> |
ResourceWrapper.getChildren() |
java.lang.Iterable<Resource> |
AbstractResource.getChildren() |
java.lang.Iterable<Resource> |
Resource.getChildren()
Returns an iterable of the direct children of this resource.
|
java.lang.Iterable<Resource> |
ResourceResolver.getChildren(Resource parent)
|
java.util.Iterator<Resource> |
ResourceWrapper.listChildren()
Returns the value of calling
listChildren on the
wrapped resource . |
java.util.Iterator<Resource> |
AbstractResource.listChildren()
Returns an iterator on the direct child resources.
|
java.util.Iterator<Resource> |
Resource.listChildren()
Returns an iterator of the direct children of this resource.
|
static java.util.Iterator<Resource> |
ResourceUtil.listChildren(Resource parent)
Deprecated.
since 2.1.0, use
listChildren() instead |
java.util.Iterator<Resource> |
ResourceProvider.listChildren(Resource parent)
Deprecated.
|
java.util.Iterator<Resource> |
ResourceResolver.listChildren(Resource parent)
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractResourceVisitor.accept(Resource res)
Visit the given resource and all its descendants.
|
Resource |
ResourceResolver.create(Resource parent,
java.lang.String name,
java.util.Map<java.lang.String,java.lang.Object> properties)
Add a child resource to the given parent resource
|
static java.lang.String |
ResourceUtil.createUniqueChildName(Resource parent,
java.lang.String name)
Create a unique name for a child of the
parent . |
Resource |
ResourceDecorator.decorate(Resource resource)
Decorate a resource.
|
Resource |
ResourceDecorator.decorate(Resource resource,
javax.servlet.http.HttpServletRequest request)
Deprecated.
since 2.3.0 (and JCR Resource 2.1.0), this method will not be invoked.
|
void |
ResourceUtil.BatchResourceRemover.delete(Resource rsrc) |
void |
ResourceResolver.delete(Resource resource)
Delete the resource
Deleting a non existing resource leads to no operation nor exception.
|
static java.lang.String |
ResourceUtil.findResourceSuperType(Resource resource)
Deprecated.
|
java.lang.Iterable<Resource> |
ResourceResolver.getChildren(Resource parent)
|
static java.lang.String |
ResourceUtil.getName(Resource rsrc)
Deprecated.
since 2.1.0, use
getName() instead |
static Resource |
ResourceUtil.getParent(Resource rsrc)
Deprecated.
since 2.1.0, use
getParent() instead |
Resource |
ResourceResolver.getParent(Resource child)
Returns the parent resource of this resource.
|
java.lang.String |
ResourceResolver.getParentResourceType(Resource resource)
Returns the super type of the given resource.
|
Resource |
ResourceResolver.getResource(Resource base,
java.lang.String path)
Returns a
Resource object for data located at the given path. |
static ValueMap |
ResourceUtil.getValueMap(Resource res)
Returns an
ValueMap object for the given
Resource . |
boolean |
ResourceResolver.hasChildren(Resource resource)
Checks if the specified resource has any direct child resources.
|
static boolean |
ResourceUtil.isA(Resource resource,
java.lang.String resourceType)
Deprecated.
|
static boolean |
ResourceUtil.isNonExistingResource(Resource res)
Returns
true if the resource res is a
non-existing resource. |
boolean |
ResourceResolver.isResourceType(Resource resource,
java.lang.String resourceType)
Returns
true if the resource type or any of the resource's
super type(s) equals the given resource type. |
static boolean |
ResourceUtil.isStarResource(Resource res)
Returns
true if the resource res is a "star
resource". |
static boolean |
ResourceUtil.isSyntheticResource(Resource res)
Returns
true if the resource res is a synthetic
resource. |
static java.util.Iterator<Resource> |
ResourceUtil.listChildren(Resource parent)
Deprecated.
since 2.1.0, use
listChildren() instead |
java.util.Iterator<Resource> |
ResourceProvider.listChildren(Resource parent)
Deprecated.
|
java.util.Iterator<Resource> |
ResourceResolver.listChildren(Resource parent)
|
static Resource |
ResourceUtil.unwrap(Resource rsrc)
Unwrap the resource and return the wrapped implementation.
|
protected abstract void |
AbstractResourceVisitor.visit(Resource res)
Implement this method to do actual work on the resources.
|
Modifier and Type | Method and Description |
---|---|
static <T> java.util.Iterator<T> |
ResourceUtil.adaptTo(java.util.Iterator<Resource> iterator,
java.lang.Class<T> type)
Return an iterator for objects of the specified type.
|
protected void |
AbstractResourceVisitor.traverseChildren(java.util.Iterator<Resource> children)
Visit the given resources.
|
Constructor and Description |
---|
ResourceWrapper(Resource resource)
Creates a new wrapper instance delegating all method calls to the given
resource . |
Modifier and Type | Method and Description |
---|---|
java.net.URI |
URIProvider.toURI(Resource resource,
URIProvider.Scope scope,
URIProvider.Operation operation)
Return a URI appicable to the defined scope.
|
Modifier and Type | Method and Description |
---|---|
Resource |
SlingBindings.getResource()
|
Resource |
SlingScript.getScriptResource()
Returns the Resource providing the script source code.
|
Modifier and Type | Method and Description |
---|---|
void |
SlingScriptHelper.forward(Resource resource)
Same as
SlingScriptHelper.forward(Resource,RequestDispatcherOptions) , but using
empty options. |
void |
SlingScriptHelper.forward(Resource resource,
RequestDispatcherOptions options)
Helper method to forward the request to a Servlet or script for the given
resource and options . |
void |
SlingScriptHelper.forward(Resource resource,
java.lang.String requestDispatcherOptions)
Helper method to forward the request to a Servlet or script for the given
resource and requestDispatcherOptions . |
void |
SlingScriptHelper.include(Resource resource)
Same as
SlingScriptHelper.include(Resource,RequestDispatcherOptions) , but using
empty options. |
void |
SlingScriptHelper.include(Resource resource,
RequestDispatcherOptions options)
Helper method to include the result of processing the request for the
given
resource and options . |
void |
SlingScriptHelper.include(Resource resource,
java.lang.String requestDispatcherOptions)
Helper method to include the result of processing the request for the
given
resource and requestDispatcherOptions . |
void |
SlingBindings.setResource(Resource resource)
|
Modifier and Type | Method and Description |
---|---|
Resource |
ResourceAccessSecurity.getReadableResource(Resource resource)
If supplied Resource can be read, return it (or a wrapped
variant of it).
|
Modifier and Type | Method and Description |
---|---|
boolean |
ResourceAccessSecurity.canDelete(Resource resource)
Check whether a resource can be deleted at the path.
|
boolean |
ResourceAccessSecurity.canDeleteValue(Resource resource,
java.lang.String valueName)
Check whether a value can be deleted
|
boolean |
ResourceAccessSecurity.canExecute(Resource resource)
Check whether a resource can be executed at the path.
|
boolean |
ResourceAccessSecurity.canReadValue(Resource resource,
java.lang.String valueName)
Check whether a value can be read
|
boolean |
ResourceAccessSecurity.canSetValue(Resource resource,
java.lang.String valueName)
Check whether a value can be set
|
boolean |
ResourceAccessSecurity.canUpdate(Resource resource)
Check whether a resource can be updated at the path.
|
Resource |
ResourceAccessSecurity.getReadableResource(Resource resource)
If supplied Resource can be read, return it (or a wrapped
variant of it).
|
Modifier and Type | Method and Description |
---|---|
javax.servlet.Servlet |
ServletResolver.resolveServlet(Resource resource,
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 |
---|---|
Resource |
ResourceResolverWrapper.copy(java.lang.String srcAbsPath,
java.lang.String destAbsPath)
Wraps the
Resource obtained by calling copy on the wrapped resource resolver. |
Resource |
ResourceResolverWrapper.create(Resource parent,
java.lang.String name,
java.util.Map<java.lang.String,java.lang.Object> properties)
Wraps the
Resource obtained by calling create on the wrapped resource resolver. |
Resource |
ResourceResolverWrapper.getParent(Resource child)
Wraps and returns the
Resource obtained by calling getParent on the wrapped resource resolver. |
Resource |
SlingHttpServletRequestWrapper.getResource() |
Resource |
ResourceResolverWrapper.getResource(Resource base,
java.lang.String path)
Wraps and returns the
Resource obtained by calling getResource on the wrapped resource resolver. |
Resource |
ResourceResolverWrapper.getResource(java.lang.String path)
Wraps and returns the
Resource obtained by calling getResource on the wrapped resource resolver. |
Resource |
ResourceResolverWrapper.move(java.lang.String srcAbsPath,
java.lang.String destAbsPath)
Wraps the
Resource obtained by calling move on the wrapped resource resolver. |
Resource |
ResourceResolverWrapper.resolve(javax.servlet.http.HttpServletRequest request)
Wraps and returns the
Resource obtained by calling resolve on the wrapped resource resolver. |
Resource |
ResourceResolverWrapper.resolve(javax.servlet.http.HttpServletRequest request,
java.lang.String absPath)
Wraps and returns the
Resource obtained by calling resolve on the wrapped resource resolver. |
Resource |
ResourceResolverWrapper.resolve(java.lang.String absPath)
Wraps and returns the
Resource obtained by calling resolve on the wrapped resource resolver. |
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<Resource> |
ResourceResolverWrapper.findResources(java.lang.String query,
java.lang.String language)
Wraps and returns the
Iterator obtained by calling findResources on the wrapped resource resolver. |
java.lang.Iterable<Resource> |
ResourceResolverWrapper.getChildren(Resource parent)
Wraps and returns the
Iterable obtained by calling getChildren on the wrapped resource resolver. |
java.util.Iterator<Resource> |
ResourceResolverWrapper.listChildren(Resource parent)
Wraps and returns the
Iterator obtained by calling listChildren on the wrapped resource resolver. |
Modifier and Type | Method and Description |
---|---|
Resource |
ResourceResolverWrapper.create(Resource parent,
java.lang.String name,
java.util.Map<java.lang.String,java.lang.Object> properties)
Wraps the
Resource obtained by calling create on the wrapped resource resolver. |
void |
ResourceResolverWrapper.delete(Resource resource) |
java.lang.Iterable<Resource> |
ResourceResolverWrapper.getChildren(Resource parent)
Wraps and returns the
Iterable obtained by calling getChildren on the wrapped resource resolver. |
Resource |
ResourceResolverWrapper.getParent(Resource child)
Wraps and returns the
Resource obtained by calling getParent on the wrapped resource resolver. |
java.lang.String |
ResourceResolverWrapper.getParentResourceType(Resource resource) |
javax.servlet.RequestDispatcher |
SlingHttpServletRequestWrapper.getRequestDispatcher(Resource resource) |
javax.servlet.RequestDispatcher |
SlingHttpServletRequestWrapper.getRequestDispatcher(Resource resource,
RequestDispatcherOptions options) |
Resource |
ResourceResolverWrapper.getResource(Resource base,
java.lang.String path)
Wraps and returns the
Resource obtained by calling getResource on the wrapped resource resolver. |
boolean |
ResourceResolverWrapper.hasChildren(Resource resource) |
boolean |
ResourceResolverWrapper.isResourceType(Resource resource,
java.lang.String resourceType) |
java.util.Iterator<Resource> |
ResourceResolverWrapper.listChildren(Resource parent)
Wraps and returns the
Iterator obtained by calling listChildren on the wrapped resource resolver. |
Constructor and Description |
---|
DeepReadModifiableValueMapDecorator(Resource resource,
ValueMap base) |
DeepReadValueMapDecorator(Resource resource,
ValueMap base) |
Modifier and Type | Method and Description |
---|---|
ConfigurationBuilder |
ConfigurationResolver.get(Resource resource)
Get configuration for given resource.
|
Modifier and Type | Method and Description |
---|---|
void |
ConfigurationManager.deleteConfiguration(Resource resource,
java.lang.String configName)
Delete configuration or configuration collection data from repository using the inner-most context path as reference.
|
ConfigurationData |
ConfigurationManager.getConfiguration(Resource resource,
java.lang.String configName)
Get configuration data for the given context resource and configuration name.
|
ConfigurationCollectionData |
ConfigurationManager.getConfigurationCollection(Resource resource,
java.lang.String configName)
Get configuration data collection for the given context resource and configuration name.
|
ConfigurationData |
ConfigurationManager.newCollectionItem(Resource resource,
java.lang.String configName)
Creates a new empty configuration data item for a configuration data collection for the given configuration name.
|
void |
ConfigurationManager.persistConfiguration(Resource resource,
java.lang.String configName,
ConfigurationPersistData data)
Write configuration data to repository using the inner-most context path as reference.
|
void |
ConfigurationManager.persistConfigurationCollection(Resource resource,
java.lang.String configName,
ConfigurationCollectionPersistData data)
Write configuration data collection using the inner-most context path as reference.
|
Modifier and Type | Method and Description |
---|---|
Resource |
ConfigurationOverrideMultiplexer.overrideProperties(java.lang.String contextPath,
java.lang.String configName,
Resource configResource)
Deprecated.
|
Resource |
ConfigurationOverrideMultiplexer.overrideProperties(java.lang.String contextPath,
java.lang.String configName,
Resource configResource,
ResourceResolver resourceResolver)
Override properties in given configuration resource (if any overrides are defined).
|
Modifier and Type | Method and Description |
---|---|
Resource |
ConfigurationOverrideMultiplexer.overrideProperties(java.lang.String contextPath,
java.lang.String configName,
Resource configResource)
Deprecated.
|
Resource |
ConfigurationOverrideMultiplexer.overrideProperties(java.lang.String contextPath,
java.lang.String configName,
Resource configResource,
ResourceResolver resourceResolver)
Override properties in given configuration resource (if any overrides are defined).
|
Modifier and Type | Method and Description |
---|---|
Resource |
ConfigurationResourceResolver.getResource(Resource resource,
java.lang.String bucketName,
java.lang.String configName)
Get a context-aware singleton configuration resource defined by the given configuration name.
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection<Resource> |
ConfigurationResourceResolver.getResourceCollection(Resource resource,
java.lang.String bucketName,
java.lang.String configName)
Get a collection of context-aware configuration resources defined by the given configuration name.
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection<java.lang.String> |
ConfigurationResourceResolver.getAllContextPaths(Resource resource)
Get all context paths for which context-aware configurations could be defined.
|
java.lang.String |
ConfigurationResourceResolver.getContextPath(Resource resource)
Get the inner-most context path (deepest path) returned by
ConfigurationResourceResolver.getAllContextPaths(Resource) . |
Resource |
ConfigurationResourceResolver.getResource(Resource resource,
java.lang.String bucketName,
java.lang.String configName)
Get a context-aware singleton configuration resource defined by the given configuration name.
|
java.util.Collection<Resource> |
ConfigurationResourceResolver.getResourceCollection(Resource resource,
java.lang.String bucketName,
java.lang.String configName)
Get a collection of context-aware configuration resources defined by the given configuration name.
|
Modifier and Type | Method and Description |
---|---|
Resource |
ContextResource.getResource() |
Resource |
ConfigurationResourceResolvingStrategy.getResource(Resource resource,
java.util.Collection<java.lang.String> bucketNames,
java.lang.String configName)
Get a context-aware singleton configuration resource defined by the given configuration name.
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection<Resource> |
ConfigurationResourceResolvingStrategy.getResourceCollection(Resource resource,
java.util.Collection<java.lang.String> bucketNames,
java.lang.String configName)
Get a collection of context-aware configuration resources defined by the given configuration name.
|
java.util.Collection<java.util.Iterator<Resource>> |
ConfigurationResourceResolvingStrategy.getResourceCollectionInheritanceChain(Resource resource,
java.util.Collection<java.lang.String> bucketNames,
java.lang.String configName)
Get a collection of context-aware configuration resource inheritance chains defined by the given configuration name.
|
java.util.Iterator<Resource> |
ConfigurationResourceResolvingStrategy.getResourceInheritanceChain(Resource resource,
java.util.Collection<java.lang.String> bucketNames,
java.lang.String configName)
Get a context-aware singleton configuration resource inheritance chain defined by the given configuration name.
|
Modifier and Type | Method and Description |
---|---|
InheritanceDecision |
CollectionInheritanceDecider.decide(Resource resource,
java.lang.String bucketName)
Decide whether the provided resource should be included in the collection.
|
java.util.Iterator<ContextResource> |
ContextPathStrategy.findContextResources(Resource resource)
Finds context paths for the given resource.
|
Resource |
ConfigurationResourceResolvingStrategy.getResource(Resource resource,
java.util.Collection<java.lang.String> bucketNames,
java.lang.String configName)
Get a context-aware singleton configuration resource defined by the given configuration name.
|
java.util.Collection<Resource> |
ConfigurationResourceResolvingStrategy.getResourceCollection(Resource resource,
java.util.Collection<java.lang.String> bucketNames,
java.lang.String configName)
Get a collection of context-aware configuration resources defined by the given configuration name.
|
java.util.Collection<java.util.Iterator<Resource>> |
ConfigurationResourceResolvingStrategy.getResourceCollectionInheritanceChain(Resource resource,
java.util.Collection<java.lang.String> bucketNames,
java.lang.String configName)
Get a collection of context-aware configuration resource inheritance chains defined by the given configuration name.
|
java.lang.String |
ConfigurationResourceResolvingStrategy.getResourceCollectionParentPath(Resource resource,
java.lang.String bucketName,
java.lang.String configName)
Get the configuration resource collection parent path for storing configuration data for the given context resource and configuration name.
|
java.util.Iterator<Resource> |
ConfigurationResourceResolvingStrategy.getResourceInheritanceChain(Resource resource,
java.util.Collection<java.lang.String> bucketNames,
java.lang.String configName)
Get a context-aware singleton configuration resource inheritance chain defined by the given configuration name.
|
java.lang.String |
ConfigurationResourceResolvingStrategy.getResourcePath(Resource resource,
java.lang.String bucketName,
java.lang.String configName)
Get the configuration resource path for storing configuration data for the given context resource and configuration name.
|
Constructor and Description |
---|
ContextResource(Resource resource,
java.lang.String configRef)
Deprecated.
|
ContextResource(Resource resource,
java.lang.String configRef,
int serviceRanking) |
Modifier and Type | Method and Description |
---|---|
Resource |
ConfigurationPersistenceStrategy2.getCollectionItemResource(Resource resource)
Allows the strategy to transform the given configuration resource according to it's persistent strategies,
e.g.
|
Resource |
ConfigurationPersistenceStrategy2.getCollectionParentResource(Resource resource)
Allows the strategy to transform the given configuration resource according to it's persistent strategies,
e.g.
|
Resource |
ConfigurationInheritanceStrategy.getResource(java.util.Iterator<Resource> configResources)
Pick or merge resources for inheritance.
|
Resource |
ConfigurationPersistenceStrategy.getResource(Resource resource)
Deprecated.
Allows the strategy to transform the given configuration resource according to it's persistent strategies,
e.g.
|
Resource |
ConfigurationPersistenceStrategy2.getResource(Resource resource)
Allows the strategy to transform the given configuration resource according to it's persistent strategies,
e.g.
|
Modifier and Type | Method and Description |
---|---|
Resource |
ConfigurationPersistenceStrategy2.getCollectionItemResource(Resource resource)
Allows the strategy to transform the given configuration resource according to it's persistent strategies,
e.g.
|
Resource |
ConfigurationPersistenceStrategy2.getCollectionParentResource(Resource resource)
Allows the strategy to transform the given configuration resource according to it's persistent strategies,
e.g.
|
Resource |
ConfigurationPersistenceStrategy.getResource(Resource resource)
Deprecated.
Allows the strategy to transform the given configuration resource according to it's persistent strategies,
e.g.
|
Resource |
ConfigurationPersistenceStrategy2.getResource(Resource resource)
Allows the strategy to transform the given configuration resource according to it's persistent strategies,
e.g.
|
Modifier and Type | Method and Description |
---|---|
Resource |
ConfigurationInheritanceStrategy.getResource(java.util.Iterator<Resource> configResources)
Pick or merge resources for inheritance.
|
Modifier and Type | Method and Description |
---|---|
void |
Announcement.persistTo(Resource announcementsResource)
Persists this announcement using the given 'announcements' resource,
under which a node with the primary key is created
|
Modifier and Type | Method and Description |
---|---|
static Resource |
ResourceHelper.getOrCreateResource(ResourceResolver resourceResolver,
java.lang.String path) |
Modifier and Type | Method and Description |
---|---|
static java.lang.StringBuilder |
ResourceHelper.getPropertiesForLogging(Resource resource)
Compile a string builder containing the properties of a resource - used for logging
|
static void |
ResourceHelper.moveResource(Resource res,
java.lang.String path)
Move resource to given path.
|
Modifier and Type | Method and Description |
---|---|
void |
DeleteAuthorizables.deleteAuthorizables(javax.jcr.Session jcrSession,
Resource baseResource,
java.lang.String[] paths,
java.util.List<Modification> changes)
Deletes one or more users or groups from the repository
|
Modifier and Type | Method and Description |
---|---|
<T> T |
ModelFactory.exportModelForResource(Resource resource,
java.lang.String exporterName,
java.lang.Class<T> targetClass,
java.util.Map<java.lang.String,java.lang.String> options)
Export the model object registered to the resource's type using the defined target class using the named exporter.
|
java.lang.Object |
ModelFactory.getModelFromResource(Resource resource)
Obtain an adapted model class based on the resource type of the provided resource.
|
<T> T |
ModelFactory.getModelFromWrappedRequest(SlingHttpServletRequest request,
Resource resource,
java.lang.Class<T> targetClass)
Create a wrapped request object with the specified resource and (try to) adapt the request object into the specified class.
|
boolean |
ModelFactory.isModelAvailableForResource(Resource resource)
Determine is a model class is available for the resource's resource type.
|
Modifier and Type | Method and Description |
---|---|
void |
ScriptHelper.forward(Resource resource) |
void |
ScriptHelper.forward(Resource resource,
RequestDispatcherOptions options) |
void |
ScriptHelper.forward(Resource resource,
java.lang.String options) |
void |
ScriptHelper.include(Resource resource) |
void |
ScriptHelper.include(Resource resource,
RequestDispatcherOptions options) |
void |
ScriptHelper.include(Resource resource,
java.lang.String options) |
Modifier and Type | Method and Description |
---|---|
void |
ScriptableResource.setResource(Resource entry) |
Constructor and Description |
---|
ScriptableResource(Resource resource) |
Modifier and Type | Method and Description |
---|---|
static Resource |
ResourceResolution.getResourceForRequest(ResourceResolver resolver,
SlingHttpServletRequest request)
Resolves the resource accessed by a
request . |
static Resource |
ResourceResolution.getResourceFromSearchPath(Resource base,
java.lang.String path)
Resolves a resource from the search path relative to the
base resource by traversing the sling:resourceSuperType
chain. |
Modifier and Type | Method and Description |
---|---|
static Resource |
ResourceResolution.getResourceFromSearchPath(Resource base,
java.lang.String path)
Resolves a resource from the search path relative to the
base resource by traversing the sling:resourceSuperType
chain. |
Modifier and Type | Method and Description |
---|---|
protected java.util.Iterator<Resource> |
AbstractPostOperation.getApplyToResources(SlingHttpServletRequest request)
Deprecated.
Returns an iterator on
Resource instances addressed in the
SlingPostConstants.RP_APPLY_TO request parameter. |
Modifier and Type | Method and Description |
---|---|
Resource |
ResourceProvider.create(ResolveContext<T> ctx,
java.lang.String path,
java.util.Map<java.lang.String,java.lang.Object> properties)
Create a new resource at the given path.
|
Resource |
ResourceProvider.getParent(ResolveContext<T> ctx,
Resource child)
Returns the parent resource from this resource provider or
null if
the resource provider cannot find it. |
abstract Resource |
ResourceProvider.getResource(ResolveContext<T> ctx,
java.lang.String path,
ResourceContext resourceContext,
Resource parent)
Returns a resource from this resource provider or
null if
the resource provider cannot find it. |
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<Resource> |
QueryLanguageProvider.findResources(ResolveContext<T> ctx,
java.lang.String query,
java.lang.String language)
Searches for resources using the given query formulated in the given
language.
|
abstract java.util.Iterator<Resource> |
ResourceProvider.listChildren(ResolveContext<T> ctx,
Resource parent)
|
Modifier and Type | Method and Description |
---|---|
void |
ResourceProvider.delete(ResolveContext<T> ctx,
Resource resource)
Delete the resource at the given path.
|
Resource |
ResourceProvider.getParent(ResolveContext<T> ctx,
Resource child)
Returns the parent resource from this resource provider or
null if
the resource provider cannot find it. |
abstract Resource |
ResourceProvider.getResource(ResolveContext<T> ctx,
java.lang.String path,
ResourceContext resourceContext,
Resource parent)
Returns a resource from this resource provider or
null if
the resource provider cannot find it. |
abstract java.util.Iterator<Resource> |
ResourceProvider.listChildren(ResolveContext<T> ctx,
Resource parent)
|
Modifier and Type | Method and Description |
---|---|
ValidationModel |
ValidationService.getValidationModel(Resource resource,
boolean considerResourceSuperTypeModels)
Tries to obtain a
ValidationModel that is able to validate the given resource . |
ValidationResult |
ValidationService.validate(Resource resource,
ValidationModel model)
Validates a
Resource using a specific ValidationModel . |
ValidationResult |
ValidationService.validateResourceRecursively(Resource resource,
boolean enforceValidation,
java.util.function.Predicate<Resource> filter,
boolean considerResourceSuperTypeModels)
Validates a
Resource and all child resources recursively by traversing through the resource tree starting from the given resource. |
Modifier and Type | Method and Description |
---|---|
ValidationResult |
ValidationService.validateResourceRecursively(Resource resource,
boolean enforceValidation,
java.util.function.Predicate<Resource> filter,
boolean considerResourceSuperTypeModels)
Validates a
Resource and all child resources recursively by traversing through the resource tree starting from the given resource. |
Modifier and Type | Method and Description |
---|---|
Resource |
ValidatorContext.getResource() |
Copyright © 2018 The Apache Software Foundation. All rights reserved.