Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.plugin.otr
Class OtrActivator

java.lang.Object
  extended by net.java.sip.communicator.plugin.otr.OtrActivator
All Implemented Interfaces:
EventListener, org.osgi.framework.BundleActivator, org.osgi.framework.ServiceListener

public class OtrActivator
extends Object
implements org.osgi.framework.BundleActivator, org.osgi.framework.ServiceListener

Author:
George Politis

Field Summary
static org.osgi.framework.BundleContext bundleContext
          The BundleContext of the OtrActivator.
static ConfigurationService configService
          The ConfigurationService of the OtrActivator.
static String OTR_DISABLED_PROP
          A property used in configuration to disable the otr plugin.
static ResourceManagementService resourceService
          The ResourceManagementService of the OtrActivator.
static ScOtrEngine scOtrEngine
          The ScOtrEngine of the OtrActivator.
static ScOtrKeyManager scOtrKeyManager
          The ScOtrKeyManager of the OtrActivator.
static UIService uiService
          The UIService of the OtrActivator.
 
Constructor Summary
OtrActivator()
           
 
Method Summary
static AccountID getAccountIDByUID(String uid)
          Gets an AccountID by its UID.
static List<AccountID> getAllAccountIDs()
          Gets all the available accounts in SIP Communicator.
 void serviceChanged(org.osgi.framework.ServiceEvent serviceEvent)
           
 void start(org.osgi.framework.BundleContext bc)
           
 void stop(org.osgi.framework.BundleContext bc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OTR_DISABLED_PROP

public static final String OTR_DISABLED_PROP
A property used in configuration to disable the otr plugin.

See Also:
Constant Field Values

bundleContext

public static org.osgi.framework.BundleContext bundleContext
The BundleContext of the OtrActivator.


scOtrEngine

public static ScOtrEngine scOtrEngine
The ScOtrEngine of the OtrActivator.


scOtrKeyManager

public static ScOtrKeyManager scOtrKeyManager
The ScOtrKeyManager of the OtrActivator.


resourceService

public static ResourceManagementService resourceService
The ResourceManagementService of the OtrActivator. Can also be obtained from the bundleContext on demand, but we add it here for convinience.


uiService

public static UIService uiService
The UIService of the OtrActivator. Can also be obtained from the bundleContext on demand, but we add it here for convinience.


configService

public static ConfigurationService configService
The ConfigurationService of the OtrActivator. Can also be obtained from the bundleContext on demand, but we add it here for convinience.

Constructor Detail

OtrActivator

public OtrActivator()
Method Detail

start

public void start(org.osgi.framework.BundleContext bc)
           throws Exception
Specified by:
start in interface org.osgi.framework.BundleActivator
Throws:
Exception

stop

public void stop(org.osgi.framework.BundleContext bc)
          throws Exception
Specified by:
stop in interface org.osgi.framework.BundleActivator
Throws:
Exception

serviceChanged

public void serviceChanged(org.osgi.framework.ServiceEvent serviceEvent)
Specified by:
serviceChanged in interface org.osgi.framework.ServiceListener

getAllAccountIDs

public static List<AccountID> getAllAccountIDs()
Gets all the available accounts in SIP Communicator.

Returns:
a List of AccountID.

getAccountIDByUID

public static AccountID getAccountIDByUID(String uid)
Gets an AccountID by its UID.

Parameters:
uid - The AccountID UID.
Returns:
The AccountID with the requested UID or null.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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