@Deprecated @ProviderType public abstract class NamespaceMappingSupport extends Object
NamespaceMappingSupport
is an abstract base class for
implementing support for dynamic namespace mapping in SlingRepository
instances.AbstractSlingRepositoryManager
Constructor and Description |
---|
NamespaceMappingSupport()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected javax.jcr.Session |
getNamespaceAwareSession(javax.jcr.Session session)
Deprecated.
Return a namespace aware session.
|
protected abstract NamespaceMapper[] |
getNamespaceMapperServices()
Deprecated.
Returns the
NamespaceMapper services used by the
getNamespaceAwareSession(Session) method to define custom
namespaces on sessions. |
protected void |
setup(org.osgi.framework.BundleContext bundleContext,
SlingRepository repository)
Deprecated.
Sets up the namespace mapping support.
|
protected void |
tearDown()
Deprecated.
Terminates namespace mapping support.
|
protected abstract NamespaceMapper[] getNamespaceMapperServices()
NamespaceMapper
services used by the
getNamespaceAwareSession(Session)
method to define custom
namespaces on sessions.NamespaceMapper
services or null
if there are
none.protected void setup(org.osgi.framework.BundleContext bundleContext, SlingRepository repository)
This method may be overwritten but must be called from overwriting methods.
bundleContext
- The OSGi BundleContext
to access the
framework for namespacing setuprepository
- The SlingRepository
to register namespaces onprotected void tearDown()
This method may be overwritten but must be called from overwriting methods.
protected final javax.jcr.Session getNamespaceAwareSession(javax.jcr.Session session) throws javax.jcr.RepositoryException
This method must be called for each JCR Session
to be returned
from any of the repository login
methods which are expected to
support dynamically mapped namespaces.
session
- The session convert into a namespace aware sessionjavax.jcr.RepositoryException
- If an error occurrs making the session
namespace awareCopyright © 2015 The Apache Software Foundation. All rights reserved.