|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.core.DirectoryService
public abstract class DirectoryService
Provides JNDI service to AbstractContextFactory
.
Constructor Summary | |
---|---|
DirectoryService()
|
Method Summary | |
---|---|
static java.util.Set |
getAllInstances()
Returns all instances of instantiated DirectoryService . |
abstract DirectoryServiceConfiguration |
getConfiguration()
Returns the configuration of this service. |
static DirectoryService |
getInstance()
Returns the default instance. |
static DirectoryService |
getInstance(java.lang.String instanceId)
Returns DirectoryService with the specified instance ID. |
abstract javax.naming.Context |
getJndiContext(org.apache.directory.shared.ldap.name.LdapDN principalDn,
java.lang.String principal,
byte[] credential,
java.lang.String authentication,
java.lang.String baseName)
Returns a JNDI Context with the specified authentication information
(principal, credential, and authentication) and
baseName. |
abstract javax.naming.Context |
getJndiContext(java.lang.String baseName)
Returns an anonymous JNDI Context with the specified baseName |
abstract boolean |
isStarted()
Returns true if this service is started. |
abstract void |
shutdown()
Shuts down this service. |
abstract void |
startup(DirectoryServiceListener listener,
java.util.Hashtable environment)
Starts up this service. |
abstract void |
sync()
Calls Partition.sync() for all registered Partition s. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DirectoryService()
Method Detail |
---|
public static DirectoryService getInstance()
public static DirectoryService getInstance(java.lang.String instanceId)
DirectoryService
with the specified instance ID.
public static java.util.Set getAllInstances()
DirectoryService
.
public abstract void startup(DirectoryServiceListener listener, java.util.Hashtable environment) throws javax.naming.NamingException
listener
- a listener that listens to the lifecycle of this serviceenvironment
- JNDI InitialContext
environment
javax.naming.NamingException
- if failed to start uppublic abstract void shutdown() throws javax.naming.NamingException
javax.naming.NamingException
- if failed to shut downpublic abstract void sync() throws javax.naming.NamingException
Partition.sync()
for all registered Partition
s.
javax.naming.NamingException
- if synchronization failedpublic abstract boolean isStarted()
public abstract DirectoryServiceConfiguration getConfiguration()
public abstract javax.naming.Context getJndiContext(java.lang.String baseName) throws javax.naming.NamingException
Context
with the specified baseName
javax.naming.NamingException
- if failed to create a contextpublic abstract javax.naming.Context getJndiContext(org.apache.directory.shared.ldap.name.LdapDN principalDn, java.lang.String principal, byte[] credential, java.lang.String authentication, java.lang.String baseName) throws javax.naming.NamingException
Context
with the specified authentication information
(principal, credential, and authentication) and
baseName.
principal
- Context.SECURITY_PRINCIPAL
valuecredential
- Context.SECURITY_CREDENTIALS
valueauthentication
- Context.SECURITY_AUTHENTICATION
value
javax.naming.NamingException
- if failed to create a context
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |