Uses of Interface
org.apache.sling.api.resource.Resource
Packages that use Resource
Package
Description
API for accessing context-aware configuration.
Management API of the Context-Aware configuration implementation.
Multiplexer services provide aggregated access to all implementations of the related SPI interface.
API for accessing context-aware configuration resources.
SPI for applications hooking into the configuration resource infrastructure for parameterizing and customizing.
SPI for applications hooking into the configuration infrastructure for parameterizing and customizing.
Provides topology announcement implementations for discovery
implementors that choose to extend from discovery.base
Provides some static helpers for providers of the Discovery API.
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements.
-
Uses of Resource in org.apache.sling.api
Methods in org.apache.sling.api that return ResourceModifier and TypeMethodDescription@NotNull ResourceSlingHttpServletRequest.getResource()Returns theResourceobject on whose behalf the servlet acts.Methods in org.apache.sling.api with parameters of type ResourceModifier and TypeMethodDescription@Nullable javax.servlet.RequestDispatcherSlingHttpServletRequest.getRequestDispatcher(@NotNull Resource resource) Same asSlingHttpServletRequest.getRequestDispatcher(Resource,RequestDispatcherOptions)but using empty options.@Nullable javax.servlet.RequestDispatcherSlingHttpServletRequest.getRequestDispatcher(@NotNull Resource resource, RequestDispatcherOptions options) Returns aRequestDispatcherobject that acts as a wrapper for the resource located at the given resource. -
Uses of Resource in org.apache.sling.api.request
Methods in org.apache.sling.api.request that return ResourceModifier and TypeMethodDescription@Nullable ResourceRequestPathInfo.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. -
Uses of Resource in org.apache.sling.api.request.builder
Methods in org.apache.sling.api.request.builder with parameters of type ResourceModifier and TypeMethodDescriptionstatic @NotNull SlingHttpServletRequestBuilderBuilders.newRequestBuilder(@NotNull Resource resource) Creates a new request builder. -
Uses of Resource in org.apache.sling.api.resource
Classes in org.apache.sling.api.resource that implement ResourceModifier and TypeClassDescriptionclassTheAbstractResourceis an abstract implementation of theResourceinterface.final classSimple helper class representing nonexisting resources.classTheResourceWrapperis a wrapper for anyResourcedelegating all method calls to the wrapped resource by default.classTheSyntheticResourceclass is a simple implementation of theResourceinterface which may be used to provide a resource object which has no actual resource data.Methods in org.apache.sling.api.resource that return ResourceModifier and TypeMethodDescriptionThis method copies the subgraph rooted at, and including, the resource atsrcAbsPathto the new location atdestAbsPathand adds it as a child node of the resource atdestAbsPath.ModifyingResourceProvider.create(ResourceResolver resolver, String path, Map<String, Object> properties) Deprecated.Create a new resource at the given path.@NotNull ResourceResourceResolver.create(@NotNull Resource parent, @NotNull String name, Map<String, Object> properties) Add a child resource to the given parent resource.@Nullable ResourceDecorate a resource.@Nullable ResourceResourceDecorator.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.Returns the indicated child of this resource.@Nullable ResourceReturns the child at the given relative path of this resource ornullif no such child exists.Returns the value of callinggetChildon thewrapped resource.static @NotNull ResourceResourceUtil.getOrCreateResource(@NotNull ResourceResolver resolver, @NotNull String path, String resourceType, String intermediateResourceType, boolean autoCommit) Creates or gets the resource at the given path.static @NotNull ResourceResourceUtil.getOrCreateResource(@NotNull ResourceResolver resolver, @NotNull String path, Map<String, Object> resourceProperties, String intermediateResourceType, boolean autoCommit) Creates or gets the resource at the given path.AbstractResource.getParent()Returns the parent resource of this resource.NonExistingResource.getParent()@Nullable ResourceResource.getParent()Returns the parent resource ornullif this resource represents the root of the resource tree.@Nullable ResourceReturns the parent resource of this resource.static @Nullable ResourceDeprecated.since 2.1.0, usegetParent()insteadResourceWrapper.getParent()Returns the value of callinggetParenton thewrapped resource.@Nullable ResourceParametrizableResourceProvider.getResource(@NotNull ResourceResolver resourceResolver, @NotNull String path, @NotNull Map<String, String> parameters) Deprecated.Returns a resource from this resource provider ornullif the resource provider cannot find it.@Nullable ResourceResourceProvider.getResource(@NotNull ResourceResolver resourceResolver, @NotNull String path) Deprecated.Returns a resource from this resource provider ornullif the resource provider cannot find it.@Nullable ResourceResourceProvider.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.@Nullable ResourceResourceResolver.getResource(@NotNull String path) Returns aResourceobject for data located at the given path.@Nullable ResourceResourceResolver.getResource(Resource base, @NotNull String path) Returns aResourceobject for data located at the given path.@NotNull ResourceResourceWrapper.getResource()Returns theResourcewrapped by this instance.This method moves the subgraph rooted at, and including, the resource atsrcAbsPathto the new location atdestAbsPathand adds it as a child node of the resource atdestAbsPath.@NotNull ResourceResolves the resource from the given absolute path.@NotNull ResourceResourceResolver.resolve(@NotNull javax.servlet.http.HttpServletRequest request) Deprecated.as of 2.0.4, useResourceResolver.resolve(HttpServletRequest, String)instead.@NotNull ResourceResourceResolver.resolve(@NotNull javax.servlet.http.HttpServletRequest request, @NotNull String absPath) Resolves the resource from the givenabsPathoptionally takingHttpServletRequestinto account, such as the value of theHostrequest header.static @NotNull ResourceUnwrap the resource and return the wrapped implementation.Methods in org.apache.sling.api.resource that return types with arguments of type ResourceModifier and TypeMethodDescriptionQueriableResourceProvider.findResources(ResourceResolver resolver, String query, String language) Deprecated.Searches for resources using the given query formulated in the given language.ResourceResolver.findResources(@NotNull String query, String language) Searches for resources using the given query formulated in the given language.AbstractResource.getChildren()Resource.getChildren()Returns an iterable of the direct children of this resource.ResourceResolver.getChildren(@NotNull Resource parent) ResourceWrapper.getChildren()AbstractResource.listChildren()Returns an iterator on the direct child resources.Resource.listChildren()Returns an iterator of the direct children of this resource.ResourceProvider.listChildren(@NotNull Resource parent) Deprecated.ResourceResolver.listChildren(@NotNull Resource parent) ResourceUtil.listChildren(@NotNull Resource parent) Deprecated.since 2.1.0, uselistChildren()insteadResourceWrapper.listChildren()Returns the value of callinglistChildrenon thewrapped resource.Methods in org.apache.sling.api.resource with parameters of type ResourceModifier and TypeMethodDescriptionvoidVisit the given resource and all its descendants.@NotNull ResourceResourceResolver.create(@NotNull Resource parent, @NotNull String name, Map<String, Object> properties) Add a child resource to the given parent resource.static StringResourceUtil.createUniqueChildName(Resource parent, String name) Create a unique name for a child of theparent.@Nullable ResourceDecorate a resource.@Nullable ResourceResourceDecorator.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.voidDelete the resource Deleting a non existing resource leads to no operation nor exception.voidstatic @Nullable StringResourceUtil.findResourceSuperType(@NotNull Resource resource) Deprecated.ResourceResolver.getChildren(@NotNull Resource parent) static @NotNull StringDeprecated.since 2.1.0, usegetName()instead@Nullable ResourceReturns the parent resource of this resource.static @Nullable ResourceDeprecated.since 2.1.0, usegetParent()instead@Nullable StringResourceResolver.getParentResourceType(Resource resource) Returns the super type of the given resource.@Nullable ResourceResourceResolver.getResource(Resource base, @NotNull String path) Returns aResourceobject for data located at the given path.static @NotNull ValueMapResourceUtil.getValueMap(Resource res) Returns anValueMapobject for the givenResource.booleanResourceResolver.hasChildren(@NotNull Resource resource) Checks if the specified resource has any direct child resources.static booleanDeprecated.static booleanResourceUtil.isNonExistingResource(@NotNull Resource res) Returnstrueif the resourceresis a non-existing resource.booleanResourceResolver.isResourceType(Resource resource, String resourceType) Returnstrueif the resource type or any of the resource's super type(s) equals the given resource type.static booleanResourceUtil.isStarResource(@NotNull Resource res) Returnstrueif the resourceresis a "star resource".static booleanResourceUtil.isSyntheticResource(@NotNull Resource res) Returnstrueif the resourceresis a synthetic resource.ResourceProvider.listChildren(@NotNull Resource parent) Deprecated.ResourceResolver.listChildren(@NotNull Resource parent) ResourceUtil.listChildren(@NotNull Resource parent) Deprecated.since 2.1.0, uselistChildren()insteadbooleanResourceResolver.orderBefore(@NotNull Resource parent, @NotNull String name, @Nullable String followingSiblingName) Orders the child resources returned byResourceResolver.getChildren(Resource)andResourceResolver.listChildren(Resource)so that a given resource is listed before the given sibling resource.static @NotNull ResourceUnwrap the resource and return the wrapped implementation.protected abstract voidImplement this method to do actual work on the resources.Method parameters in org.apache.sling.api.resource with type arguments of type ResourceModifier and TypeMethodDescriptionstatic <T> @NotNull Iterator<T>Return an iterator for objects of the specified type.protected voidAbstractResourceVisitor.traverseChildren(@NotNull Iterator<Resource> children) Visit the given resources.Constructors in org.apache.sling.api.resource with parameters of type ResourceModifierConstructorDescriptionResourceWrapper(@NotNull Resource resource) Creates a new wrapper instance delegating all method calls to the givenresource. -
Uses of Resource in org.apache.sling.api.resource.external
Methods in org.apache.sling.api.resource.external with parameters of type ResourceModifier and TypeMethodDescription@NotNull URIURIProvider.toURI(@NotNull Resource resource, URIProvider.Scope scope, URIProvider.Operation operation) Return a URI applicable to the defined scope. -
Uses of Resource in org.apache.sling.api.scripting
Methods in org.apache.sling.api.scripting that return ResourceModifier and TypeMethodDescription@Nullable ResourceSlingBindings.getResource()@NotNull ResourceSlingScript.getScriptResource()Returns the Resource providing the script source code.Methods in org.apache.sling.api.scripting with parameters of type ResourceModifier and TypeMethodDescriptionvoidSame asSlingScriptHelper.forward(Resource,RequestDispatcherOptions), but using empty options.voidHelper method to forward the request to a Servlet or script for the givenresourceandrequestDispatcherOptions.voidSlingScriptHelper.forward(@NotNull Resource resource, RequestDispatcherOptions options) Helper method to forward the request to a Servlet or script for the givenresourceandoptions.voidSame asSlingScriptHelper.include(Resource,RequestDispatcherOptions), but using empty options.voidHelper method to include the result of processing the request for the givenresourceandrequestDispatcherOptions.voidSlingScriptHelper.include(@NotNull Resource resource, RequestDispatcherOptions options) Helper method to include the result of processing the request for the givenresourceandoptions.voidSlingBindings.setResource(Resource resource) -
Uses of Resource in org.apache.sling.api.security
Methods in org.apache.sling.api.security that return ResourceModifier and TypeMethodDescription@Nullable ResourceResourceAccessSecurity.getReadableResource(Resource resource) If supplied Resource can be read, return it (or a wrapped variant of it).Methods in org.apache.sling.api.security with parameters of type ResourceModifier and TypeMethodDescriptionbooleanCheck whether a resource can be deleted at the path.booleanResourceAccessSecurity.canDeleteValue(@NotNull Resource resource, @NotNull String valueName) Check whether a value can be deletedbooleanResourceAccessSecurity.canExecute(@NotNull Resource resource) Check whether a resource can be executed at the path.default booleanResourceAccessSecurity.canOrderChildren(@NotNull Resource resource) Check whether child resources can be ordered.booleanResourceAccessSecurity.canReadValue(@NotNull Resource resource, @NotNull String valueName) Check whether a value can be readbooleanResourceAccessSecurity.canSetValue(@NotNull Resource resource, @NotNull String valueName) Check whether a value can be setbooleanCheck whether a resource can be updated at the path.@Nullable ResourceResourceAccessSecurity.getReadableResource(Resource resource) If supplied Resource can be read, return it (or a wrapped variant of it). -
Uses of Resource in org.apache.sling.api.servlets
Methods in org.apache.sling.api.servlets with parameters of type ResourceModifier and TypeMethodDescription@Nullable javax.servlet.ServletServletResolver.resolveServlet(@NotNull Resource resource, @NotNull String scriptName) Resolves ajavax.servlet.Servletwhoseservicemethod may be used to handle a request. -
Uses of Resource in org.apache.sling.api.uri
Methods in org.apache.sling.api.uri that return ResourceModifier and TypeMethodDescription@Nullable ResourceSlingUri.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 ResourceSlingUriBuilder.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 foundMethods in org.apache.sling.api.uri with parameters of type ResourceModifier and TypeMethodDescriptionstatic @NotNull SlingUriBuilderSlingUriBuilder.createFrom(@NotNull Resource resource) Creates a builder from a resource (only taking the resource path into account). -
Uses of Resource in org.apache.sling.api.wrappers
Methods in org.apache.sling.api.wrappers that return ResourceModifier and TypeMethodDescriptionWraps theResourceobtained by callingcopyon the wrapped resource resolver.@NotNull ResourceResourceResolverWrapper.create(@NotNull Resource parent, @NotNull String name, Map<String, Object> properties) Wraps theResourceobtained by callingcreateon the wrapped resource resolver.Wraps and returns theResourceobtained by callinggetParenton the wrapped resource resolver.ResourceResolverWrapper.getResource(@NotNull String path) Wraps and returns theResourceobtained by callinggetResourceon the wrapped resource resolver.ResourceResolverWrapper.getResource(Resource base, @NotNull String path) Wraps and returns theResourceobtained by callinggetResourceon the wrapped resource resolver.SlingHttpServletRequestWrapper.getResource()@Nullable ResourceRequestPathInfoWrapper.getSuffixResource()Wraps theResourceobtained by callingmoveon the wrapped resource resolver.@NotNull ResourceWraps and returns theResourceobtained by callingresolveon the wrapped resource resolver.@NotNull ResourceResourceResolverWrapper.resolve(@NotNull javax.servlet.http.HttpServletRequest request) Wraps and returns theResourceobtained by callingresolveon the wrapped resource resolver.@NotNull ResourceResourceResolverWrapper.resolve(@NotNull javax.servlet.http.HttpServletRequest request, @NotNull String absPath) Wraps and returns theResourceobtained by callingresolveon the wrapped resource resolver.Methods in org.apache.sling.api.wrappers that return types with arguments of type ResourceModifier and TypeMethodDescriptionResourceResolverWrapper.findResources(@NotNull String query, String language) Wraps and returns theIteratorobtained by callingfindResourceson the wrapped resource resolver.ResourceResolverWrapper.getChildren(@NotNull Resource parent) Wraps and returns theIterableobtained by callinggetChildrenon the wrapped resource resolver.ResourceResolverWrapper.listChildren(@NotNull Resource parent) Wraps and returns theIteratorobtained by callinglistChildrenon the wrapped resource resolver.Methods in org.apache.sling.api.wrappers with parameters of type ResourceModifier and TypeMethodDescription@NotNull ResourceResourceResolverWrapper.create(@NotNull Resource parent, @NotNull String name, Map<String, Object> properties) Wraps theResourceobtained by callingcreateon the wrapped resource resolver.voidResourceResolverWrapper.getChildren(@NotNull Resource parent) Wraps and returns theIterableobtained by callinggetChildrenon the wrapped resource resolver.Wraps and returns theResourceobtained by callinggetParenton the wrapped resource resolver.ResourceResolverWrapper.getParentResourceType(Resource resource) javax.servlet.RequestDispatcherSlingHttpServletRequestWrapper.getRequestDispatcher(Resource resource) javax.servlet.RequestDispatcherSlingHttpServletRequestWrapper.getRequestDispatcher(Resource resource, RequestDispatcherOptions options) ResourceResolverWrapper.getResource(Resource base, @NotNull String path) Wraps and returns theResourceobtained by callinggetResourceon the wrapped resource resolver.booleanResourceResolverWrapper.hasChildren(@NotNull Resource resource) booleanResourceResolverWrapper.isResourceType(Resource resource, String resourceType) ResourceResolverWrapper.listChildren(@NotNull Resource parent) Wraps and returns theIteratorobtained by callinglistChildrenon the wrapped resource resolver.booleanResourceResolverWrapper.orderBefore(@NotNull Resource parent, @NotNull String name, @Nullable String followingSiblingName) Constructors in org.apache.sling.api.wrappers with parameters of type ResourceModifierConstructorDescriptionDeepReadModifiableValueMapDecorator(Resource resource, ValueMap base) DeepReadValueMapDecorator(Resource resource, ValueMap base) -
Uses of Resource in org.apache.sling.caconfig
Methods in org.apache.sling.caconfig with parameters of type ResourceModifier and TypeMethodDescription@NotNull ConfigurationBuilderGet configuration for given resource. -
Uses of Resource in org.apache.sling.caconfig.impl.def
Methods in org.apache.sling.caconfig.impl.def that return ResourceModifier and TypeMethodDescription@Nullable ResourceDefaultConfigurationInjectResourceDetectionStrategy.detectResource(@NotNull SlingHttpServletRequest request) DefaultConfigurationPersistenceStrategy.getCollectionItemResource(@NotNull Resource resource) DefaultConfigurationPersistenceStrategy.getCollectionParentResource(@NotNull Resource resource) DefaultConfigurationInheritanceStrategy.getResource(@NotNull Iterator<Resource> configResources) DefaultConfigurationPersistenceStrategy.getResource(@NotNull Resource resource) Methods in org.apache.sling.caconfig.impl.def with parameters of type ResourceModifier and TypeMethodDescriptionDefaultConfigurationPersistenceStrategy.getCollectionItemResource(@NotNull Resource resource) DefaultConfigurationPersistenceStrategy.getCollectionParentResource(@NotNull Resource resource) DefaultConfigurationPersistenceStrategy.getResource(@NotNull Resource resource) Method parameters in org.apache.sling.caconfig.impl.def with type arguments of type ResourceModifier and TypeMethodDescriptionDefaultConfigurationInheritanceStrategy.getResource(@NotNull Iterator<Resource> configResources) -
Uses of Resource in org.apache.sling.caconfig.impl.override
Methods in org.apache.sling.caconfig.impl.override that return ResourceModifier and TypeMethodDescriptionConfigurationOverrideMultiplexerImpl.overrideProperties(@NotNull String contextPath, @NotNull String configName, @Nullable Resource configResource) ConfigurationOverrideMultiplexerImpl.overrideProperties(@NotNull String contextPath, @NotNull String configName, @Nullable Resource configResource, @NotNull ResourceResolver resourceResolver) Methods in org.apache.sling.caconfig.impl.override with parameters of type ResourceModifier and TypeMethodDescriptionConfigurationOverrideMultiplexerImpl.overrideProperties(@NotNull String contextPath, @NotNull String configName, @Nullable Resource configResource) ConfigurationOverrideMultiplexerImpl.overrideProperties(@NotNull String contextPath, @NotNull String configName, @Nullable Resource configResource, @NotNull ResourceResolver resourceResolver) -
Uses of Resource in org.apache.sling.caconfig.management
Methods in org.apache.sling.caconfig.management with parameters of type ResourceModifier and TypeMethodDescriptionvoidConfigurationManager.deleteConfiguration(@NotNull Resource resource, @NotNull String configName) Delete configuration or configuration collection data from repository using the inner-most context path as reference.@Nullable ConfigurationDataConfigurationManager.getConfiguration(@NotNull Resource resource, @NotNull String configName) Get configuration data for the given context resource and configuration name.@NotNull ConfigurationCollectionDataConfigurationManager.getConfigurationCollection(@NotNull Resource resource, @NotNull String configName) Get configuration data collection for the given context resource and configuration name.@Nullable ConfigurationDataConfigurationManager.newCollectionItem(@NotNull Resource resource, @NotNull String configName) Creates a new empty configuration data item for a configuration data collection for the given configuration name.voidConfigurationManager.persistConfiguration(@NotNull Resource resource, @NotNull String configName, @NotNull ConfigurationPersistData data) Write configuration data to repository using the inner-most context path as reference.voidConfigurationManager.persistConfigurationCollection(@NotNull Resource resource, @NotNull String configName, @NotNull ConfigurationCollectionPersistData data) Write configuration data collection using the inner-most context path as reference. -
Uses of Resource in org.apache.sling.caconfig.management.multiplexer
Methods in org.apache.sling.caconfig.management.multiplexer that return ResourceModifier and TypeMethodDescription@Nullable ResourceConfigurationOverrideMultiplexer.overrideProperties(@NotNull String contextPath, @NotNull String configName, @Nullable Resource configResource) Deprecated.@Nullable ResourceConfigurationOverrideMultiplexer.overrideProperties(@NotNull String contextPath, @NotNull String configName, @Nullable Resource configResource, @NotNull ResourceResolver resourceResolver) Override properties in given configuration resource (if any overrides are defined).Methods in org.apache.sling.caconfig.management.multiplexer with parameters of type ResourceModifier and TypeMethodDescription@Nullable ResourceConfigurationOverrideMultiplexer.overrideProperties(@NotNull String contextPath, @NotNull String configName, @Nullable Resource configResource) Deprecated.@Nullable ResourceConfigurationOverrideMultiplexer.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 Resource in org.apache.sling.caconfig.resource
Methods in org.apache.sling.caconfig.resource that return ResourceModifier and TypeMethodDescription@Nullable ResourceConfigurationResourceResolver.getResource(@NotNull Resource resource, @NotNull String bucketName, @NotNull String configName) Get a context-aware singleton configuration resource defined by the given configuration name.Methods in org.apache.sling.caconfig.resource that return types with arguments of type ResourceModifier and TypeMethodDescription@NotNull Collection<Resource>ConfigurationResourceResolver.getResourceCollection(@NotNull Resource resource, @NotNull String bucketName, @NotNull String configName) Get a collection of context-aware configuration resources defined by the given configuration name.Methods in org.apache.sling.caconfig.resource with parameters of type ResourceModifier and TypeMethodDescription@NotNull Collection<String>ConfigurationResourceResolver.getAllContextPaths(@NotNull Resource resource) Get all context paths for which context-aware configurations could be defined.ConfigurationResourceResolver.getContextPath(@NotNull Resource resource) Get the inner-most context path (deepest path) returned byConfigurationResourceResolver.getAllContextPaths(Resource).@Nullable ResourceConfigurationResourceResolver.getResource(@NotNull Resource resource, @NotNull String bucketName, @NotNull String configName) Get a context-aware singleton configuration resource defined by the given configuration name.@NotNull Collection<Resource>ConfigurationResourceResolver.getResourceCollection(@NotNull Resource resource, @NotNull String bucketName, @NotNull String configName) Get a collection of context-aware configuration resources defined by the given configuration name. -
Uses of Resource in org.apache.sling.caconfig.resource.impl.def
Methods in org.apache.sling.caconfig.resource.impl.def that return ResourceModifier and TypeMethodDescriptionDefaultConfigurationResourceResolvingStrategy.getResource(@NotNull Resource contentResource, @NotNull Collection<String> bucketNames, @NotNull String configName) Methods in org.apache.sling.caconfig.resource.impl.def that return types with arguments of type ResourceModifier and TypeMethodDescriptionDefaultConfigurationResourceResolvingStrategy.getResourceCollection(@NotNull Resource contentResource, @NotNull Collection<String> bucketNames, @NotNull String configName) DefaultConfigurationResourceResolvingStrategy.getResourceCollectionInheritanceChain(@NotNull Resource contentResource, @NotNull Collection<String> bucketNames, @NotNull String configName) DefaultConfigurationResourceResolvingStrategy.getResourceInheritanceChain(@NotNull Resource contentResource, @NotNull Collection<String> bucketNames, @NotNull String configName) Methods in org.apache.sling.caconfig.resource.impl.def with parameters of type ResourceModifier and TypeMethodDescription@NotNull Iterator<ContextResource>DefaultContextPathStrategy.findContextResources(@NotNull Resource resource) DefaultConfigurationResourceResolvingStrategy.getResource(@NotNull Resource contentResource, @NotNull Collection<String> bucketNames, @NotNull String configName) DefaultConfigurationResourceResolvingStrategy.getResourceCollection(@NotNull Resource contentResource, @NotNull Collection<String> bucketNames, @NotNull String configName) DefaultConfigurationResourceResolvingStrategy.getResourceCollectionInheritanceChain(@NotNull Resource contentResource, @NotNull Collection<String> bucketNames, @NotNull String configName) DefaultConfigurationResourceResolvingStrategy.getResourceCollectionParentPath(@NotNull Resource contentResource, @NotNull String bucketName, @NotNull String configName) DefaultConfigurationResourceResolvingStrategy.getResourceInheritanceChain(@NotNull Resource contentResource, @NotNull Collection<String> bucketNames, @NotNull String configName) DefaultConfigurationResourceResolvingStrategy.getResourcePath(@NotNull Resource contentResource, @NotNull String bucketName, @NotNull String configName) -
Uses of Resource in org.apache.sling.caconfig.resource.spi
Methods in org.apache.sling.caconfig.resource.spi that return ResourceModifier and TypeMethodDescription@Nullable ResourceConfigurationResourceResolvingStrategy.getResource(@NotNull Resource resource, @NotNull Collection<String> bucketNames, @NotNull String configName) Get a context-aware singleton configuration resource defined by the given configuration name.@NotNull ResourceContextResource.getResource()Methods in org.apache.sling.caconfig.resource.spi that return types with arguments of type ResourceModifier and TypeMethodDescription@Nullable Collection<Resource>ConfigurationResourceResolvingStrategy.getResourceCollection(@NotNull Resource resource, @NotNull Collection<String> bucketNames, @NotNull String configName) Get a collection of context-aware configuration resources defined by the given configuration name.@Nullable Collection<Iterator<Resource>>ConfigurationResourceResolvingStrategy.getResourceCollectionInheritanceChain(@NotNull Resource resource, @NotNull Collection<String> bucketNames, @NotNull String configName) Get a collection of context-aware configuration resource inheritance chains defined by the given configuration name.ConfigurationResourceResolvingStrategy.getResourceInheritanceChain(@NotNull Resource resource, @NotNull Collection<String> bucketNames, @NotNull String configName) Get a context-aware singleton configuration resource inheritance chain defined by the given configuration name.Methods in org.apache.sling.caconfig.resource.spi with parameters of type ResourceModifier and TypeMethodDescription@Nullable InheritanceDecisionDecide whether the provided resource should be included in the collection.@NotNull Iterator<ContextResource>ContextPathStrategy.findContextResources(@NotNull Resource resource) Finds context paths for the given resource.@Nullable ResourceConfigurationResourceResolvingStrategy.getResource(@NotNull Resource resource, @NotNull Collection<String> bucketNames, @NotNull String configName) Get a context-aware singleton configuration resource defined by the given configuration name.@Nullable Collection<Resource>ConfigurationResourceResolvingStrategy.getResourceCollection(@NotNull Resource resource, @NotNull Collection<String> bucketNames, @NotNull String configName) Get a collection of context-aware configuration resources defined by the given configuration name.@Nullable Collection<Iterator<Resource>>ConfigurationResourceResolvingStrategy.getResourceCollectionInheritanceChain(@NotNull Resource resource, @NotNull Collection<String> bucketNames, @NotNull String configName) Get a collection of context-aware configuration resource inheritance chains defined by the given configuration name.@Nullable StringConfigurationResourceResolvingStrategy.getResourceCollectionParentPath(@NotNull Resource resource, @NotNull String bucketName, @NotNull String configName) Get the configuration resource collection parent path for storing configuration data for the given context resource and configuration name.ConfigurationResourceResolvingStrategy.getResourceInheritanceChain(@NotNull Resource resource, @NotNull Collection<String> bucketNames, @NotNull String configName) Get a context-aware singleton configuration resource inheritance chain defined by the given configuration name.@Nullable StringConfigurationResourceResolvingStrategy.getResourcePath(@NotNull Resource resource, @NotNull String bucketName, @NotNull String configName) Get the configuration resource path for storing configuration data for the given context resource and configuration name.Constructors in org.apache.sling.caconfig.resource.spi with parameters of type ResourceModifierConstructorDescriptionContextResource(@NotNull Resource resource, String configRef) Deprecated.ContextResource(@NotNull Resource resource, String configRef, int serviceRanking) -
Uses of Resource in org.apache.sling.caconfig.spi
Methods in org.apache.sling.caconfig.spi that return ResourceModifier and TypeMethodDescription@Nullable ResourceConfigurationInjectResourceDetectionStrategy.detectResource(@NotNull SlingHttpServletRequest request) Detects the resource that is associated with the given request.@Nullable ResourceConfigurationPersistenceStrategy2.getCollectionItemResource(@NotNull Resource resource) Allows the strategy to transform the given configuration resource according to it's persistent strategies, e.g. fetching the data from a child resource instead of the given resource.@Nullable ResourceConfigurationPersistenceStrategy2.getCollectionParentResource(@NotNull Resource resource) Allows the strategy to transform the given configuration resource according to it's persistent strategies, e.g. fetching the data from a child resource instead of the given resource.@Nullable ResourceConfigurationInheritanceStrategy.getResource(@NotNull Iterator<Resource> configResources) Pick or merge resources for inheritance.@Nullable ResourceConfigurationPersistenceStrategy.getResource(@NotNull Resource resource) Deprecated.Allows the strategy to transform the given configuration resource according to it's persistent strategies, e.g. fetching the data from a child resource instead of the given resource.@Nullable ResourceConfigurationPersistenceStrategy2.getResource(@NotNull Resource resource) Allows the strategy to transform the given configuration resource according to it's persistent strategies, e.g. fetching the data from a child resource instead of the given resource.Methods in org.apache.sling.caconfig.spi with parameters of type ResourceModifier and TypeMethodDescription@Nullable ResourceConfigurationPersistenceStrategy2.getCollectionItemResource(@NotNull Resource resource) Allows the strategy to transform the given configuration resource according to it's persistent strategies, e.g. fetching the data from a child resource instead of the given resource.@Nullable ResourceConfigurationPersistenceStrategy2.getCollectionParentResource(@NotNull Resource resource) Allows the strategy to transform the given configuration resource according to it's persistent strategies, e.g. fetching the data from a child resource instead of the given resource.@Nullable ResourceConfigurationPersistenceStrategy.getResource(@NotNull Resource resource) Deprecated.Allows the strategy to transform the given configuration resource according to it's persistent strategies, e.g. fetching the data from a child resource instead of the given resource.@Nullable ResourceConfigurationPersistenceStrategy2.getResource(@NotNull Resource resource) Allows the strategy to transform the given configuration resource according to it's persistent strategies, e.g. fetching the data from a child resource instead of the given resource.Method parameters in org.apache.sling.caconfig.spi with type arguments of type ResourceModifier and TypeMethodDescription@Nullable ResourceConfigurationInheritanceStrategy.getResource(@NotNull Iterator<Resource> configResources) Pick or merge resources for inheritance. -
Uses of Resource in org.apache.sling.discovery.base.connectors.announcement
Methods in org.apache.sling.discovery.base.connectors.announcement with parameters of type Resource -
Uses of Resource in org.apache.sling.discovery.commons.providers.util
Methods in org.apache.sling.discovery.commons.providers.util that return ResourceModifier and TypeMethodDescriptionstatic ResourceResourceHelper.getOrCreateResource(ResourceResolver resourceResolver, String path) Methods in org.apache.sling.discovery.commons.providers.util with parameters of type ResourceModifier and TypeMethodDescriptionstatic StringBuilderResourceHelper.getPropertiesForLogging(Resource resource) Compile a string builder containing the properties of a resource - used for loggingstatic voidResourceHelper.moveResource(Resource res, String path) Move resource to given path. -
Uses of Resource in org.apache.sling.engine.impl.request
Methods in org.apache.sling.engine.impl.request that return ResourceModifier and TypeMethodDescriptionDispatchingInfo.getRequestContent()ContentData.getResource()SlingRequestPathInfo.getSuffixResource()RequestData.initResource(ResourceResolver resourceResolver) Methods in org.apache.sling.engine.impl.request with parameters of type ResourceModifier and TypeMethodDescriptionvoidRequestData.initServlet(Resource resource, ServletResolver sr) RequestData.setContent(Resource resource, RequestPathInfo requestPathInfo) voidDispatchingInfo.setRequestContent(Resource requestContent) Constructors in org.apache.sling.engine.impl.request with parameters of type ResourceModifierConstructorDescriptionContentData(Resource resource, RequestPathInfo requestPathInfo) SlingRequestDispatcher(Resource resource, RequestDispatcherOptions options, boolean protectHeadersOnInclude, boolean checkContentTypeOnInclude) Break requestPath as required by SlingRequestPathInfo. -
Uses of Resource in org.apache.sling.event.impl.jobs
Methods in org.apache.sling.event.impl.jobs that return types with arguments of type ResourceModifier and TypeMethodDescriptionUtility.getSortedChildren(org.slf4j.Logger logger, String type, Resource rsrc) Helper method to read all children of a resource and sort them by nameMethods in org.apache.sling.event.impl.jobs with parameters of type ResourceModifier and TypeMethodDescriptionUtility.getSortedChildren(org.slf4j.Logger logger, String type, Resource rsrc) Helper method to read all children of a resource and sort them by namebooleanCallback handle for a resource.static JobImplRead a jobstatic voidJobTopicTraverser.traverse(org.slf4j.Logger logger, Resource topicResource, JobTopicTraverser.JobCallback handler) Traverse the topic and call the callback for each found job.static voidJobTopicTraverser.traverse(org.slf4j.Logger logger, Resource topicResource, JobTopicTraverser.ResourceCallback handler) Traverse the topic and call the callback for each found resource. -
Uses of Resource in org.apache.sling.event.impl.support
Methods in org.apache.sling.event.impl.support that return ResourceModifier and TypeMethodDescriptionstatic ResourceResourceHelper.createAndCommitResource(ResourceResolver resolver, String path, Map<String, Object> props) Create the resource and commit itstatic ResourceResourceHelper.getOrCreateResource(ResourceResolver resolver, String path, Map<String, Object> props) Creates or gets the resource at the given path.Methods in org.apache.sling.event.impl.support with parameters of type ResourceModifier and TypeMethodDescriptionvoidstatic ValueMapResourceHelper.getValueMap(Resource resource) -
Uses of Resource in org.apache.sling.fsprovider.internal.mapper
Classes in org.apache.sling.fsprovider.internal.mapper that implement ResourceModifier and TypeClassDescriptionfinal classRepresents a JSON File with resource content.final classTheFsResourcerepresents a file system file or folder as a Sling Resource.Methods in org.apache.sling.fsprovider.internal.mapper that return ResourceModifier and TypeMethodDescriptionContentFileResourceMapper.getResource(ResourceResolver resolver, String resourcePath) FileResourceMapper.getResource(ResourceResolver resolver, String resourcePath) FileVaultResourceMapper.getResource(ResourceResolver resolver, String resourcePath) Methods in org.apache.sling.fsprovider.internal.mapper that return types with arguments of type ResourceModifier and TypeMethodDescriptionContentFileResourceMapper.getChildren(ResourceResolver resolver, Resource parent) FileResourceMapper.getChildren(ResourceResolver resolver, Resource parent) FileVaultResourceMapper.getChildren(ResourceResolver resolver, Resource parent) Methods in org.apache.sling.fsprovider.internal.mapper with parameters of type ResourceModifier and TypeMethodDescriptionContentFileResourceMapper.getChildren(ResourceResolver resolver, Resource parent) FileResourceMapper.getChildren(ResourceResolver resolver, Resource parent) FileVaultResourceMapper.getChildren(ResourceResolver resolver, Resource parent) -
Uses of Resource in org.apache.sling.jackrabbit.usermanager
Methods in org.apache.sling.jackrabbit.usermanager with parameters of type ResourceModifier and TypeMethodDescriptionvoidDeleteAuthorizables.deleteAuthorizables(javax.jcr.Session jcrSession, Resource baseResource, String[] paths, List<Modification> changes) Deletes one or more users or groups from the repository -
Uses of Resource in org.apache.sling.jackrabbit.usermanager.impl.post
Methods in org.apache.sling.jackrabbit.usermanager.impl.post with parameters of type ResourceModifier and TypeMethodDescriptionvoidDeleteAuthorizableServlet.deleteAuthorizables(javax.jcr.Session jcrSession, Resource baseResource, String[] paths, List<Modification> changes) protected voidAbstractGroupPostServlet.updateGroupMembership(Resource baseResource, Map<String, ?> properties, org.apache.jackrabbit.api.security.user.Authorizable authorizable, List<Modification> changes) Update the group membership based on the ":member" request parameters. -
Uses of Resource in org.apache.sling.jackrabbit.usermanager.impl.resource
Classes in org.apache.sling.jackrabbit.usermanager.impl.resource that implement ResourceModifier and TypeClassDescriptionclassResource implementation for AuthorizableclassBase Resource implementation for the common partsclassResource implementation for nested property containers of AuthorizableclassResource implementation for Principal (SLING-11098)Methods in org.apache.sling.jackrabbit.usermanager.impl.resource that return ResourceModifier and TypeMethodDescriptionAuthorizableResourceProvider.getResource(ResolveContext<Object> ctx, String path, ResourceContext resourceContext, Resource parent) Methods in org.apache.sling.jackrabbit.usermanager.impl.resource that return types with arguments of type ResourceModifier and TypeMethodDescriptionAuthorizableResourceProvider.filterPropertyContainers(String relPath, org.apache.jackrabbit.api.security.user.Authorizable authorizable, Resource r) Filter the resource children to return only the resources that are nested property containersAuthorizableResourceProvider.listChildren(ResolveContext<Object> ctx, Resource parent) Methods in org.apache.sling.jackrabbit.usermanager.impl.resource with parameters of type ResourceModifier and TypeMethodDescriptionAuthorizableResourceProvider.filterPropertyContainers(String relPath, org.apache.jackrabbit.api.security.user.Authorizable authorizable, Resource r) Filter the resource children to return only the resources that are nested property containersAuthorizableResourceProvider.getResource(ResolveContext<Object> ctx, String path, ResourceContext resourceContext, Resource parent) AuthorizableResourceProvider.listChildren(ResolveContext<Object> ctx, Resource parent) -
Uses of Resource in org.apache.sling.jcr.resource.internal.helper
Methods in org.apache.sling.jcr.resource.internal.helper with parameters of type ResourceModifier and TypeMethodDescriptionstatic voidAccessLogger.incrementUsage(Resource resource, String operation) static voidAccessLogger.incrementUsage(Resource resource, String operation, long count) -
Uses of Resource in org.apache.sling.jcr.resource.internal.helper.jcr
Methods in org.apache.sling.jcr.resource.internal.helper.jcr that return ResourceModifier and TypeMethodDescription@NotNull ResourceJcrResourceProvider.create(@NotNull ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx, @Nullable String path, @Nullable Map<String, Object> properties) @Nullable ResourceJcrResourceProvider.getParent(@NotNull ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx, @NotNull Resource child) @Nullable ResourceJcrResourceProvider.getResource(@NotNull ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx, @NotNull String path, @NotNull ResourceContext rCtx, @Nullable Resource parent) JcrNodeResourceIterator.next()Methods in org.apache.sling.jcr.resource.internal.helper.jcr that return types with arguments of type ResourceModifier and TypeMethodDescriptionBasicQueryLanguageProvider.findResources(@NotNull ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx, String query, String language) JcrResourceProvider.listChildren(@NotNull ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx, @NotNull Resource parent) Methods in org.apache.sling.jcr.resource.internal.helper.jcr with parameters of type ResourceModifier 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 aResourceinstance for the item found at the given path.voidJcrResourceProvider.delete(@NotNull ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx, @NotNull Resource resource) @Nullable ResourceJcrResourceProvider.getParent(@NotNull ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx, @NotNull Resource child) @Nullable ResourceJcrResourceProvider.getResource(@NotNull ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx, @NotNull String path, @NotNull ResourceContext rCtx, @Nullable Resource parent) JcrResourceProvider.listChildren(@NotNull ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx, @NotNull Resource parent) booleanJcrResourceProvider.orderBefore(@NotNull ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx, @NotNull Resource parent, @NotNull String name, @Nullable String followingSiblingName) @NotNull URIBinaryDownloadUriProvider.toURI(@NotNull Resource resource, @NotNull URIProvider.Scope scope, @NotNull URIProvider.Operation operation) -
Uses of Resource in org.apache.sling.models.factory
Methods in org.apache.sling.models.factory with parameters of type ResourceModifier and TypeMethodDescription<T> TModelFactory.createModelFromWrappedRequest(@NotNull SlingHttpServletRequest request, @NotNull Resource resource, @NotNull Class<T> targetClass) Create a wrapped request object with the specified resource and instantiates the given Sling Model class from that wrapped request.<T> TModelFactory.exportModelForResource(@NotNull Resource resource, @NotNull String exporterName, @NotNull Class<T> targetClass, @NotNull Map<String, String> options) Export the model object registered to the resource's type using the defined target class using the named exporter.@NotNull ObjectModelFactory.getModelFromResource(@NotNull Resource resource) Obtain an adapted model class based on the resource type of the provided resource.<T> TModelFactory.getModelFromWrappedRequest(@NotNull SlingHttpServletRequest request, @NotNull Resource resource, @NotNull Class<T> targetClass) Create a wrapped request object with the specified resource and (try to) adapt the request object into the specified class.booleanModelFactory.isModelAvailableForResource(@NotNull Resource resource) Determine is a model class is available for the resource's resource type. -
Uses of Resource in org.apache.sling.models.impl.via
Methods in org.apache.sling.models.impl.via with parameters of type ResourceModifier and TypeMethodDescriptionprotected abstract @Nullable StringAbstractResourceTypeViaProvider.getResourceType(@NotNull Resource resource, @NotNull String value) protected StringForcedResourceTypeViaProvider.getResourceType(@NotNull Resource resource, @NotNull String value) protected StringResourceSuperTypeViaProvider.getResourceType(@NotNull Resource resource, @NotNull String value) -
Uses of Resource in org.apache.sling.resource.filter
Fields in org.apache.sling.resource.filter declared as ResourceMethods in org.apache.sling.resource.filter that return types with arguments of type ResourceModifier and TypeMethodDescriptionResourceStream.listChildren(Predicate<Resource> childSelector) Provides a stream of the child resources of the base resource.Creates a Predicatebased on the provided script Creates a Predicatebased on the provided script ResourceFilterStream.stream()Streamwhich uses the branchSelector as the basis of the traversal and then filters the resources based on the childSelector that was provided Provides a depth firstStream<Resource>traversal of the resource tree starting with the current resource.Method parameters in org.apache.sling.resource.filter with type arguments of type ResourceModifier and TypeMethodDescriptionResourceStream.listChildren(Predicate<Resource> childSelector) Provides a stream of the child resources of the base resource.Provides a depth firstStream<Resource>traversal of the resource tree starting with the current resource.Constructors in org.apache.sling.resource.filter with parameters of type ResourceModifierConstructorDescriptionResourceFilterStream(Resource resource, ResourcePredicates filter) ResourceStream(Resource resource) -
Uses of Resource in org.apache.sling.resource.filter.impl.predicates
Methods in org.apache.sling.resource.filter.impl.predicates that return types with arguments of type ResourceModifier and TypeMethodDescriptionRight and Left values are converted to String arraysRight and Left values are converted to String arraysValues are converted to a Number, and then additionally converted to a common type as the basis of comparisonValues are converted to a Number, and then additionally converted to a common type as the basis of comparisonRight and Left values are converted to String arraysValues are converted to Strings.Values are converted to Strings.Values are converted to Strings.Values are converted to a Number, and then additionally converted to a common type as the basis of comparisonValues are converted to a Number, and then additionally converted to a common type as the basis of comparisonComparisonPredicateFactory.toPredicate(int kind, Function<Resource, Object> leftValue, Function<Resource, Object> rightValue) Method parameters in org.apache.sling.resource.filter.impl.predicates with type arguments of type ResourceModifier and TypeMethodDescriptionRight and Left values are converted to String arraysRight and Left values are converted to String arraysValues are converted to a Number, and then additionally converted to a common type as the basis of comparisonValues are converted to a Number, and then additionally converted to a common type as the basis of comparisonRight and Left values are converted to String arraysValues are converted to Strings.Values are converted to Strings.Values are converted to Strings.Values are converted to a Number, and then additionally converted to a common type as the basis of comparisonValues are converted to a Number, and then additionally converted to a common type as the basis of comparisonComparisonPredicateFactory.toPredicate(int kind, Function<Resource, Object> leftValue, Function<Resource, Object> rightValue) -
Uses of Resource in org.apache.sling.resourceresolver.impl.helper
Classes in org.apache.sling.resourceresolver.impl.helper that implement ResourceModifier and TypeClassDescriptionfinal classclassUsed to provide the equivalent of an empty Node for GET requests to *.something (SLING-344)Methods in org.apache.sling.resourceresolver.impl.helper that return ResourceModifier and TypeMethodDescriptionResourceResolverControl.copy(ResourceResolverContext context, String srcAbsPath, String destAbsPath) Tries to find a resource provider accepting both paths and invokesAuthenticatedResourceProvider.copy(String, String)method on it.ResourceResolverControl.create(ResourceResolverContext context, String path, Map<String, Object> properties) Create a resource.Decorate a resource.ResourceResolverControl.getParent(@NotNull ResourceResolverContext context, @NotNull String parentPath, @NotNull Resource child) Returns parent from the most appropriate resource provider accepting the given children.ResourceResolverControl.getResource(ResourceResolverContext context, String path, Resource parent, Map<String, String> parameters, boolean isResolve) Returns resource from the most appropriate resource provider.ResourceResolverControl.move(ResourceResolverContext context, String srcAbsPath, String destAbsPath) Tries to find a resource provider accepting both paths and invokesAuthenticatedResourceProvider.move(String, String)method on it.ResourceIteratorDecorator.next()protected ResourceUniqueResourceIterator.seek()Methods in org.apache.sling.resourceresolver.impl.helper that return types with arguments of type ResourceModifier and TypeMethodDescriptionResourceResolverControl.findResources(ResourceResolverContext context, String query, String language) Queries all resource providers and combines the results.ResourceResolverControl.listChildren(ResourceResolverContext context, Resource parent) This method asks all matching resource providers for the children iterators, merges them, addsSyntheticResources (seeResourceResolverControl.getResource(ResourceResolverContext, String, Resource, Map, boolean)for more details), filters out the duplicates and returns the resulting iterator.ResourceResolverControl.listChildrenInternal(ResourceResolverContext context, Node<ResourceProviderHandler> node, Resource parent, Iterator<Resource> realChildren) Internal methodMethods in org.apache.sling.resourceresolver.impl.helper with parameters of type ResourceModifier and TypeMethodDescriptionDecorate a resource.voidResourceResolverControl.delete(ResourceResolverContext context, Resource resource) Delete the resource.ResourceResolverControl.getParent(@NotNull ResourceResolverContext context, @NotNull String parentPath, @NotNull Resource child) Returns parent from the most appropriate resource provider accepting the given children.static StringResourceResolverControl.getProperty(Resource res, String propName) static <Type> TypeResourceResolverControl.getProperty(Resource res, String propName, Class<Type> type) Returns the value of the name property of the resource converted to the requestedtype.ResourceResolverControl.getResource(ResourceResolverContext context, String path, Resource parent, Map<String, String> parameters, boolean isResolve) Returns resource from the most appropriate resource provider.static booleanStarResource.isStarResource(Resource res) Returns true if the path of the resource ends with theStarResource.SLASH_STARand therefore should be considered a star resource.ResourceResolverControl.listChildren(ResourceResolverContext context, Resource parent) This method asks all matching resource providers for the children iterators, merges them, addsSyntheticResources (seeResourceResolverControl.getResource(ResourceResolverContext, String, Resource, Map, boolean)for more details), filters out the duplicates and returns the resulting iterator.ResourceResolverControl.listChildrenInternal(ResourceResolverContext context, Node<ResourceProviderHandler> node, Resource parent, Iterator<Resource> realChildren) Internal methodbooleanResourceResolverControl.orderBefore(@NotNull ResourceResolverContext context, @NotNull Resource parent, @NotNull String name, @Nullable String followingSiblingName) Order resourcesMethod parameters in org.apache.sling.resourceresolver.impl.helper with type arguments of type ResourceModifier and TypeMethodDescriptionResourceResolverControl.listChildrenInternal(ResourceResolverContext context, Node<ResourceProviderHandler> node, Resource parent, Iterator<Resource> realChildren) Internal methodConstructor parameters in org.apache.sling.resourceresolver.impl.helper with type arguments of type ResourceModifierConstructorDescriptionResourceIteratorDecorator(ResourceDecoratorTracker tracker, Iterator<Resource> iterator) UniqueResourceIterator(Set<String> visited, Iterator<Resource> input) -
Uses of Resource in org.apache.sling.resourceresolver.impl.legacy
Methods in org.apache.sling.resourceresolver.impl.legacy that return ResourceModifier and TypeMethodDescriptionLegacyResourceProviderAdapter.create(@NotNull ResolveContext<Object> ctx, String path, Map<String, Object> properties) LegacyResourceProviderFactoryAdapter.create(@NotNull ResolveContext<LegacyResourceProviderAdapter> ctx, String path, Map<String, Object> properties) LegacyResourceProviderAdapter.getResource(ResolveContext<Object> ctx, String path, ResourceContext resourceContext, Resource parent) LegacyResourceProviderFactoryAdapter.getResource(ResolveContext<LegacyResourceProviderAdapter> ctx, String path, ResourceContext resourceContext, Resource parent) Methods in org.apache.sling.resourceresolver.impl.legacy that return types with arguments of type ResourceModifier and TypeMethodDescriptionLegacyResourceProviderAdapter.listChildren(ResolveContext<Object> ctx, Resource parent) LegacyResourceProviderFactoryAdapter.listChildren(ResolveContext<LegacyResourceProviderAdapter> ctx, Resource parent) Methods in org.apache.sling.resourceresolver.impl.legacy with parameters of type ResourceModifier and TypeMethodDescriptionvoidLegacyResourceProviderAdapter.delete(@NotNull ResolveContext<Object> ctx, @NotNull Resource resource) voidLegacyResourceProviderFactoryAdapter.delete(@NotNull ResolveContext<LegacyResourceProviderAdapter> ctx, @NotNull Resource resource) LegacyResourceProviderAdapter.getResource(ResolveContext<Object> ctx, String path, ResourceContext resourceContext, Resource parent) LegacyResourceProviderFactoryAdapter.getResource(ResolveContext<LegacyResourceProviderAdapter> ctx, String path, ResourceContext resourceContext, Resource parent) LegacyResourceProviderAdapter.listChildren(ResolveContext<Object> ctx, Resource parent) LegacyResourceProviderFactoryAdapter.listChildren(ResolveContext<LegacyResourceProviderAdapter> ctx, Resource parent) -
Uses of Resource in org.apache.sling.resourceresolver.impl.mapping
Methods in org.apache.sling.resourceresolver.impl.mapping that return ResourceMethods in org.apache.sling.resourceresolver.impl.mapping with parameters of type ResourceModifier and TypeMethodDescriptionMapEntry.createMapEntry(String url, Resource resource, boolean trailingSlash) static MapEntryMapEntry.createResolveEntry(String url, Resource resource, boolean trailingSlash) -
Uses of Resource in org.apache.sling.resourceresolver.impl.providers.stateful
Methods in org.apache.sling.resourceresolver.impl.providers.stateful that return ResourceModifier and TypeMethodDescriptionAuthenticatedResourceProvider.create(ResourceResolver resolver, String path, Map<String, Object> properties) Get the parent resourceAuthenticatedResourceProvider.getResource(String path, Resource parent, Map<String, String> parameters) Methods in org.apache.sling.resourceresolver.impl.providers.stateful that return types with arguments of type ResourceModifier and TypeMethodDescriptionAuthenticatedResourceProvider.findResources(String query, String language) AuthenticatedResourceProvider.listChildren(Resource parent) Methods in org.apache.sling.resourceresolver.impl.providers.stateful with parameters of type ResourceModifier and TypeMethodDescriptionvoidGet the parent resourceAuthenticatedResourceProvider.getResource(String path, Resource parent, Map<String, String> parameters) AuthenticatedResourceProvider.listChildren(Resource parent) booleanAuthenticatedResourceProvider.orderBefore(@NotNull Resource parent, @NotNull String name, @Nullable String followingSiblingName) -
Uses of Resource in org.apache.sling.scripting.core
Methods in org.apache.sling.scripting.core with parameters of type ResourceModifier and TypeMethodDescriptionvoidvoidvoidScriptHelper.forward(Resource resource, RequestDispatcherOptions options) voidvoidvoidScriptHelper.include(Resource resource, RequestDispatcherOptions options) -
Uses of Resource in org.apache.sling.scripting.javascript.wrapper
Methods in org.apache.sling.scripting.javascript.wrapper with parameters of type ResourceConstructors in org.apache.sling.scripting.javascript.wrapper with parameters of type Resource -
Uses of Resource in org.apache.sling.scripting.jsp.taglib
Methods in org.apache.sling.scripting.jsp.taglib that return ResourceModifier and TypeMethodDescriptionstatic final ResourceSlingFunctions.getAbsoluteParent(Resource current, String level) Method for retrieving an absolute parent resource.GetResourceTag.getBase()Gets the base resource.static final ResourceSlingFunctions.getCAConfigResource(Resource resource, String bucket, String name) Method for retrieving the CA Config resource for a specified resourcestatic ResourceSlingFunctions.getRelativeResource(Resource base, String path) Gets the resource at the relative path to the provided resource.AbstractCATag.getResource()GetParentsTag.getResource()Gets the resource.GetParentTag.getResource()Gets the resource.ListChildrenTag.getResource()Gets the resource of which to list the children.static final ResourceSlingFunctions.getResource(ResourceResolver resolver, String path) Method allow for the retrieval of resources.Methods in org.apache.sling.scripting.jsp.taglib that return types with arguments of type ResourceModifier and TypeMethodDescriptionSlingFunctions.findResources(ResourceResolver resourceResolver, String query, String language) Searches for resources using the given query formulated in the given language.SlingFunctions.getCAConfigResources(Resource resource, String bucket, String name) Method for retrieving the CA Config resources for a specified resourceSlingFunctions.getParents(Resource current, String startDepth) Function for retrieving all of the parent resources of a specified resource, returning them in hierarchy order.SlingFunctions.listChildren(Resource resource) Method for allowing the invocation of the Sling Resource listChildren method.Methods in org.apache.sling.scripting.jsp.taglib with parameters of type ResourceModifier and TypeMethodDescriptionstatic final ResourceSlingFunctions.getAbsoluteParent(Resource current, String level) Method for retrieving an absolute parent resource.static final ResourceSlingFunctions.getCAConfigResource(Resource resource, String bucket, String name) Method for retrieving the CA Config resource for a specified resourceSlingFunctions.getCAConfigResources(Resource resource, String bucket, String name) Method for retrieving the CA Config resources for a specified resourceSlingFunctions.getParents(Resource current, String startDepth) Function for retrieving all of the parent resources of a specified resource, returning them in hierarchy order.static ResourceSlingFunctions.getRelativeResource(Resource base, String path) Gets the resource at the relative path to the provided resource.static final booleanSlingFunctions.hasChildren(Resource resource) Method for checking whether or not a resource has child resources.SlingFunctions.listChildren(Resource resource) Method for allowing the invocation of the Sling Resource listChildren method.voidSets the base resource.voidAbstractCATag.setResource(Resource resource) voidAbstractDispatcherTagHandler.setResource(Resource rsrc) voidEvalTagHandler.setResource(Resource rsrc) voidGetParentsTag.setResource(Resource resource) Sets the resource.voidGetParentTag.setResource(Resource resource) Sets the resource.voidListChildrenTag.setResource(Resource resource) Sets the resource of which to list the children. -
Uses of Resource in org.apache.sling.scripting.sightly.engine
Methods in org.apache.sling.scripting.sightly.engine that return ResourceModifier and TypeMethodDescriptionstatic ResourceResourceResolution.getResourceForRequest(ResourceResolver resolver, SlingHttpServletRequest request) Resolves the resource accessed by arequest.static ResourceResourceResolution.getResourceFromSearchPath(Resource base, String path) Resolves a resource from the search path relative to thebaseresource by traversing thesling:resourceSuperTypechain.Methods in org.apache.sling.scripting.sightly.engine with parameters of type ResourceModifier and TypeMethodDescriptionstatic ResourceResourceResolution.getResourceFromSearchPath(Resource base, String path) Resolves a resource from the search path relative to thebaseresource by traversing thesling:resourceSuperTypechain. -
Uses of Resource in org.apache.sling.scripting.sightly.impl.utils
Methods in org.apache.sling.scripting.sightly.impl.utils that return ResourceModifier and TypeMethodDescriptionstatic ResourceBindingsUtils.getResource(Bindings bindings) ScriptDependencyResolver.resolveScript(RenderContext renderContext, String scriptIdentifier) Resolves a script identifier to a resource -
Uses of Resource in org.apache.sling.scripting.thymeleaf
Methods in org.apache.sling.scripting.thymeleaf with parameters of type ResourceModifier and TypeMethodDescription@Nullable org.thymeleaf.templatemode.TemplateModeTemplateModeProvider.provideTemplateMode(@NotNull Resource resource) -
Uses of Resource in org.apache.sling.scripting.thymeleaf.internal.processor
Methods in org.apache.sling.scripting.thymeleaf.internal.processor with parameters of type ResourceModifier and TypeMethodDescriptionprotected StringSlingIncludeAttributeTagProcessor.dispatch(Resource resource, String path, SlingHttpServletRequest slingHttpServletRequest, SlingHttpServletResponse slingHttpServletResponse, RequestDispatcherOptions requestDispatcherOptions) -
Uses of Resource in org.apache.sling.servlets.get.impl.helpers
Methods in org.apache.sling.servlets.get.impl.helpers with parameters of type ResourceModifier and TypeMethodDescriptionprotected voidDumps the information about the provided resource to aPrintWriter. -
Uses of Resource in org.apache.sling.servlets.get.impl.util
Constructors in org.apache.sling.servlets.get.impl.util with parameters of type ResourceModifierConstructorDescriptionJsonObjectCreator(Resource resource, boolean ecmaSupport) Create a new json object creatorResourceTraversor(int levels, long maxResources, Resource resource, boolean ecmaSupport) Create a ResourceTraversor, optionally limiting recursion and total number of resources -
Uses of Resource in org.apache.sling.servlets.post
Methods in org.apache.sling.servlets.post that return types with arguments of type ResourceModifier and TypeMethodDescriptionAbstractPostOperation.getApplyToResources(SlingHttpServletRequest request) Deprecated.Returns an iterator onResourceinstances addressed in theSlingPostConstants.RP_APPLY_TOrequest parameter. -
Uses of Resource in org.apache.sling.servlets.post.impl.helper
Fields in org.apache.sling.servlets.post.impl.helper declared as ResourceMethods in org.apache.sling.servlets.post.impl.helper that return ResourceModifier and TypeMethodDescriptionSlingFileUploadHandler.getLastChunk(Resource rsrc) Get the lastSlingPostConstants.NT_SLING_CHUNK_NODETYPEResource.StreamedChunk.store(Resource fileResource, List<Modification> changes) Store the chunk in a file resource under a jcr:content sub node.Methods in org.apache.sling.servlets.post.impl.helper with parameters of type ResourceModifier and TypeMethodDescriptionbooleanbooleanvoidJCRSupport.checkoutIfNecessary(Resource rsrc, List<Modification> changes, VersioningConfiguration versioningConfiguration) voidJCRSupportImpl.checkoutIfNecessary(Resource resource, List<Modification> changes, VersioningConfiguration versioningConfiguration) voidSlingFileUploadHandler.deleteChunks(Resource rsrc) Delete all chunks saved within a resource.SlingFileUploadHandler.getLastChunk(Resource rsrc) Get the lastSlingPostConstants.NT_SLING_CHUNK_NODETYPEResource.booleanbooleanbooleanJCRSupport.isNodeType(Resource rsrc, String typeHint) booleanJCRSupportImpl.isNodeType(Resource rsrc, String typeHint) booleanJCRSupport.isVersionable(Resource rsrc) booleanJCRSupportImpl.isVersionable(Resource rsrc) voidSlingFileUploadHandler.setFile(Resource parent, RequestProperty prop, List<Modification> changes) Uses the file(s) in the request parameter for creation of new nodes.voidSlingPropertyValueHandler.setProperty(Resource parent, RequestProperty prop) Set property on given node, with some automatic values when user provides the field name but no value.StreamedChunk.store(Resource fileResource, List<Modification> changes) Store the chunk in a file resource under a jcr:content sub node.JCRSupport.storeAsReference(Resource resource, Object node, String name, String[] values, int type, boolean multiValued) Stores property value(s) as reference(s).Constructor parameters in org.apache.sling.servlets.post.impl.helper with type arguments of type Resource -
Uses of Resource in org.apache.sling.servlets.post.impl.operations
Methods in org.apache.sling.servlets.post.impl.operations that return ResourceModifier and TypeMethodDescriptionprotected ResourceCopyOperation.execute(List<Modification> changes, Resource source, String destParent, String destName, VersioningConfiguration versioningConfiguration) protected ResourceMoveOperation.execute(List<Modification> changes, Resource source, String destParent, String destName, VersioningConfiguration versioningConfiguration) Methods in org.apache.sling.servlets.post.impl.operations that return types with arguments of type ResourceModifier and TypeMethodDescriptionAbstractPostOperation.getApplyToResources(SlingHttpServletRequest request) Returns an iterator onResourceinstances addressed in theSlingPostConstants.RP_APPLY_TOrequest parameter.Methods in org.apache.sling.servlets.post.impl.operations with parameters of type ResourceModifier and TypeMethodDescriptionprotected ResourceCopyOperation.execute(List<Modification> changes, Resource source, String destParent, String destName, VersioningConfiguration versioningConfiguration) protected ResourceMoveOperation.execute(List<Modification> changes, Resource source, String destParent, String destName, VersioningConfiguration versioningConfiguration) protected voidAbstractPostOperation.orderResource(SlingHttpServletRequest request, Resource resource, List<Modification> changes) Orders the given resource according to the specified command. -
Uses of Resource in org.apache.sling.servlets.resolver.internal.bundle
Methods in org.apache.sling.servlets.resolver.internal.bundle with parameters of type ResourceModifier and TypeMethodDescriptionjavax.servlet.RequestDispatcherRequestWrapper.getRequestDispatcher(Resource resource, RequestDispatcherOptions options) -
Uses of Resource in org.apache.sling.servlets.resolver.internal.helper
Methods in org.apache.sling.servlets.resolver.internal.helper that return ResourceModifier and TypeMethodDescriptionprotected final @NotNull ResourceAbstractResourceCollector.getResource(@NotNull ResourceResolver resolver, @NotNull String path, boolean useCaching) Returns a resource for the givenpath.protected static @NotNull ResourceLocationCollector.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 ResourceAbstractResourceCollector.getResourceOrNull(@NotNull ResourceResolver resolver, @NotNull String path, boolean useCaching) Resolvers a resource or null if there is no resource resolved from the given path.Methods in org.apache.sling.servlets.resolver.internal.helper that return types with arguments of type ResourceModifier and TypeMethodDescriptionfinal Collection<Resource>AbstractResourceCollector.getServlets(ResourceResolver resolver, List<String> scriptExtensions) Methods in org.apache.sling.servlets.resolver.internal.helper with parameters of type ResourceModifier and TypeMethodDescriptionprotected final voidAbstractResourceCollector.addWeightedResource(Set<org.apache.sling.servlets.resolver.internal.helper.WeightedResource> resources, Resource resource, int numSelectors, int methodPrefixWeight) Creates aWeightedResourceand adds it to the set of resources.static NamedScriptResourceCollectorNamedScriptResourceCollector.create(String name, Resource resource, String[] executionPaths, boolean useResourceCaching) static ResourceCollectorResourceCollector.create(Resource resource, String extension, String[] executionPaths, String[] defaultExtensions, String methodName, String[] selectors, boolean useResourceCaching) protected abstract voidAbstractResourceCollector.getWeightedResources(Set<org.apache.sling.servlets.resolver.internal.helper.WeightedResource> resources, Resource location) protected voidNamedScriptResourceCollector.getWeightedResources(Set<org.apache.sling.servlets.resolver.internal.helper.WeightedResource> resources, Resource location) protected voidResourceCollector.getWeightedResources(Set<org.apache.sling.servlets.resolver.internal.helper.WeightedResource> resources, Resource location) Method parameters in org.apache.sling.servlets.resolver.internal.helper with type arguments of type ResourceModifier and TypeMethodDescriptionprotected static @NotNull ResourceLocationCollector.getResource(@NotNull ResourceResolver resolver, @NotNull String path, @NotNull Map<String, Resource> cacheMap) Resolve a path to a resource, either via the cache or the ResourceResolverConstructors in org.apache.sling.servlets.resolver.internal.helper with parameters of type ResourceModifierConstructorDescriptionResourceCollector(String methodName, String baseResourceType, Resource resource, String[] executionPaths) Deprecated.use#ResourceCollector(String, String, Resource, String, String[])instead.ResourceCollector(String methodName, String baseResourceType, Resource resource, String extension, String[] executionPaths, boolean useResourceCaching) Creates aResourceCollectorfinding servlets and scripts for the givenmethodName. -
Uses of Resource in org.apache.sling.servlets.resolver.internal.resource
Classes in org.apache.sling.servlets.resolver.internal.resource that implement ResourceMethods in org.apache.sling.servlets.resolver.internal.resource that return ResourceModifier and TypeMethodDescription@Nullable ResourceMergingServletResourceProvider.getResource(@NotNull ResolveContext<Object> resolveContext, @NotNull String s, @NotNull ResourceContext resourceContext, @Nullable Resource resource) MergingServletResourceProvider.getResource(ResolveContext resolveContext, String path) ServletResourceProvider.getResource(ResolveContext<Object> ctx, String path, ResourceContext resourceContext, Resource parent) Methods in org.apache.sling.servlets.resolver.internal.resource that return types with arguments of type ResourceModifier and TypeMethodDescriptionMergingServletResourceProvider.listChildren(ResolveContext ctx, Resource parent) ServletResourceProvider.listChildren(ResolveContext<Object> ctx, Resource parent) Methods in org.apache.sling.servlets.resolver.internal.resource with parameters of type ResourceModifier and TypeMethodDescription@Nullable ResourceMergingServletResourceProvider.getResource(@NotNull ResolveContext<Object> resolveContext, @NotNull String s, @NotNull ResourceContext resourceContext, @Nullable Resource resource) ServletResourceProvider.getResource(ResolveContext<Object> ctx, String path, ResourceContext resourceContext, Resource parent) MergingServletResourceProvider.listChildren(ResolveContext ctx, Resource parent) ServletResourceProvider.listChildren(ResolveContext<Object> ctx, Resource parent) -
Uses of Resource in org.apache.sling.spi.resource.provider
Methods in org.apache.sling.spi.resource.provider that return ResourceModifier and TypeMethodDescription@NotNull ResourceCreate a new resource at the given path.@Nullable ResourceResourceProvider.getParent(@NotNull ResolveContext<T> ctx, @NotNull Resource child) Returns the parent resource from this resource provider ornullif the resource provider cannot find it.abstract @Nullable ResourceResourceProvider.getResource(@NotNull ResolveContext<T> ctx, @NotNull String path, @NotNull ResourceContext resourceContext, @Nullable Resource parent) Returns a resource from this resource provider ornullif the resource provider cannot find it.Methods in org.apache.sling.spi.resource.provider that return types with arguments of type ResourceModifier and TypeMethodDescriptionQueryLanguageProvider.findResources(@NotNull ResolveContext<T> ctx, String query, String language) Searches for resources using the given query formulated in the given language.ResourceProvider.listChildren(@NotNull ResolveContext<T> ctx, @NotNull Resource parent) Methods in org.apache.sling.spi.resource.provider with parameters of type ResourceModifier and TypeMethodDescriptionvoidResourceProvider.delete(@NotNull ResolveContext<T> ctx, @NotNull Resource resource) Delete the resource at the given path.@Nullable ResourceResourceProvider.getParent(@NotNull ResolveContext<T> ctx, @NotNull Resource child) Returns the parent resource from this resource provider ornullif the resource provider cannot find it.abstract @Nullable ResourceResourceProvider.getResource(@NotNull ResolveContext<T> ctx, @NotNull String path, @NotNull ResourceContext resourceContext, @Nullable Resource parent) Returns a resource from this resource provider ornullif the resource provider cannot find it.ResourceProvider.listChildren(@NotNull ResolveContext<T> ctx, @NotNull Resource parent) booleanResourceProvider.orderBefore(@NotNull ResolveContext<T> ctx, @NotNull Resource parent, @NotNull String name, @Nullable String followingSiblingName) Orders the child resources returned byResourceProvider.listChildren(ResolveContext, Resource)so that a given resource is listed before the given sibling resource. -
Uses of Resource in org.apache.sling.validation
Methods in org.apache.sling.validation with parameters of type ResourceModifier and TypeMethodDescription@Nullable ValidationModelValidationService.getValidationModel(@NotNull Resource resource, boolean considerResourceSuperTypeModels) Tries to obtain aValidationModelthat is able to validate the givenresource.@NotNull ValidationResultValidationService.validate(@NotNull Resource resource, @NotNull ValidationModel model) Validates aResourceusing a specificValidationModel.@NotNull ValidationResultValidationService.validateResourceRecursively(@NotNull Resource resource, boolean enforceValidation, Predicate<Resource> filter, boolean considerResourceSuperTypeModels) Validates aResourceand all child resources recursively by traversing through the resource tree starting from the given resource.Method parameters in org.apache.sling.validation with type arguments of type ResourceModifier and TypeMethodDescription@NotNull ValidationResultValidationService.validateResourceRecursively(@NotNull Resource resource, boolean enforceValidation, Predicate<Resource> filter, boolean considerResourceSuperTypeModels) Validates aResourceand all child resources recursively by traversing through the resource tree starting from the given resource. -
Uses of Resource in org.apache.sling.validation.spi
Methods in org.apache.sling.validation.spi that return Resource