org.exoplatform.services.jcr.rmi.api.client
Class ClientNamespaceRegistry

java.lang.Object
  extended by org.exoplatform.services.jcr.rmi.api.client.ClientObject
      extended by org.exoplatform.services.jcr.rmi.api.client.ClientNamespaceRegistry
All Implemented Interfaces:
javax.jcr.NamespaceRegistry

public class ClientNamespaceRegistry
extends ClientObject
implements javax.jcr.NamespaceRegistry

Local adapter for the JCR-RMI RemoteNamespaceRegistry inteface. This class makes a remote namespace registry locally available using the JCR NamespaceRegistry interface.

See Also:
NamespaceRegistry, RemoteNamespaceRegistry

Constructor Summary
ClientNamespaceRegistry(RemoteNamespaceRegistry remote, LocalAdapterFactoryImpl factory)
          Creates a local adapter for the given remote namespace registry.
 
Method Summary
 java.lang.String getPrefix(java.lang.String uri)
          
 java.lang.String[] getPrefixes()
          
 java.lang.String getURI(java.lang.String prefix)
          
 java.lang.String[] getURIs()
          
 void registerNamespace(java.lang.String prefix, java.lang.String uri)
          
 void unregisterNamespace(java.lang.String prefix)
          
 
Methods inherited from class org.exoplatform.services.jcr.rmi.api.client.ClientObject
getFactory, getItem, getNode, getNodeTypeArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientNamespaceRegistry

public ClientNamespaceRegistry(RemoteNamespaceRegistry remote,
                               LocalAdapterFactoryImpl factory)
Creates a local adapter for the given remote namespace registry.

Parameters:
remote - remote namespace registry
factory - local adapter factory
Method Detail

registerNamespace

public void registerNamespace(java.lang.String prefix,
                              java.lang.String uri)
                       throws javax.jcr.RepositoryException

Specified by:
registerNamespace in interface javax.jcr.NamespaceRegistry
Throws:
javax.jcr.RepositoryException

unregisterNamespace

public void unregisterNamespace(java.lang.String prefix)
                         throws javax.jcr.RepositoryException

Specified by:
unregisterNamespace in interface javax.jcr.NamespaceRegistry
Throws:
javax.jcr.RepositoryException

getPrefixes

public java.lang.String[] getPrefixes()
                               throws javax.jcr.RepositoryException

Specified by:
getPrefixes in interface javax.jcr.NamespaceRegistry
Throws:
javax.jcr.RepositoryException

getURIs

public java.lang.String[] getURIs()
                           throws javax.jcr.RepositoryException

Specified by:
getURIs in interface javax.jcr.NamespaceRegistry
Throws:
javax.jcr.RepositoryException

getURI

public java.lang.String getURI(java.lang.String prefix)
                        throws javax.jcr.RepositoryException

Specified by:
getURI in interface javax.jcr.NamespaceRegistry
Throws:
javax.jcr.RepositoryException

getPrefix

public java.lang.String getPrefix(java.lang.String uri)
                           throws javax.jcr.RepositoryException

Specified by:
getPrefix in interface javax.jcr.NamespaceRegistry
Throws:
javax.jcr.RepositoryException


Copyright © 2010 eXo Platform SAS. All Rights Reserved.