Modifier and Type | Method and Description |
---|---|
@NotNull Resource |
SlingHttpServletRequest.getResource()
Returns the
Resource object on whose behalf the servlet acts. |
Modifier and Type | Method and Description |
---|---|
@Nullable javax.servlet.RequestDispatcher |
SlingHttpServletRequest.getRequestDispatcher(@NotNull Resource resource)
Same as
SlingHttpServletRequest.getRequestDispatcher(Resource,RequestDispatcherOptions)
but using empty options. |
@Nullable javax.servlet.RequestDispatcher |
SlingHttpServletRequest.getRequestDispatcher(@NotNull 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 |
---|---|
@Nullable 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 | Method and Description |
---|---|
static @NotNull SlingHttpServletRequestBuilder |
Builders.newRequestBuilder(@NotNull Resource resource)
Creates a new request builder.
|
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.
|
@NotNull Resource |
ResourceResolver.create(@NotNull Resource parent,
@NotNull java.lang.String name,
java.util.Map<java.lang.String,java.lang.Object> properties)
Add a child resource to the given parent resource.
|
@Nullable Resource |
ResourceDecorator.decorate(@NotNull Resource resource)
Decorate a resource.
|
@Nullable Resource |
ResourceDecorator.decorate(@NotNull Resource resource,
@NotNull 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(@NotNull 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.
|
@Nullable Resource |
Resource.getChild(@NotNull java.lang.String relPath)
Returns the child at the given relative path of this resource or
null if no such child exists. |
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.
|
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() |
@Nullable Resource |
Resource.getParent()
Returns the parent resource or
null if this resource
represents the root of the resource tree. |
static @Nullable Resource |
ResourceUtil.getParent(@NotNull Resource rsrc)
Deprecated.
since 2.1.0, use
getParent() instead |
@Nullable Resource |
ResourceResolver.getParent(@NotNull Resource child)
Returns the parent resource of this resource.
|
@NotNull Resource |
ResourceWrapper.getResource()
Returns the
Resource wrapped by this instance. |
@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. |
@Nullable Resource |
ResourceResolver.getResource(Resource base,
@NotNull java.lang.String path)
Returns a
Resource object for data located at the given path. |
@Nullable Resource |
ResourceResolver.getResource(@NotNull 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 . |
@NotNull Resource |
ResourceResolver.resolve(@NotNull javax.servlet.http.HttpServletRequest request)
Deprecated.
as of 2.0.4, use
ResourceResolver.resolve(HttpServletRequest, String)
instead. |
@NotNull Resource |
ResourceResolver.resolve(@NotNull javax.servlet.http.HttpServletRequest request,
@NotNull 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. |
@NotNull Resource |
ResourceResolver.resolve(@NotNull java.lang.String absPath)
Resolves the resource from the given absolute path.
|
static @NotNull Resource |
ResourceUtil.unwrap(@NotNull 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.lang.Iterable<Resource> |
AbstractResource.getChildren() |
java.util.Iterator<Resource> |
AbstractResource.listChildren()
Returns an iterator on the direct child resources.
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractResourceVisitor.accept(Resource res)
Visit the given resource and all its descendants.
|
@NotNull Resource |
ResourceResolver.create(@NotNull Resource parent,
@NotNull 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 . |
@Nullable Resource |
ResourceDecorator.decorate(@NotNull Resource resource)
Decorate a resource.
|
@Nullable Resource |
ResourceDecorator.decorate(@NotNull Resource resource,
@NotNull 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(@NotNull Resource rsrc) |
void |
ResourceResolver.delete(@NotNull Resource resource)
Delete the resource
Deleting a non existing resource leads to no operation nor exception.
|
static @Nullable java.lang.String |
ResourceUtil.findResourceSuperType(@NotNull Resource resource)
Deprecated.
|
@NotNull java.lang.Iterable<Resource> |
ResourceResolver.getChildren(@NotNull Resource parent)
|
static @NotNull java.lang.String |
ResourceUtil.getName(@NotNull Resource rsrc)
Deprecated.
since 2.1.0, use
getName() instead |
static @Nullable Resource |
ResourceUtil.getParent(@NotNull Resource rsrc)
Deprecated.
since 2.1.0, use
getParent() instead |
@Nullable Resource |
ResourceResolver.getParent(@NotNull Resource child)
Returns the parent resource of this resource.
|
@Nullable java.lang.String |
ResourceResolver.getParentResourceType(Resource resource)
Returns the super type of the given resource.
|
@Nullable Resource |
ResourceResolver.getResource(Resource base,
@NotNull java.lang.String path)
Returns a
Resource object for data located at the given path. |
static @NotNull ValueMap |
ResourceUtil.getValueMap(Resource res)
Returns an
ValueMap object for the given
Resource . |
boolean |
ResourceResolver.hasChildren(@NotNull Resource resource)
Checks if the specified resource has any direct child resources.
|
static boolean |
ResourceUtil.isA(@NotNull Resource resource,
java.lang.String resourceType)
Deprecated.
|
static boolean |
ResourceUtil.isNonExistingResource(@NotNull 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(@NotNull Resource res)
Returns
true if the resource res is a "star
resource". |
static boolean |
ResourceUtil.isSyntheticResource(@NotNull Resource res)
Returns
true if the resource res is a synthetic
resource. |
static @NotNull java.util.Iterator<Resource> |
ResourceUtil.listChildren(@NotNull Resource parent)
Deprecated.
since 2.1.0, use
listChildren() instead |
@Nullable java.util.Iterator<Resource> |
ResourceProvider.listChildren(@NotNull Resource parent)
Deprecated.
|
@NotNull java.util.Iterator<Resource> |
ResourceResolver.listChildren(@NotNull Resource parent)
|
boolean |
ResourceResolver.orderBefore(@NotNull Resource parent,
@NotNull java.lang.String name,
@Nullable java.lang.String followingSiblingName)
Orders the child resources returned by
ResourceResolver.getChildren(Resource) and ResourceResolver.listChildren(Resource) so that a given resource is listed before the given sibling resource. |
static @NotNull Resource |
ResourceUtil.unwrap(@NotNull Resource rsrc)
Unwrap the resource and return the wrapped implementation.
|
protected abstract void |
AbstractResourceVisitor.visit(@NotNull Resource res)
Implement this method to do actual work on the resources.
|
Constructor and Description |
---|
ResourceWrapper(@NotNull Resource resource)
Creates a new wrapper instance delegating all method calls to the given
resource . |
Modifier and Type | Method and Description |
---|---|
@NotNull java.net.URI |
URIProvider.toURI(@NotNull Resource resource,
URIProvider.Scope scope,
URIProvider.Operation operation)
Return a URI appicable to the defined scope.
|
Modifier and Type | Method and Description |
---|---|
@Nullable Resource |
SlingBindings.getResource()
|
@NotNull Resource |
SlingScript.getScriptResource()
Returns the Resource providing the script source code.
|
Modifier and Type | Method and Description |
---|---|
void |
SlingScriptHelper.forward(@NotNull Resource resource)
Same as
SlingScriptHelper.forward(Resource,RequestDispatcherOptions) , but using
empty options. |
void |
SlingScriptHelper.forward(@NotNull Resource resource,
RequestDispatcherOptions options)
Helper method to forward the request to a Servlet or script for the given
resource and options . |
void |
SlingScriptHelper.forward(@NotNull 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(@NotNull Resource resource)
Same as
SlingScriptHelper.include(Resource,RequestDispatcherOptions) , but using
empty options. |
void |
SlingScriptHelper.include(@NotNull Resource resource,
RequestDispatcherOptions options)
Helper method to include the result of processing the request for the
given
resource and options . |
void |
SlingScriptHelper.include(@NotNull 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 |
---|---|
@Nullable 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(@NotNull Resource resource)
Check whether a resource can be deleted at the path.
|
boolean |
ResourceAccessSecurity.canDeleteValue(@NotNull Resource resource,
@NotNull java.lang.String valueName)
Check whether a value can be deleted
|
boolean |
ResourceAccessSecurity.canExecute(@NotNull Resource resource)
Check whether a resource can be executed at the path.
|
default boolean |
ResourceAccessSecurity.canOrderChildren(@NotNull Resource resource)
Check whether child resources can be ordered.
|
boolean |
ResourceAccessSecurity.canReadValue(@NotNull Resource resource,
@NotNull java.lang.String valueName)
Check whether a value can be read
|
boolean |
ResourceAccessSecurity.canSetValue(@NotNull Resource resource,
@NotNull java.lang.String valueName)
Check whether a value can be set
|
boolean |
ResourceAccessSecurity.canUpdate(@NotNull Resource resource)
Check whether a resource can be updated at the path.
|
@Nullable 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 |
---|---|
@Nullable javax.servlet.Servlet |
ServletResolver.resolveServlet(@NotNull Resource resource,
@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 |
---|---|
@Nullable Resource |
SlingUriBuilder.getSuffixResource()
Returns the corresponding suffix resource or null if
no resource resolver is available (depends on the create method used in SlingUriBuilder)
the URI does not contain a suffix
if the suffix resource could not be found
|
@Nullable Resource |
SlingUri.getSuffixResource()
Returns the corresponding suffix resource or null if
no resource resolver is available (depends on the create method used in SlingUriBuilder)
the URI does not contain a suffix
if the suffix resource could not be found
|
Modifier and Type | Method and Description |
---|---|
static @NotNull SlingUriBuilder |
SlingUriBuilder.createFrom(@NotNull Resource resource)
Creates a builder from a resource (only taking the resource path into account).
|
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. |
@NotNull Resource |
ResourceResolverWrapper.create(@NotNull Resource parent,
@NotNull 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(@NotNull Resource child)
Wraps and returns the
Resource obtained by calling getParent on the wrapped resource resolver. |
Resource |
SlingHttpServletRequestWrapper.getResource() |
Resource |
ResourceResolverWrapper.getResource(Resource base,
@NotNull java.lang.String path)
Wraps and returns the
Resource obtained by calling getResource on the wrapped resource resolver. |
Resource |
ResourceResolverWrapper.getResource(@NotNull java.lang.String path)
Wraps and returns the
Resource obtained by calling getResource on the wrapped resource resolver. |
@Nullable Resource |
RequestPathInfoWrapper.getSuffixResource() |
Resource |
ResourceResolverWrapper.move(java.lang.String srcAbsPath,
java.lang.String destAbsPath)
Wraps the
Resource obtained by calling move on the wrapped resource resolver. |
@NotNull Resource |
ResourceResolverWrapper.resolve(@NotNull javax.servlet.http.HttpServletRequest request)
Wraps and returns the
Resource obtained by calling resolve on the wrapped resource resolver. |
@NotNull Resource |
ResourceResolverWrapper.resolve(@NotNull javax.servlet.http.HttpServletRequest request,
@NotNull java.lang.String absPath)
Wraps and returns the
Resource obtained by calling resolve on the wrapped resource resolver. |
@NotNull Resource |
ResourceResolverWrapper.resolve(@NotNull java.lang.String absPath)
Wraps and returns the
Resource obtained by calling resolve on the wrapped resource resolver. |
Modifier and Type | Method and Description |
---|---|
@NotNull Resource |
ResourceResolverWrapper.create(@NotNull Resource parent,
@NotNull 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(@NotNull Resource resource) |
@NotNull java.lang.Iterable<Resource> |
ResourceResolverWrapper.getChildren(@NotNull Resource parent)
Wraps and returns the
Iterable obtained by calling getChildren on the wrapped resource resolver. |
Resource |
ResourceResolverWrapper.getParent(@NotNull 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,
@NotNull java.lang.String path)
Wraps and returns the
Resource obtained by calling getResource on the wrapped resource resolver. |
boolean |
ResourceResolverWrapper.hasChildren(@NotNull Resource resource) |
boolean |
ResourceResolverWrapper.isResourceType(Resource resource,
java.lang.String resourceType) |
@NotNull java.util.Iterator<Resource> |
ResourceResolverWrapper.listChildren(@NotNull Resource parent)
Wraps and returns the
Iterator obtained by calling listChildren on the wrapped resource resolver. |
boolean |
ResourceResolverWrapper.orderBefore(@NotNull Resource parent,
@NotNull java.lang.String name,
@Nullable java.lang.String followingSiblingName) |
Constructor and Description |
---|
DeepReadModifiableValueMapDecorator(Resource resource,
ValueMap base) |
DeepReadValueMapDecorator(Resource resource,
ValueMap base) |
Modifier and Type | Method and Description |
---|---|
@NotNull ConfigurationBuilder |
ConfigurationResolver.get(@NotNull Resource resource)
Get configuration for given resource.
|
Modifier and Type | Method and Description |
---|---|
void |
ConfigurationManager.deleteConfiguration(@NotNull Resource resource,
@NotNull java.lang.String configName)
Delete configuration or configuration collection data from repository using the inner-most context path as reference.
|
@Nullable ConfigurationData |
ConfigurationManager.getConfiguration(@NotNull Resource resource,
@NotNull java.lang.String configName)
Get configuration data for the given context resource and configuration name.
|
@NotNull ConfigurationCollectionData |
ConfigurationManager.getConfigurationCollection(@NotNull Resource resource,
@NotNull java.lang.String configName)
Get configuration data collection for the given context resource and configuration name.
|
@Nullable ConfigurationData |
ConfigurationManager.newCollectionItem(@NotNull Resource resource,
@NotNull java.lang.String configName)
Creates a new empty configuration data item for a configuration data collection for the given configuration name.
|
void |
ConfigurationManager.persistConfiguration(@NotNull Resource resource,
@NotNull java.lang.String configName,
@NotNull ConfigurationPersistData data)
Write configuration data to repository using the inner-most context path as reference.
|
void |
ConfigurationManager.persistConfigurationCollection(@NotNull Resource resource,
@NotNull java.lang.String configName,
@NotNull ConfigurationCollectionPersistData data)
Write configuration data collection using the inner-most context path as reference.
|
Modifier and Type | Method and Description |
---|---|
@Nullable Resource |
ConfigurationOverrideMultiplexer.overrideProperties(@NotNull java.lang.String contextPath,
@NotNull java.lang.String configName,
@Nullable Resource configResource)
Deprecated.
|
@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 |
---|---|
@Nullable Resource |
ConfigurationOverrideMultiplexer.overrideProperties(@NotNull java.lang.String contextPath,
@NotNull java.lang.String configName,
@Nullable Resource configResource)
Deprecated.
|
@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 |
---|---|
@Nullable Resource |
ConfigurationResourceResolver.getResource(@NotNull Resource resource,
@NotNull java.lang.String bucketName,
@NotNull java.lang.String configName)
Get a context-aware singleton configuration resource defined by the given configuration name.
|
Modifier and Type | Method and Description |
---|---|
@NotNull java.util.Collection<java.lang.String> |
ConfigurationResourceResolver.getAllContextPaths(@NotNull Resource resource)
Get all context paths for which context-aware configurations could be defined.
|
java.lang.String |
ConfigurationResourceResolver.getContextPath(@NotNull Resource resource)
Get the inner-most context path (deepest path) returned by
ConfigurationResourceResolver.getAllContextPaths(Resource) . |
@Nullable Resource |
ConfigurationResourceResolver.getResource(@NotNull Resource resource,
@NotNull java.lang.String bucketName,
@NotNull java.lang.String configName)
Get a context-aware singleton configuration resource defined by the given configuration name.
|
@NotNull java.util.Collection<Resource> |
ConfigurationResourceResolver.getResourceCollection(@NotNull Resource resource,
@NotNull java.lang.String bucketName,
@NotNull java.lang.String configName)
Get a collection of context-aware configuration resources defined by the given configuration name.
|
Modifier and Type | Method and Description |
---|---|
@NotNull Resource |
ContextResource.getResource() |
@Nullable Resource |
ConfigurationResourceResolvingStrategy.getResource(@NotNull Resource resource,
@NotNull java.util.Collection<java.lang.String> bucketNames,
@NotNull java.lang.String configName)
Get a context-aware singleton configuration resource defined by the given configuration name.
|
Modifier and Type | Method and Description |
---|---|
@Nullable InheritanceDecision |
CollectionInheritanceDecider.decide(@NotNull Resource resource,
@NotNull java.lang.String bucketName)
Decide whether the provided resource should be included in the collection.
|
@NotNull java.util.Iterator<ContextResource> |
ContextPathStrategy.findContextResources(@NotNull Resource resource)
Finds context paths for the given resource.
|
@Nullable Resource |
ConfigurationResourceResolvingStrategy.getResource(@NotNull Resource resource,
@NotNull java.util.Collection<java.lang.String> bucketNames,
@NotNull java.lang.String configName)
Get a context-aware singleton configuration resource defined by the given configuration name.
|
@Nullable java.util.Collection<Resource> |
ConfigurationResourceResolvingStrategy.getResourceCollection(@NotNull Resource resource,
@NotNull java.util.Collection<java.lang.String> bucketNames,
@NotNull java.lang.String configName)
Get a collection of context-aware configuration resources defined by the given configuration name.
|
@Nullable java.util.Collection<java.util.Iterator<Resource>> |
ConfigurationResourceResolvingStrategy.getResourceCollectionInheritanceChain(@NotNull Resource resource,
@NotNull java.util.Collection<java.lang.String> bucketNames,
@NotNull java.lang.String configName)
Get a collection of context-aware configuration resource inheritance chains defined by the given configuration name.
|
@Nullable java.lang.String |
ConfigurationResourceResolvingStrategy.getResourceCollectionParentPath(@NotNull Resource resource,
@NotNull java.lang.String bucketName,
@NotNull java.lang.String configName)
Get the configuration resource collection parent path for storing configuration data for the given context resource and configuration name.
|
@Nullable java.util.Iterator<Resource> |
ConfigurationResourceResolvingStrategy.getResourceInheritanceChain(@NotNull Resource resource,
@NotNull java.util.Collection<java.lang.String> bucketNames,
@NotNull java.lang.String configName)
Get a context-aware singleton configuration resource inheritance chain defined by the given configuration name.
|
@Nullable java.lang.String |
ConfigurationResourceResolvingStrategy.getResourcePath(@NotNull Resource resource,
@NotNull java.lang.String bucketName,
@NotNull 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(@NotNull Resource resource,
java.lang.String configRef)
Deprecated.
|
ContextResource(@NotNull Resource resource,
java.lang.String configRef,
int serviceRanking) |
Modifier and Type | Method and Description |
---|---|
@Nullable Resource |
ConfigurationInjectResourceDetectionStrategy.detectResource(@NotNull SlingHttpServletRequest request)
Detects the resource that is associated with the given request.
|
@Nullable Resource |
ConfigurationPersistenceStrategy2.getCollectionItemResource(@NotNull Resource resource)
Allows the strategy to transform the given configuration resource according to it's persistent strategies,
e.g.
|
@Nullable Resource |
ConfigurationPersistenceStrategy2.getCollectionParentResource(@NotNull Resource resource)
Allows the strategy to transform the given configuration resource according to it's persistent strategies,
e.g.
|
@Nullable Resource |
ConfigurationInheritanceStrategy.getResource(@NotNull java.util.Iterator<Resource> configResources)
Pick or merge resources for inheritance.
|
@Nullable Resource |
ConfigurationPersistenceStrategy2.getResource(@NotNull Resource resource)
Allows the strategy to transform the given configuration resource according to it's persistent strategies,
e.g.
|
@Nullable Resource |
ConfigurationPersistenceStrategy.getResource(@NotNull Resource resource)
Deprecated.
Allows the strategy to transform the given configuration resource according to it's persistent strategies,
e.g.
|
Modifier and Type | Method and Description |
---|---|
@Nullable Resource |
ConfigurationPersistenceStrategy2.getCollectionItemResource(@NotNull Resource resource)
Allows the strategy to transform the given configuration resource according to it's persistent strategies,
e.g.
|
@Nullable Resource |
ConfigurationPersistenceStrategy2.getCollectionParentResource(@NotNull Resource resource)
Allows the strategy to transform the given configuration resource according to it's persistent strategies,
e.g.
|
@Nullable Resource |
ConfigurationPersistenceStrategy2.getResource(@NotNull Resource resource)
Allows the strategy to transform the given configuration resource according to it's persistent strategies,
e.g.
|
@Nullable Resource |
ConfigurationPersistenceStrategy.getResource(@NotNull Resource resource)
Deprecated.
Allows the strategy to transform the given configuration resource according to it's persistent strategies,
e.g.
|
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(@NotNull Resource resource,
@NotNull java.lang.String exporterName,
@NotNull java.lang.Class<T> targetClass,
@NotNull 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.
|
@NotNull java.lang.Object |
ModelFactory.getModelFromResource(@NotNull Resource resource)
Obtain an adapted model class based on the resource type of the provided resource.
|
<T> T |
ModelFactory.getModelFromWrappedRequest(@NotNull SlingHttpServletRequest request,
@NotNull Resource resource,
@NotNull 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(@NotNull Resource resource)
Determine is a model class is available for the resource's resource type.
|
Modifier and Type | Field and Description |
---|---|
protected Resource |
ResourceStream.resource |
Modifier and Type | Method and Description |
---|---|
java.util.stream.Stream<Resource> |
ResourceStream.listChildren(java.util.function.Predicate<Resource> childSelector)
Provides a stream of the child resources of the base resource.
|
java.util.function.Predicate<Resource> |
ResourcePredicates.parse(java.lang.String filter)
Creates a Predicate
|
java.util.function.Predicate<Resource> |
ResourcePredicates.parse(java.lang.String filter,
java.lang.String charEncoding)
Creates a Predicate
|
java.util.stream.Stream<Resource> |
ResourceFilterStream.stream()
Stream
|
java.util.stream.Stream<Resource> |
ResourceStream.stream(java.util.function.Predicate<Resource> branchSelector)
Provides a depth first
Stream<Resource> traversal of the resource
tree starting with the current resource. |
Modifier and Type | Method and Description |
---|---|
java.util.stream.Stream<Resource> |
ResourceStream.listChildren(java.util.function.Predicate<Resource> childSelector)
Provides a stream of the child resources of the base resource.
|
java.util.stream.Stream<Resource> |
ResourceStream.stream(java.util.function.Predicate<Resource> branchSelector)
Provides a depth first
Stream<Resource> traversal of the resource
tree starting with the current resource. |
Constructor and Description |
---|
ResourceFilterStream(Resource resource,
ResourcePredicates filter) |
ResourceStream(Resource resource) |
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 |
---|---|
@Nullable org.thymeleaf.templatemode.TemplateMode |
TemplateModeProvider.provideTemplateMode(@NotNull Resource resource) |
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 |
---|---|
@NotNull Resource |
ResourceProvider.create(@NotNull 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.
|
@Nullable Resource |
ResourceProvider.getParent(@NotNull ResolveContext<T> ctx,
@NotNull Resource child)
Returns the parent resource from this resource provider or
null if
the resource provider cannot find it. |
abstract @Nullable Resource |
ResourceProvider.getResource(@NotNull ResolveContext<T> ctx,
@NotNull java.lang.String path,
@NotNull ResourceContext resourceContext,
@Nullable 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(@NotNull ResolveContext<T> ctx,
java.lang.String query,
java.lang.String language)
Searches for resources using the given query formulated in the given
language.
|
Modifier and Type | Method and Description |
---|---|
void |
ResourceProvider.delete(@NotNull ResolveContext<T> ctx,
@NotNull Resource resource)
Delete the resource at the given path.
|
@Nullable Resource |
ResourceProvider.getParent(@NotNull ResolveContext<T> ctx,
@NotNull Resource child)
Returns the parent resource from this resource provider or
null if
the resource provider cannot find it. |
abstract @Nullable Resource |
ResourceProvider.getResource(@NotNull ResolveContext<T> ctx,
@NotNull java.lang.String path,
@NotNull ResourceContext resourceContext,
@Nullable Resource parent)
Returns a resource from this resource provider or
null if
the resource provider cannot find it. |
abstract @Nullable java.util.Iterator<Resource> |
ResourceProvider.listChildren(@NotNull ResolveContext<T> ctx,
@NotNull Resource parent)
|
boolean |
ResourceProvider.orderBefore(@NotNull ResolveContext<T> ctx,
@NotNull Resource parent,
@NotNull java.lang.String name,
@Nullable java.lang.String followingSiblingName)
Orders the child resources returned by
ResourceProvider.listChildren(ResolveContext, Resource) so that a given resource is listed before the given sibling resource. |
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 © 2022 The Apache Software Foundation. All rights reserved.