|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.sling.jcr.base.NamespaceMappingSupport
public abstract class NamespaceMappingSupport
The NamespaceMappingSupport is an abstract base class for
implementing support for dynamic namespace mapping in SlingRepository
instances.
AbstractSlingRepositoryManager| Constructor Summary | |
|---|---|
NamespaceMappingSupport()
|
|
| Method Summary | |
|---|---|
protected javax.jcr.Session |
getNamespaceAwareSession(javax.jcr.Session session)
Return a namespace aware session. |
protected abstract org.apache.sling.jcr.api.NamespaceMapper[] |
getNamespaceMapperServices()
Returns the NamespaceMapper services used by the
getNamespaceAwareSession(Session) method to define custom
namespaces on sessions. |
protected void |
setup(org.osgi.framework.BundleContext bundleContext,
org.apache.sling.jcr.api.SlingRepository repository)
Sets up the namespace mapping support. |
protected void |
tearDown()
Terminates namespace mapping support. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NamespaceMappingSupport()
| Method Detail |
|---|
protected abstract org.apache.sling.jcr.api.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,
org.apache.sling.jcr.api.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 session
javax.jcr.RepositoryException - If an error occurrs making the session
namespace aware
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||