Uses of Interface
org.apache.sling.spi.resource.provider.ResolveContext
Package
Description
-
Uses of ResolveContext in org.apache.sling.jackrabbit.usermanager.impl.resource
Modifier and TypeMethodDescriptionAuthorizableResourceProvider.getResource
(ResolveContext<Object> ctx, String path, ResourceContext resourceContext, Resource parent) AuthorizableResourceProvider.listChildren
(ResolveContext<Object> ctx, Resource parent) protected <T> T
AuthorizableResourceProvider.maybeDoAuthorizableWork
(@NotNull ResolveContext<Object> ctx, @NotNull String path, @NotNull AuthorizableResourceProvider.AuthorizableWorker<T> authorizableWorker, @Nullable AuthorizableResourceProvider.PrincipalWorker<T> principalWorker) If the path resolves to a user or group (with optional relPath suffix) then invoke the worker to do some work. -
Uses of ResolveContext in org.apache.sling.jcr.resource.internal.helper.jcr
Modifier and TypeMethodDescription<AdapterType>
AdapterTypeJcrResourceProvider.adaptTo
(@NotNull ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx, @NotNull Class<AdapterType> type) void
JcrResourceProvider.commit
(@NotNull ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx) boolean
JcrResourceProvider.copy
(@NotNull ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx, @NotNull String srcAbsPath, @NotNull String destAbsPath) @NotNull Resource
JcrResourceProvider.create
(@NotNull ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx, @Nullable String path, @Nullable Map<String, Object> properties) void
JcrResourceProvider.delete
(@NotNull ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx, @NotNull Resource resource) BasicQueryLanguageProvider.findResources
(@NotNull ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx, String query, String language) @Nullable Object
JcrResourceProvider.getAttribute
(@NotNull ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx, @NotNull String name) @NotNull Collection<String>
JcrResourceProvider.getAttributeNames
(@NotNull ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx) protected static @Nullable String
JcrResourceProvider.getNodeType
(@Nullable Map<String, Object> properties, @NotNull ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx) @Nullable Resource
JcrResourceProvider.getParent
(@NotNull ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx, @NotNull Resource child) @Nullable Resource
JcrResourceProvider.getResource
(@NotNull ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx, @NotNull String path, @NotNull ResourceContext rCtx, @Nullable Resource parent) String[]
BasicQueryLanguageProvider.getSupportedLanguages
(@NotNull ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx) boolean
JcrResourceProvider.hasChanges
(@NotNull ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx) boolean
JcrResourceProvider.isLive
(@NotNull ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx) JcrResourceProvider.listChildren
(@NotNull ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx, @NotNull Resource parent) boolean
JcrResourceProvider.move
(@NotNull ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx, @NotNull String srcAbsPath, @NotNull String destAbsPath) boolean
JcrResourceProvider.orderBefore
(@NotNull ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx, @NotNull Resource parent, @NotNull String name, @Nullable String followingSiblingName) BasicQueryLanguageProvider.queryResources
(@NotNull ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx, String query, String language) void
JcrResourceProvider.refresh
(@NotNull ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx) void
JcrResourceProvider.revert
(@NotNull ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx) -
Uses of ResolveContext in org.apache.sling.resourceresolver.impl.legacy
Modifier and TypeMethodDescription<AdapterType>
AdapterTypeLegacyResourceProviderAdapter.adaptTo
(@NotNull ResolveContext<Object> ctx, @NotNull Class<AdapterType> type) <AdapterType>
AdapterTypeLegacyResourceProviderFactoryAdapter.adaptTo
(@NotNull ResolveContext<LegacyResourceProviderAdapter> ctx, @NotNull Class<AdapterType> type) void
LegacyResourceProviderAdapter.commit
(@NotNull ResolveContext<Object> ctx) void
LegacyResourceProviderFactoryAdapter.commit
(@NotNull ResolveContext<LegacyResourceProviderAdapter> ctx) LegacyResourceProviderAdapter.create
(@NotNull ResolveContext<Object> ctx, String path, Map<String, Object> properties) LegacyResourceProviderFactoryAdapter.create
(@NotNull ResolveContext<LegacyResourceProviderAdapter> ctx, String path, Map<String, Object> properties) void
LegacyResourceProviderAdapter.delete
(@NotNull ResolveContext<Object> ctx, @NotNull Resource resource) void
LegacyResourceProviderFactoryAdapter.delete
(@NotNull ResolveContext<LegacyResourceProviderAdapter> ctx, @NotNull Resource resource) LegacyResourceProviderAdapter.getAttribute
(@NotNull ResolveContext<Object> ctx, @NotNull String name) LegacyResourceProviderFactoryAdapter.getAttribute
(@NotNull ResolveContext<LegacyResourceProviderAdapter> ctx, @NotNull String name) LegacyResourceProviderAdapter.getAttributeNames
(@NotNull ResolveContext<Object> ctx) LegacyResourceProviderFactoryAdapter.getAttributeNames
(@NotNull ResolveContext<LegacyResourceProviderAdapter> ctx) LegacyResourceProviderAdapter.getResource
(ResolveContext<Object> ctx, String path, ResourceContext resourceContext, Resource parent) LegacyResourceProviderFactoryAdapter.getResource
(ResolveContext<LegacyResourceProviderAdapter> ctx, String path, ResourceContext resourceContext, Resource parent) boolean
LegacyResourceProviderAdapter.hasChanges
(@NotNull ResolveContext<Object> ctx) boolean
LegacyResourceProviderFactoryAdapter.hasChanges
(@NotNull ResolveContext<LegacyResourceProviderAdapter> ctx) boolean
LegacyResourceProviderAdapter.isLive
(@NotNull ResolveContext<Object> ctx) boolean
LegacyResourceProviderFactoryAdapter.isLive
(@NotNull ResolveContext<LegacyResourceProviderAdapter> ctx) LegacyResourceProviderAdapter.listChildren
(ResolveContext<Object> ctx, Resource parent) LegacyResourceProviderFactoryAdapter.listChildren
(ResolveContext<LegacyResourceProviderAdapter> ctx, Resource parent) void
LegacyResourceProviderAdapter.refresh
(@NotNull ResolveContext<Object> ctx) void
LegacyResourceProviderFactoryAdapter.refresh
(@NotNull ResolveContext<LegacyResourceProviderAdapter> ctx) void
LegacyResourceProviderAdapter.revert
(@NotNull ResolveContext<Object> ctx) void
LegacyResourceProviderFactoryAdapter.revert
(@NotNull ResolveContext<LegacyResourceProviderAdapter> ctx) -
Uses of ResolveContext in org.apache.sling.resourceresolver.impl.providers.stateful
Modifier and TypeClassDescriptionclass
Resolve context implementation for a resource provider.Modifier and TypeMethodDescription@Nullable ResolveContext<Object>
ProviderManager.getOrCreateResolveContext
(@NotNull ResourceProviderHandler handler, @NotNull ResourceResolverControl control) Get the contextBasicResolveContext.getParentResolveContext()
@NotNull ResolveContext<Object>
AuthenticatedResourceProvider.getResolveContext()
Get the resolve context.ModifierConstructorDescriptionAuthenticatedResourceProvider
(@NotNull ResourceProviderHandler providerHandler, boolean useRAS, @NotNull ResolveContext<Object> resolveContext, @NotNull org.apache.sling.resourceresolver.impl.ResourceAccessSecurityTracker tracker) Constructor -
Uses of ResolveContext in org.apache.sling.servlets.resolver.internal.resource
Modifier and TypeMethodDescription@Nullable Resource
MergingServletResourceProvider.getResource
(@NotNull ResolveContext<Object> resolveContext, @NotNull String s, @NotNull ResourceContext resourceContext, @Nullable Resource resource) MergingServletResourceProvider.getResource
(ResolveContext resolveContext, String path) ServletResourceProvider.getResource
(ResolveContext<Object> ctx, String path, ResourceContext resourceContext, Resource parent) MergingServletResourceProvider.listChildren
(ResolveContext ctx, Resource parent) ServletResourceProvider.listChildren
(ResolveContext<Object> ctx, Resource parent) -
Uses of ResolveContext in org.apache.sling.spi.resource.provider
Modifier and TypeMethodDescription@Nullable ResolveContext<?>
ResolveContext.getParentResolveContext()
Return a resolve context for the parent resource provider.Modifier 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. security sensitive attributes).@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.