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