|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@NotExtensible @ThreadSafety(level=INTERFACE_THREADSAFE) public interface DirectoryServerContext
This interface may be used to obtain information about the Directory Server (or related product) in which an extension is running.
Method Summary | |
---|---|
void |
deregisterBackendInitializationListener(RegisteredBackendInitializationListener listener)
Deregisters the provided backend initialization listener with the server. |
BackendContext[] |
getAllBackends()
Returns an array of all the backends defined in the Directory Server. |
BackendContext |
getBackendForEntry(java.lang.String dn)
Returns the BackendContext for the backend which should handle the
specified entry, or null if there is no backend that handles this entry. |
RegisteredBackendInitializationListener |
registerBackendInitializationListener(BackendInitializationListener listener)
Registers the provided backend initialization listener with the server so that it may be notified of any backends coming online or going offline. |
Method Detail |
---|
BackendContext[] getAllBackends()
BackendContext
objects. This will never
be null.BackendContext getBackendForEntry(java.lang.String dn) throws LDAPException
BackendContext
for the backend which should handle the
specified entry, or null if there is no backend that handles this entry.
Note that the entry does not need to exist. If a BackendContext is
returned, it will return true for
BackendContext.handlesEntry(String)
when given the specified DN.
dn
- The DN for which to make the determination. It must not be
null
.
BackendContext
for the given entry, or null if no such
backend exists.
LDAPException
- If the provided string cannot be parsed as a valid
DN or if a problem is encountered while attempting
to retrieve the BackendContext.RegisteredBackendInitializationListener registerBackendInitializationListener(BackendInitializationListener listener)
listener
- The backend initialization listener to be registered
with the server. It must not be null
.
void deregisterBackendInitializationListener(RegisteredBackendInitializationListener listener)
listener
- The listener to be deregistered. It must not be
null
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |