|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.sling.jcr.resource.internal.JcrResourceResolverFactoryImpl
public class JcrResourceResolverFactoryImpl
The JcrResourceResolverFactoryImpl
is the
JcrResourceResolverFactory
service providing the following
functionality:
JcrResourceResolverFactory
service
Nested Class Summary | |
---|---|
static class |
JcrResourceResolverFactoryImpl.ResourcePattern
|
Field Summary | |
---|---|
static String |
ALL_WORKSPACES
Special value which, if passed to listener.workspaces, will have resource events fired for all workspaces. |
static String |
PROP_PATH
|
Fields inherited from interface org.apache.sling.api.resource.ResourceResolverFactory |
---|
PASSWORD, USER, USER_IMPERSONATION |
Constructor Summary | |
---|---|
JcrResourceResolverFactoryImpl()
|
Method Summary | |
---|---|
protected void |
activate(org.osgi.service.component.ComponentContext componentContext)
Activates this component, called by SCR before registering as a service |
protected void |
bindResourceDecorator(ResourceDecorator decorator,
Map<String,Object> props)
|
protected void |
bindResourceProvider(ResourceProvider provider,
Map<String,Object> props)
|
protected void |
deactivate(org.osgi.service.component.ComponentContext componentContext)
Deativates this component, called by SCR to take out of service |
ResourceResolver |
getAdministrativeResourceResolver(Map<String,Object> authenticationInfo)
Returns a new ResourceResolver instance with administrative
privileges with further configuration taken from the given
authenticationInfo map. |
Mapping[] |
getMappings()
|
String |
getMapRoot()
|
protected SlingRepository |
getRepository()
Returns the JCR repository used by this factory |
ResourceDecoratorTracker |
getResourceDecoratorTracker()
|
ResourceResolver |
getResourceResolver(Map<String,Object> authenticationInfo)
Returns a new ResourceResolver instance with further
configuration taken from the given authenticationInfo map. |
ResourceResolver |
getResourceResolver(javax.jcr.Session session)
Returns a new ResourceResolve for the given session. |
protected ResourceProviderEntry |
getRootProviderEntry()
Getter for rootProviderEntry, making it easier to extend JcrResourceResolverFactoryImpl. |
org.apache.commons.collections.BidiMap |
getVirtualURLMap()
|
protected void |
unbindResourceDecorator(ResourceDecorator decorator,
Map<String,Object> props)
|
protected void |
unbindResourceProvider(ResourceProvider provider,
Map<String,Object> props)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ALL_WORKSPACES
public static final String PROP_PATH
Constructor Detail |
---|
public JcrResourceResolverFactoryImpl()
Method Detail |
---|
public ResourceDecoratorTracker getResourceDecoratorTracker()
public ResourceResolver getResourceResolver(javax.jcr.Session session)
ResourceResolve
for the given session. Note
that each call to this method returns a new resource manager instance.
getResourceResolver
in interface JcrResourceResolverFactory
session
- The JCR Session
used by the created resource
manager to access the repository.JcrResourceResolverFactory.getResourceResolver(javax.jcr.Session)
public ResourceResolver getAdministrativeResourceResolver(Map<String,Object> authenticationInfo) throws LoginException
ResourceResolverFactory
ResourceResolver
instance with administrative
privileges with further configuration taken from the given
authenticationInfo
map.
Note, that if the authenticationInfo
map contains the
ResourceResolverFactory.USER_IMPERSONATION
attribute the ResourceResolver
returned will only have administrative privileges if the user identified
by the property has administrative privileges.
getAdministrativeResourceResolver
in interface ResourceResolverFactory
authenticationInfo
- A map of further credential information which
may be used by the implementation to parametrize how the
resource resolver is created. This may be null
.
ResourceResolver
with administrative privileges unless
the ResourceResolverFactory.USER_IMPERSONATION
was set in the
authenticationInfo
.
LoginException
- If an error occurrs creating the new
ResourceResolver
with the provided credential
data.ResourceResolverFactory.getAdministrativeResourceResolver(java.util.Map)
public ResourceResolver getResourceResolver(Map<String,Object> authenticationInfo) throws LoginException
ResourceResolverFactory
ResourceResolver
instance with further
configuration taken from the given authenticationInfo
map.
Generally this map will contain a user name and password to authenticate.
If the authenticationInfo
map is null
the
ResourceResolver
returned will generally not be
authenticated and only provide minimal privileges, if any at all.
getResourceResolver
in interface ResourceResolverFactory
authenticationInfo
- A map of further credential information which
may be used by the implementation to parametrize how the
resource resolver is created. This may be null
.
ResourceResolver
according to the
authenticationInfo
.
LoginException
- If an error occurrs creating the new
ResourceResolver
with the provided credential
data.ResourceResolverFactory.getResourceResolver(java.util.Map)
public org.apache.commons.collections.BidiMap getVirtualURLMap()
public Mapping[] getMappings()
public String getMapRoot()
protected ResourceProviderEntry getRootProviderEntry()
protected void activate(org.osgi.service.component.ComponentContext componentContext)
protected void deactivate(org.osgi.service.component.ComponentContext componentContext)
protected void bindResourceProvider(ResourceProvider provider, Map<String,Object> props)
protected void unbindResourceProvider(ResourceProvider provider, Map<String,Object> props)
protected void bindResourceDecorator(ResourceDecorator decorator, Map<String,Object> props)
protected void unbindResourceDecorator(ResourceDecorator decorator, Map<String,Object> props)
protected SlingRepository getRepository()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |