Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.ldap
Class LdapServiceImpl

java.lang.Object
  extended by net.java.sip.communicator.impl.ldap.LdapServiceImpl
All Implemented Interfaces:
LdapConstants, LdapService

public class LdapServiceImpl
extends Object
implements LdapService

The LDAP service allows other modules to query an LDAP server.

Author:
Sebastien Mazy

Nested Class Summary
 
Nested classes/interfaces inherited from interface net.java.sip.communicator.service.ldap.LdapConstants
LdapConstants.Auth, LdapConstants.Encryption, LdapConstants.Scope
 
Field Summary
 
Fields inherited from interface net.java.sip.communicator.service.ldap.LdapConstants
LDAP_CONNECT_TIMEOUT, LDAP_READ_TIMEOUT
 
Constructor Summary
LdapServiceImpl()
           
 
Method Summary
 ContactSourceService createContactSource(LdapDirectory ldapDir)
          Creates a contact source corresponding to the given ldap directory.
static CertificateService getCertificateService()
          Gets the CertificateService to be used by the functionality of the addrbook plug-in.
static ConfigurationService getConfigService()
          Returns a reference to a ConfigurationService implementation currently registered in the bundle context or null if no such implementation was found.
static CredentialsStorageService getCredentialsService()
          Returns a reference to a CredentialsStorageConfigurationService implementation currently registered in the bundle context or null if no such implementation was found.
 LdapFactory getFactory()
          Required by interface LdapService.
 LdapDirectorySet getServerSet()
          Returns all the LDAP directories
 void removeContactSource(LdapDirectory ldapDir)
          Removes the contact source corresponding to the given ldap directory.
 void start(org.osgi.framework.BundleContext bc)
          Starts the service.
 void stop(org.osgi.framework.BundleContext bc)
          Stops the service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LdapServiceImpl

public LdapServiceImpl()
Method Detail

start

public void start(org.osgi.framework.BundleContext bc)
Starts the service.

Parameters:
bc - BundleContext

stop

public void stop(org.osgi.framework.BundleContext bc)
Stops the service.

Parameters:
bc - BundleContext

getConfigService

public static ConfigurationService getConfigService()
Returns a reference to a ConfigurationService implementation currently registered in the bundle context or null if no such implementation was found.

Returns:
a currently valid implementation of the ConfigurationService.

getCredentialsService

public static CredentialsStorageService getCredentialsService()
Returns a reference to a CredentialsStorageConfigurationService implementation currently registered in the bundle context or null if no such implementation was found.

Returns:
a currently valid implementation of the CredentialsStorageService.

getCertificateService

public static CertificateService getCertificateService()
Gets the CertificateService to be used by the functionality of the addrbook plug-in.

Returns:
the CertificateService to be used by the functionality of the addrbook plug-in.

getServerSet

public LdapDirectorySet getServerSet()
Returns all the LDAP directories

Specified by:
getServerSet in interface LdapService
Returns:
the LdapDirectorySet containing all the LdapDirectory(s) registered
See Also:
net.java.sip.communicator.service.ldap

getFactory

public LdapFactory getFactory()
Required by interface LdapService. Returns the LdapFactory, used to create LdapDirectory-s, LdapDirectorySettings, LdapQuery, ...

Specified by:
getFactory in interface LdapService
Returns:
the LdapFactory
See Also:
net.java.sip.communicator.service.ldap

createContactSource

public ContactSourceService createContactSource(LdapDirectory ldapDir)
Creates a contact source corresponding to the given ldap directory.

Specified by:
createContactSource in interface LdapService
Parameters:
ldapDir - the ldap directory, for which we're creating the contact source
Returns:
the created contact source service

removeContactSource

public void removeContactSource(LdapDirectory ldapDir)
Removes the contact source corresponding to the given ldap directory.

Specified by:
removeContactSource in interface LdapService
Parameters:
ldapDir - the ldap directory, which contact source we'd like to remove

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.