public class GoogleContactsActivator
extends java.lang.Object
implements org.osgi.framework.BundleActivator
Constructor and Description |
---|
GoogleContactsActivator() |
Modifier and Type | Method and Description |
---|---|
static void |
disableContactSource(GoogleContactsConnection cnx)
Disable contact source service with specified
GoogleContactsConnection.
|
static void |
disableContactSource(java.lang.String login)
Disable contact source service with specified
GoogleContactsConnection.
|
static GoogleContactsSourceService |
enableContactSource(GoogleContactsConnection cnx,
boolean googleTalk)
Enable contact source service with specified
GoogleContactsConnection.
|
static GoogleContactsSourceService |
enableContactSource(java.lang.String login,
boolean googleTalk)
Enable contact source service with specified
GoogleContactsConnection.
|
static BrowserLauncherService |
getBrowserLauncherService()
Return reference to a browser launcher service implementation.
|
static org.jitsi.service.configuration.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.
|
static GoogleContactsServiceImpl |
getGoogleContactsService()
Returns a reference to a GoogleContactsService implementation currently
registered in the bundle context or null if no such implementation was
found.
|
static PhoneNumberI18nService |
getPhoneNumberI18nService()
Returns the PhoneNumberI18nService.
|
static org.jitsi.service.resources.ResourceManagementService |
getResourceManagementService()
Returns a reference to a ResourceManagementService implementation
currently registered in the bundle context or null if no such
implementation was found.
|
void |
start(org.osgi.framework.BundleContext bundleContext)
Starts the Google Contacts service
|
void |
stop(org.osgi.framework.BundleContext bundleContext)
Stops the Google Contacts service.
|
public static org.jitsi.service.configuration.ConfigurationService getConfigService()
public static GoogleContactsServiceImpl getGoogleContactsService()
public static CredentialsStorageService getCredentialsService()
public static org.jitsi.service.resources.ResourceManagementService getResourceManagementService()
public static BrowserLauncherService getBrowserLauncherService()
public void start(org.osgi.framework.BundleContext bundleContext) throws java.lang.Exception
start
in interface org.osgi.framework.BundleActivator
bundleContext
- BundleContextjava.lang.Exception
- if something goes wrong when starting servicepublic void stop(org.osgi.framework.BundleContext bundleContext) throws java.lang.Exception
stop
in interface org.osgi.framework.BundleActivator
bundleContext
- BundleContextjava.lang.Exception
- if something goes wrong when stopping servicepublic static GoogleContactsSourceService enableContactSource(java.lang.String login, boolean googleTalk)
login
- logingoogleTalk
- if the provider service is GoogleTalkpublic static GoogleContactsSourceService enableContactSource(GoogleContactsConnection cnx, boolean googleTalk)
cnx
- GoogleContactsConnectiongoogleTalk
- if the contact source has been created as GoogleTalk
account or via external Google Contactspublic static void disableContactSource(java.lang.String login)
login
- loginpublic static void disableContactSource(GoogleContactsConnection cnx)
cnx
- GoogleContactsConnection.public static PhoneNumberI18nService getPhoneNumberI18nService()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.