public class JcrResourceProvider
extends org.apache.sling.spi.resource.provider.ResourceProvider<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState>
AUTH_ADMIN, 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(org.apache.sling.spi.resource.provider.ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx,
Class<AdapterType> type) |
org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState |
authenticate(Map<String,Object> authenticationInfo)
Create a new ResourceResolver wrapping a Session object.
|
protected void |
bindDynamicClassLoaderManager(org.apache.sling.commons.classloader.DynamicClassLoaderManager dynamicClassLoaderManager) |
void |
commit(org.apache.sling.spi.resource.provider.ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx) |
boolean |
copy(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(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(org.apache.sling.spi.resource.provider.ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx,
org.apache.sling.api.resource.Resource resource) |
Object |
getAttribute(org.apache.sling.spi.resource.provider.ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx,
String name) |
Collection<String> |
getAttributeNames(org.apache.sling.spi.resource.provider.ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx) |
org.apache.sling.api.resource.Resource |
getParent(org.apache.sling.spi.resource.provider.ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx,
org.apache.sling.api.resource.Resource child) |
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(org.apache.sling.spi.resource.provider.ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx) |
boolean |
isLive(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(org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState state) |
boolean |
move(org.apache.sling.spi.resource.provider.ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx,
String srcAbsPath,
String destAbsPath) |
void |
refresh(org.apache.sling.spi.resource.provider.ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx) |
void |
revert(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>@Nonnull public org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState authenticate(@Nonnull 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(@Nonnull 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(@Nonnull 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>@CheckForNull public org.apache.sling.api.resource.Resource getParent(@Nonnull org.apache.sling.spi.resource.provider.ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx, @Nonnull 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(@Nonnull 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(@Nonnull org.apache.sling.spi.resource.provider.ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx, @Nonnull 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(@Nonnull 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(@Nonnull org.apache.sling.spi.resource.provider.ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx, @Nonnull 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(@Nonnull 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(@Nonnull 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(@Nonnull 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(@Nonnull 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>@CheckForNull public <AdapterType> AdapterType adaptTo(@Nonnull org.apache.sling.spi.resource.provider.ResolveContext<org.apache.sling.jcr.resource.internal.helper.jcr.JcrProviderState> ctx, @Nonnull 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(@Nonnull 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(@Nonnull 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@CheckForNull public 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–2018 The Apache Software Foundation. All rights reserved.