Uses of Interface
org.apache.sling.spi.resource.provider.ResolveContext
Packages that use ResolveContext
-
Uses of ResolveContext in org.apache.sling.spi.resource.provider
Methods in org.apache.sling.spi.resource.provider that return ResolveContextModifier and TypeMethodDescription@Nullable ResolveContext<?>
ResolveContext.getParentResolveContext()
Return a resolve context for the parent resource provider.Methods in org.apache.sling.spi.resource.provider with parameters of type ResolveContextModifier and TypeMethodDescription<AdapterType>
AdapterTypeResourceProvider.adaptTo
(@NotNull ResolveContext<T> ctx, @NotNull Class<AdapterType> type) Adapts the provider to another type.void
ResourceProvider.commit
(@NotNull ResolveContext<T> ctx) Commit all transient changes: create, delete and updatesboolean
ResourceProvider.copy
(@NotNull ResolveContext<T> ctx, @NotNull String srcAbsPath, @NotNull String destAbsPath) This method copies the subgraph rooted at, and including, the resource atsrcAbsPath
to the new location atdestAbsPath
and adds it as a child node of the resource atdestAbsPath
.@NotNull Resource
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.QueryLanguageProvider.findResources
(@NotNull ResolveContext<T> ctx, String query, String language) Searches for resources using the given query formulated in the given language.@Nullable Object
ResourceProvider.getAttribute
(@NotNull ResolveContext<T> ctx, @NotNull String name) Returns the value of the given resource provider attribute ornull
if the attribute is not set or not visible (as e.g.@Nullable Collection<String>
ResourceProvider.getAttributeNames
(@NotNull ResolveContext<T> ctx) Returns a collection of attribute names whose value can be retrieved calling theResourceProvider.getAttribute(ResolveContext, String)
method.@Nullable Resource
ResourceProvider.getParent
(@NotNull ResolveContext<T> ctx, @NotNull Resource child) Returns the parent resource from this resource provider ornull
if the resource provider cannot find it.abstract @Nullable Resource
ResourceProvider.getResource
(@NotNull ResolveContext<T> ctx, @NotNull String path, @NotNull ResourceContext resourceContext, @Nullable Resource parent) Returns a resource from this resource provider ornull
if the resource provider cannot find it.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) Returnstrue
if this resource provider has not been closed yet and can still be used.ResourceProvider.listChildren
(@NotNull ResolveContext<T> ctx, @NotNull Resource parent) boolean
ResourceProvider.move
(@NotNull ResolveContext<T> ctx, @NotNull String srcAbsPath, @NotNull String destAbsPath) This method moves the subgraph rooted at, and including, the resource atsrcAbsPath
to the new location atdestAbsPath
and adds it as a child node of the resource atdestAbsPath
.boolean
ResourceProvider.orderBefore
(@NotNull ResolveContext<T> ctx, @NotNull Resource parent, @NotNull String name, @Nullable String followingSiblingName) Orders the child resources returned byResourceProvider.listChildren(ResolveContext, Resource)
so that a given resource is listed before the given sibling resource.QueryLanguageProvider.queryResources
(@NotNull ResolveContext<T> ctx, String query, 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.