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.voidResourceProvider.commit(@NotNull ResolveContext<T> ctx) Commit all transient changes: create, delete and updatesbooleanResourceProvider.copy(@NotNull ResolveContext<T> ctx, @NotNull String srcAbsPath, @NotNull String destAbsPath) This method copies the subgraph rooted at, and including, the resource atsrcAbsPathto the new location atdestAbsPathand adds it as a child node of the resource atdestAbsPath.@NotNull ResourceCreate a new resource at the given path.voidResourceProvider.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 ObjectResourceProvider.getAttribute(@NotNull ResolveContext<T> ctx, @NotNull String name) Returns the value of the given resource provider attribute ornullif 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 ResourceResourceProvider.getParent(@NotNull ResolveContext<T> ctx, @NotNull Resource child) Returns the parent resource from this resource provider ornullif the resource provider cannot find it.abstract @Nullable ResourceResourceProvider.getResource(@NotNull ResolveContext<T> ctx, @NotNull String path, @NotNull ResourceContext resourceContext, @Nullable Resource parent) Returns a resource from this resource provider ornullif the resource provider cannot find it.String[]QueryLanguageProvider.getSupportedLanguages(@NotNull ResolveContext<T> ctx) The supported languages of the resource provider.booleanResourceProvider.hasChanges(@NotNull ResolveContext<T> ctx) Are there any transient changes?booleanResourceProvider.isLive(@NotNull ResolveContext<T> ctx) Returnstrueif this resource provider has not been closed yet and can still be used.ResourceProvider.listChildren(@NotNull ResolveContext<T> ctx, @NotNull Resource parent) booleanResourceProvider.move(@NotNull ResolveContext<T> ctx, @NotNull String srcAbsPath, @NotNull String destAbsPath) This method moves the subgraph rooted at, and including, the resource atsrcAbsPathto the new location atdestAbsPathand adds it as a child node of the resource atdestAbsPath.booleanResourceProvider.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.voidResourceProvider.refresh(@NotNull ResolveContext<T> ctx) The provider is updated to reflect the latest state.voidResourceProvider.revert(@NotNull ResolveContext<T> ctx) Revert all transient changes: create, delete and updates.