Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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

java.lang.Object
  extended by net.java.sip.communicator.impl.ldap.LdapActivator
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class LdapActivator
extends Object
implements org.osgi.framework.BundleActivator

Activates the LdapService

Author:
Sebastien Mazy

Constructor Summary
LdapActivator()
           
 
Method Summary
static LdapService getLdapService()
          Get LDAP service.
static PhoneNumberI18nService getPhoneNumberI18nService()
          Gets the PhoneNumberI18nService to be used by the functionality of the addrbook plug-in.
static ResourceManagementService getResourceService()
          Returns a reference to a ResourceManagementService implementation currently registered in the bundle context or null if no such implementation was found.
static ContactSourceService registerContactSource(LdapDirectory ldapDir)
          Enable contact source service with specified LDAP directory.
 void start(org.osgi.framework.BundleContext bundleContext)
          Starts the LDAP service
 void stop(org.osgi.framework.BundleContext bundleContext)
          Stops the LDAP service
static void unregisterContactSource(LdapDirectory ldapDir)
          Disable contact source service with specified LDAP directory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LdapActivator

public LdapActivator()
Method Detail

getLdapService

public static LdapService getLdapService()
Get LDAP service.

Returns:
LDAP service

start

public void start(org.osgi.framework.BundleContext bundleContext)
           throws Exception
Starts the LDAP service

Specified by:
start in interface org.osgi.framework.BundleActivator
Parameters:
bundleContext - BundleContext
Throws:
Exception - if something goes wrong when starting service

stop

public void stop(org.osgi.framework.BundleContext bundleContext)
          throws Exception
Stops the LDAP service

Specified by:
stop in interface org.osgi.framework.BundleActivator
Parameters:
bundleContext - BundleContext
Throws:
Exception - if something goes wrong when stopping service

getResourceService

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

Returns:
a currently valid implementation of the ResourceManagementService.

getPhoneNumberI18nService

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

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

registerContactSource

public static ContactSourceService registerContactSource(LdapDirectory ldapDir)
Enable contact source service with specified LDAP directory.

Parameters:
ldapDir - LDAP directory
Returns:
an LDAP ContactSourceService instance

unregisterContactSource

public static void unregisterContactSource(LdapDirectory ldapDir)
Disable contact source service with specified LDAP directory.

Parameters:
ldapDir - LDAP directory

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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