public interface ApiResourceProvider
ApiResourceProviderFactory
.Modifier and Type | Method and Description |
---|---|
Resource |
create(ResourceResolver resolver,
java.lang.String path,
java.util.Map<java.lang.String,java.lang.Object> properties)
Create a new resource at the given path.
|
void |
delete(ResourceResolver resolver,
java.lang.String path)
Delete the resource at the given path.
|
Resource |
getResource(ResourceResolver resourceResolver,
java.lang.String path)
Returns a resource from this resource provider or
null if
the resource provider cannot find it. |
java.util.Iterator<Resource> |
listChildren(Resource parent)
|
Resource getResource(ResourceResolver resourceResolver, java.lang.String path)
null
if
the resource provider cannot find it. The path does not come with any
prefix.resourceResolver
- The ResourceResolver
to which the
returned Resource
is attached.path
- The resource path.null
If this provider does not have a resource for the
path.java.util.Iterator<Resource> listChildren(Resource parent)
java.util.Iterator
of Resource
objects loaded from
the children of the given Resource
. The returned
Resource
instances are attached to the same
ResourceResolver
as the given parent
resource.
The returned iterator may in turn contain resources which do not actually
exist but are required to traverse the resource tree. Such resources
SHOULD be SyntheticResource
objects whose resource type MUST be
set to ResourceProvider.RESOURCE_TYPE_SYNTHETIC
.
Resource create(ResourceResolver resolver, java.lang.String path, java.util.Map<java.lang.String,java.lang.Object> properties) throws PersistenceException
ResourceResolver.commit()
is called.resolver
- The current resource resolver.path
- The resource path.properties
- Optional propertiesPersistenceException
- If anything failsvoid delete(ResourceResolver resolver, java.lang.String path) throws PersistenceException
ResourceResolver.commit()
is called.resolver
- The current resource resolver.path
- The resource path.PersistenceException
- If anything fails"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"