Class ProxyNamespaceRegistry

java.lang.Object
org.apache.sling.jcr.base.internal.mount.ProxyNamespaceRegistry
All Implemented Interfaces:
javax.jcr.NamespaceRegistry

public class ProxyNamespaceRegistry extends Object implements javax.jcr.NamespaceRegistry
  • Constructor Details

    • ProxyNamespaceRegistry

      public ProxyNamespaceRegistry(javax.jcr.NamespaceRegistry jcr, javax.jcr.NamespaceRegistry mount)
  • Method Details

    • registerNamespace

      public void registerNamespace(String prefix, String uri) throws javax.jcr.NamespaceException, javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.AccessDeniedException, javax.jcr.RepositoryException
      Specified by:
      registerNamespace in interface javax.jcr.NamespaceRegistry
      Throws:
      javax.jcr.NamespaceException
      javax.jcr.UnsupportedRepositoryOperationException
      javax.jcr.AccessDeniedException
      javax.jcr.RepositoryException
    • unregisterNamespace

      public void unregisterNamespace(String prefix) throws javax.jcr.NamespaceException, javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.AccessDeniedException, javax.jcr.RepositoryException
      Specified by:
      unregisterNamespace in interface javax.jcr.NamespaceRegistry
      Throws:
      javax.jcr.NamespaceException
      javax.jcr.UnsupportedRepositoryOperationException
      javax.jcr.AccessDeniedException
      javax.jcr.RepositoryException
    • getPrefixes

      public String[] getPrefixes() throws javax.jcr.RepositoryException
      Specified by:
      getPrefixes in interface javax.jcr.NamespaceRegistry
      Throws:
      javax.jcr.RepositoryException
    • getURIs

      public String[] getURIs() throws javax.jcr.RepositoryException
      Specified by:
      getURIs in interface javax.jcr.NamespaceRegistry
      Throws:
      javax.jcr.RepositoryException
    • getURI

      public String getURI(String prefix) throws javax.jcr.NamespaceException, javax.jcr.RepositoryException
      Specified by:
      getURI in interface javax.jcr.NamespaceRegistry
      Throws:
      javax.jcr.NamespaceException
      javax.jcr.RepositoryException
    • getPrefix

      public String getPrefix(String uri) throws javax.jcr.NamespaceException, javax.jcr.RepositoryException
      Specified by:
      getPrefix in interface javax.jcr.NamespaceRegistry
      Throws:
      javax.jcr.NamespaceException
      javax.jcr.RepositoryException