jaugment2.directory
Class DirectoryServiceProxy

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteServer
              |
              +--java.rmi.server.UnicastRemoteObject
                    |
                    +--jaugment2.directory.DirectoryServiceProxy

public class DirectoryServiceProxy
extends java.rmi.server.UnicastRemoteObject
implements net.jini.admin.Administrable, java.io.Serializable, java.rmi.Remote, Directory

a service providing access to a number of directory-service-context

See Also:
Serialized Form

Inner Class Summary
private  class DirectoryServiceProxy.MyNamingEnumeration
          helper class to convert a String[] to a NamingEnumeration
 
Inner classes inherited from class jaugment2.directory.Directory
Directory.ActionsEntry
 
Field Summary
private  ProxyACL acl
           
private  DirectoryService service
           
 
Fields inherited from class java.rmi.server.UnicastRemoteObject
csf, port, portFactoryParamTypes, portParamTypes, serialVersionUID, ssf
 
Fields inherited from class java.rmi.server.RemoteServer
log, logname, serialVersionUID
 
Fields inherited from class java.rmi.server.RemoteObject
ref, serialVersionUID
 
Fields inherited from interface jaugment2.directory.Directory
LEVEL_ALL, LEVEL_LOCAL, LEVEL_LOCALNET
 
Constructor Summary
DirectoryServiceProxy(DirectoryService s)
           
 
Method Summary
 RemoteContextIF createSubcontext(java.lang.String p0, javax.naming.directory.Attributes p1)
          Get a remote-wrapper around the named context
 Directory.ActionsEntry[] getActionsEntries()
          Returns all valid actions found
 java.lang.Object getAdmin()
          Returns an object that implements our administration-interfaces.
 javax.naming.NamingEnumeration list(javax.naming.Name p0)
          list all contexts by name
 javax.naming.NamingEnumeration list(java.lang.String p0)
          list all contexts by name
 javax.naming.directory.SearchResult[] simpleSearch(java.lang.String query, int level)
           
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
, clone, exportObject, exportObject, exportObject, exportObject, readObject, reexport, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub, writeObject
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

service

private DirectoryService service

acl

private ProxyACL acl
Constructor Detail

DirectoryServiceProxy

public DirectoryServiceProxy(DirectoryService s)
                      throws java.rmi.RemoteException
Method Detail

getAdmin

public java.lang.Object getAdmin()
                          throws java.rmi.RemoteException
Returns an object that implements our administration-interfaces.
Specified by:
getAdmin in interface net.jini.admin.Administrable
Throws:
java.rmi.RemoteException -  
See Also:
JoinAdmin

simpleSearch

public javax.naming.directory.SearchResult[] simpleSearch(java.lang.String query,
                                                          int level)
                                                   throws java.rmi.RemoteException
Specified by:
simpleSearch in interface Directory
Tags copied from interface: Directory
Parameters:
level - Searches up to level. Stops if a match is found on a level and does not search higher ones
query - an LDAP-query-string e.g. "(&(cn=myname)(mail=*))"

list

public javax.naming.NamingEnumeration list(java.lang.String p0)
                                    throws javax.naming.NamingException,
                                           java.rmi.RemoteException
list all contexts by name
Specified by:
list in interface Directory

list

public javax.naming.NamingEnumeration list(javax.naming.Name p0)
                                    throws javax.naming.NamingException,
                                           java.rmi.RemoteException
list all contexts by name
Specified by:
list in interface Directory

createSubcontext

public RemoteContextIF createSubcontext(java.lang.String p0,
                                        javax.naming.directory.Attributes p1)
                                 throws javax.naming.NamingException,
                                        java.rmi.RemoteException
Get a remote-wrapper around the named context
Specified by:
createSubcontext in interface Directory

getActionsEntries

public Directory.ActionsEntry[] getActionsEntries()
                                           throws java.rmi.RemoteException
Returns all valid actions found
Specified by:
getActionsEntries in interface Directory