jaugment2.directory
Interface Directory

All Known Implementing Classes:
DirectoryServiceProxy

public interface Directory
extends java.rmi.Remote

Interface defining what a directory-service should look like


Inner Class Summary
static class Directory.ActionsEntry
          Helper-class to store the proxy and actions for a service;
 
Field Summary
static int LEVEL_ALL
          Search net-wide
static int LEVEL_LOCAL
          Use only local directories
static int LEVEL_LOCALNET
          Use only directories in the local network
 
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
 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)
           
 

Field Detail

LEVEL_LOCAL

public static final int LEVEL_LOCAL
Use only local directories

LEVEL_LOCALNET

public static final int LEVEL_LOCALNET
Use only directories in the local network

LEVEL_ALL

public static final int LEVEL_ALL
Search net-wide
Method Detail

simpleSearch

public javax.naming.directory.SearchResult[] simpleSearch(java.lang.String query,
                                                          int level)
                                                   throws java.rmi.RemoteException
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

list

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

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

getActionsEntries

public Directory.ActionsEntry[] getActionsEntries()
                                           throws java.rmi.RemoteException
Returns all valid actions found