Package | Description |
---|---|
org.apache.sling.spi.resource.provider |
Modifier and Type | Method and Description |
---|---|
ResolveContext<?> |
ResolveContext.getParentResolveContext()
Return a resolve context for the parent resource provider.
|
Modifier and Type | Method and Description |
---|---|
<AdapterType> |
ResourceProvider.adaptTo(ResolveContext<T> ctx,
Class<AdapterType> type)
Adapts the provider to another type.
|
void |
ResourceProvider.commit(ResolveContext<T> ctx)
Commit all transient changes: create, delete and updates
|
boolean |
ResourceProvider.copy(ResolveContext<T> ctx,
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 |
ResourceProvider.create(ResolveContext<T> ctx,
String path,
Map<String,Object> properties)
Create a new resource at the given path.
|
void |
ResourceProvider.delete(ResolveContext<T> ctx,
Resource resource)
Delete the resource at the given path.
|
Iterator<Resource> |
QueryLanguageProvider.findResources(ResolveContext<T> ctx,
String query,
String language)
Searches for resources using the given query formulated in the given
language.
|
Object |
ResourceProvider.getAttribute(ResolveContext<T> ctx,
String name)
Returns the value of the given resource provider attribute or
null
if the attribute is not set or not visible (as e.g. |
Collection<String> |
ResourceProvider.getAttributeNames(ResolveContext<T> ctx)
Returns a collection of attribute names whose value can be retrieved
calling the
ResourceProvider.getAttribute(ResolveContext, String) method. |
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. |
String[] |
QueryLanguageProvider.getSupportedLanguages(ResolveContext<T> ctx)
The supported languages of the resource provider.
|
boolean |
ResourceProvider.hasChanges(ResolveContext<T> ctx)
Are there any transient changes?
|
boolean |
ResourceProvider.isLive(ResolveContext<T> ctx)
Returns
true if this resource provider has not been closed
yet and can still be used. |
abstract Iterator<Resource> |
ResourceProvider.listChildren(ResolveContext<T> ctx,
Resource parent)
|
boolean |
ResourceProvider.move(ResolveContext<T> ctx,
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 . |
Iterator<ValueMap> |
QueryLanguageProvider.queryResources(ResolveContext<T> ctx,
String query,
String language)
Queries the storage using the given query formulated in the given
language.
|
void |
ResourceProvider.refresh(ResolveContext<T> ctx)
The provider is updated to reflect the latest state.
|
void |
ResourceProvider.revert(ResolveContext<T> ctx)
Revert all transient changes: create, delete and updates.
|
Copyright © 2017 The Apache Software Foundation. All rights reserved.