@Version("2.13.0")
Package org.apache.sling.api.resource
-
Interface Summary Interface Description AttributableResourceProvider Deprecated. Use theResourceProvider
DynamicResourceProvider Deprecated. Use theResourceProvider
ModifiableValueMap TheModifiableValueMap
is an extension of theValueMap
which allows to modify and persist properties.ModifyingResourceProvider Deprecated. Use theResourceProvider
ParametrizableResourceProvider Deprecated. Use theResourceProvider
PersistableValueMap Deprecated. Use theModifiableValueMap
instead.QueriableResourceProvider Deprecated. Use theResourceProvider
RefreshableResourceProvider Deprecated. Use theResourceProvider
Resource Resources are pieces of content on which Sling actsResourceDecorator Optional service to decorateResource
s returned by theResourceResolver
.ResourceProvider Deprecated. Use theResourceProvider
ResourceProviderFactory Deprecated. ResourceResolver TheResourceResolver
defines the API which may be used to resolveResource
objects and work with such resources like creating, editing or updating them.ResourceResolverFactory TheResourceResolverFactory
defines the service API to get and createResourceResolver
s.ValueMap TheValueMap
is an easy way to access properties of a resource. -
Class Summary Class Description AbstractResource TheAbstractResource
is an abstract implementation of theResource
interface.AbstractResourceVisitor This visitor will traverse the given resource and all its children in a depth-first approach and call theAbstractResourceVisitor.visit(Resource)
method for each visited resource.NonExistingResource Simple helper class representing nonexisting resources.ResourceMetadata TheResourceMetadata
interface defines the API for the metadata of a SlingResource
.ResourceUtil TheResourceUtil
class provides helper methods dealing with resources.ResourceUtil.BatchResourceRemover A batch resource remover deletes resources in batches.ResourceWrapper TheResourceWrapper
is a wrapper for anyResource
delegating all method calls to the wrapped resource by default.SyntheticResource TheSyntheticResource
class is a simple implementation of theResource
interface which may be used to provide a resource object which has no actual resource data. -
Exception Summary Exception Description LoginException Exception thrown by
,ResourceResolverFactory.getAdministrativeResourceResolver(java.util.Map)
, andResourceResolverFactory.getResourceResolver(java.util.Map)
if a resource resolver cannot be created because the credential data is not valid.ResourceResolver.clone(java.util.Map)
PersistenceException This exception will be thrown during the commit to persist changes to aPersistableValueMap
, aModifiableValueMap
or theResourceResolver
.QuerySyntaxException TheQuerySyntaxException
is thrown by theResourceResolver.findResources(String, String)
andResourceResolver.queryResources(String, String)
methods if the query syntax is wrong or the requested query language is not available.ResourceNotFoundException An Exception that causes Sling to return a 404 (NOT FOUND) status code.