public class JcrResourceProvider
extends org.apache.sling.spi.resource.provider.ResourceProvider<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState>
AUTH_ADMIN, AUTH_CLONE, AUTH_SERVICE_BUNDLE, AUTHENTICATE_LAZY, AUTHENTICATE_NO, AUTHENTICATE_REQUIRED, PROPERTY_ADAPTABLE, PROPERTY_ATTRIBUTABLE, PROPERTY_AUTHENTICATE, PROPERTY_MODIFIABLE, PROPERTY_NAME, PROPERTY_REFRESHABLE, PROPERTY_ROOT, PROPERTY_USE_RESOURCE_ACCESS_SECURITY, RESOURCE_TYPE_SYNTHETIC| Constructor and Description |
|---|
JcrResourceProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate(org.osgi.service.component.ComponentContext context) |
<AdapterType> |
adaptTo(@NotNull org.apache.sling.spi.resource.provider.ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx,
@NotNull Class<AdapterType> type) |
@NotNull org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState |
authenticate(@NotNull Map<String,Object> authenticationInfo)
Create a new ResourceResolver wrapping a Session object.
|
protected void |
bindDynamicClassLoaderManager(org.apache.sling.commons.classloader.DynamicClassLoaderManager dynamicClassLoaderManager) |
void |
commit(@NotNull org.apache.sling.spi.resource.provider.ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx) |
boolean |
copy(@NotNull org.apache.sling.spi.resource.provider.ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx,
String srcAbsPath,
String destAbsPath) |
org.apache.sling.api.resource.Resource |
create(@NotNull org.apache.sling.spi.resource.provider.ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx,
String path,
Map<String,Object> properties) |
protected void |
deactivate() |
void |
delete(@NotNull org.apache.sling.spi.resource.provider.ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx,
@NotNull org.apache.sling.api.resource.Resource resource) |
Object |
getAttribute(@NotNull org.apache.sling.spi.resource.provider.ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx,
@NotNull String name) |
Collection<String> |
getAttributeNames(@NotNull org.apache.sling.spi.resource.provider.ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx) |
@Nullable org.apache.sling.api.resource.Resource |
getParent(@NotNull org.apache.sling.spi.resource.provider.ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx,
@NotNull org.apache.sling.api.resource.Resource child) |
@Nullable org.apache.sling.spi.resource.provider.QueryLanguageProvider<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> |
getQueryLanguageProvider() |
org.apache.sling.api.resource.Resource |
getResource(org.apache.sling.spi.resource.provider.ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx,
String path,
org.apache.sling.spi.resource.provider.ResourceContext rCtx,
org.apache.sling.api.resource.Resource parent) |
boolean |
hasChanges(@NotNull org.apache.sling.spi.resource.provider.ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx) |
boolean |
isLive(@NotNull org.apache.sling.spi.resource.provider.ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx) |
Iterator<org.apache.sling.api.resource.Resource> |
listChildren(org.apache.sling.spi.resource.provider.ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx,
org.apache.sling.api.resource.Resource parent) |
void |
logout(@NotNull org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState state) |
boolean |
move(@NotNull org.apache.sling.spi.resource.provider.ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx,
String srcAbsPath,
String destAbsPath) |
void |
refresh(@NotNull org.apache.sling.spi.resource.provider.ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx) |
void |
revert(@NotNull org.apache.sling.spi.resource.provider.ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx) |
void |
start(org.apache.sling.spi.resource.provider.ProviderContext ctx) |
void |
stop() |
protected void |
unbindDynamicClassLoaderManager(org.apache.sling.commons.classloader.DynamicClassLoaderManager dynamicClassLoaderManager) |
void |
update(long changeSet) |
protected void activate(org.osgi.service.component.ComponentContext context)
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionprotected void deactivate()
protected void bindDynamicClassLoaderManager(org.apache.sling.commons.classloader.DynamicClassLoaderManager dynamicClassLoaderManager)
protected void unbindDynamicClassLoaderManager(org.apache.sling.commons.classloader.DynamicClassLoaderManager dynamicClassLoaderManager)
public void start(org.apache.sling.spi.resource.provider.ProviderContext ctx)
start in class org.apache.sling.spi.resource.provider.ResourceProvider<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState>public void stop()
stop in class org.apache.sling.spi.resource.provider.ResourceProvider<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState>public void update(long changeSet)
update in class org.apache.sling.spi.resource.provider.ResourceProvider<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState>@NotNull
public @NotNull org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState authenticate(@NotNull
@NotNull Map<String,Object> authenticationInfo)
throws org.apache.sling.api.resource.LoginException
authenticate in class org.apache.sling.spi.resource.provider.ResourceProvider<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState>org.apache.sling.api.resource.LoginExceptionpublic void logout(@NotNull
@NotNull org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState state)
logout in class org.apache.sling.spi.resource.provider.ResourceProvider<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState>public boolean isLive(@NotNull
@NotNull org.apache.sling.spi.resource.provider.ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx)
isLive in class org.apache.sling.spi.resource.provider.ResourceProvider<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState>public org.apache.sling.api.resource.Resource getResource(org.apache.sling.spi.resource.provider.ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx,
String path,
org.apache.sling.spi.resource.provider.ResourceContext rCtx,
org.apache.sling.api.resource.Resource parent)
getResource in class org.apache.sling.spi.resource.provider.ResourceProvider<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState>public Iterator<org.apache.sling.api.resource.Resource> listChildren(org.apache.sling.spi.resource.provider.ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx, org.apache.sling.api.resource.Resource parent)
listChildren in class org.apache.sling.spi.resource.provider.ResourceProvider<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState>@Nullable
public @Nullable org.apache.sling.api.resource.Resource getParent(@NotNull
@NotNull org.apache.sling.spi.resource.provider.ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx,
@NotNull
@NotNull org.apache.sling.api.resource.Resource child)
getParent in class org.apache.sling.spi.resource.provider.ResourceProvider<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState>public Collection<String> getAttributeNames(@NotNull @NotNull org.apache.sling.spi.resource.provider.ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx)
getAttributeNames in class org.apache.sling.spi.resource.provider.ResourceProvider<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState>public Object getAttribute(@NotNull @NotNull org.apache.sling.spi.resource.provider.ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx, @NotNull @NotNull String name)
getAttribute in class org.apache.sling.spi.resource.provider.ResourceProvider<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState>public org.apache.sling.api.resource.Resource create(@NotNull
@NotNull org.apache.sling.spi.resource.provider.ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx,
String path,
Map<String,Object> properties)
throws org.apache.sling.api.resource.PersistenceException
create in class org.apache.sling.spi.resource.provider.ResourceProvider<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState>org.apache.sling.api.resource.PersistenceExceptionpublic void delete(@NotNull
@NotNull org.apache.sling.spi.resource.provider.ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx,
@NotNull
@NotNull org.apache.sling.api.resource.Resource resource)
throws org.apache.sling.api.resource.PersistenceException
delete in class org.apache.sling.spi.resource.provider.ResourceProvider<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState>org.apache.sling.api.resource.PersistenceExceptionpublic void revert(@NotNull
@NotNull org.apache.sling.spi.resource.provider.ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx)
revert in class org.apache.sling.spi.resource.provider.ResourceProvider<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState>public void commit(@NotNull
@NotNull org.apache.sling.spi.resource.provider.ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx)
throws org.apache.sling.api.resource.PersistenceException
commit in class org.apache.sling.spi.resource.provider.ResourceProvider<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState>org.apache.sling.api.resource.PersistenceExceptionpublic boolean hasChanges(@NotNull
@NotNull org.apache.sling.spi.resource.provider.ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx)
hasChanges in class org.apache.sling.spi.resource.provider.ResourceProvider<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState>public void refresh(@NotNull
@NotNull org.apache.sling.spi.resource.provider.ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx)
refresh in class org.apache.sling.spi.resource.provider.ResourceProvider<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState>@Nullable
public <AdapterType> AdapterType adaptTo(@NotNull
@NotNull org.apache.sling.spi.resource.provider.ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx,
@NotNull
@NotNull Class<AdapterType> type)
adaptTo in class org.apache.sling.spi.resource.provider.ResourceProvider<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState>public boolean copy(@NotNull
@NotNull org.apache.sling.spi.resource.provider.ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx,
String srcAbsPath,
String destAbsPath)
throws org.apache.sling.api.resource.PersistenceException
copy in class org.apache.sling.spi.resource.provider.ResourceProvider<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState>org.apache.sling.api.resource.PersistenceExceptionpublic boolean move(@NotNull
@NotNull org.apache.sling.spi.resource.provider.ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx,
String srcAbsPath,
String destAbsPath)
throws org.apache.sling.api.resource.PersistenceException
move in class org.apache.sling.spi.resource.provider.ResourceProvider<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState>org.apache.sling.api.resource.PersistenceException@Nullable public @Nullable org.apache.sling.spi.resource.provider.QueryLanguageProvider<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> getQueryLanguageProvider()
getQueryLanguageProvider in class org.apache.sling.spi.resource.provider.ResourceProvider<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState>Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.