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