public class AccountUtils
extends java.lang.Object
Constructor and Description |
---|
AccountUtils() |
Modifier and Type | Method and Description |
---|---|
static AccountID |
getAccountForID(java.lang.String accountID)
Return the AccountID corresponding to the given string account
identifier.
|
static java.util.List<ProtocolProviderService> |
getOpSetRegisteredProviders(java.lang.Class<? extends OperationSet> opSet,
ProtocolProviderService preferredProvider,
java.lang.String preferredProtocolName)
Returns a list of all registered protocol providers that could be used
for the operation given by the operation set.
|
static ProtocolProviderFactory |
getProtocolProviderFactory(ProtocolProviderService protocolProvider)
Returns a ProtocolProviderFactory for a given protocol
provider.
|
static ProtocolProviderFactory |
getProtocolProviderFactory(java.lang.String protocolName)
Returns a ProtocolProviderFactory for a given protocol
provider.
|
static ProtocolProviderService |
getRegisteredProviderForAccount(AccountID accountID)
Returns the ProtocolProviderService corresponding to the given
account identifier that is registered in the given factory
|
static java.util.Collection<ProtocolProviderService> |
getRegisteredProviders()
Returns all registered protocol providers.
|
static java.util.List<ProtocolProviderService> |
getRegisteredProviders(java.lang.Class<? extends OperationSet> opSetClass)
Returns a list of all currently registered providers, which support the
given operationSetClass.
|
static java.util.List<ProtocolProviderService> |
getRegisteredProviders(java.lang.String protocolName,
java.lang.Class<? extends OperationSet> opSetClass)
Returns a list of all currently registered telephony providers for the
given protocol name.
|
static java.util.Collection<AccountID> |
getStoredAccounts()
Returns an iterator over a list of all stored AccountID-s.
|
public static java.util.Collection<AccountID> getStoredAccounts()
public static AccountID getAccountForID(java.lang.String accountID)
accountID
- the account identifier stringpublic static java.util.List<ProtocolProviderService> getRegisteredProviders(java.lang.Class<? extends OperationSet> opSetClass)
opSetClass
- the operation set class for which we're looking
for providerspublic static java.util.List<ProtocolProviderService> getRegisteredProviders(java.lang.String protocolName, java.lang.Class<? extends OperationSet> opSetClass)
protocolName
- the protocol nameopSetClass
- the operation set class for which we're looking for
providerspublic static java.util.List<ProtocolProviderService> getOpSetRegisteredProviders(java.lang.Class<? extends OperationSet> opSet, ProtocolProviderService preferredProvider, java.lang.String preferredProtocolName)
opSet
- preferredProvider
- preferredProtocolName
- public static ProtocolProviderService getRegisteredProviderForAccount(AccountID accountID)
accountID
- the identifier of the accountpublic static ProtocolProviderFactory getProtocolProviderFactory(ProtocolProviderService protocolProvider)
protocolProvider
- the ProtocolProviderService, which
factory we're looking forpublic static ProtocolProviderFactory getProtocolProviderFactory(java.lang.String protocolName)
protocolName
- the name of the protocolpublic static java.util.Collection<ProtocolProviderService> getRegisteredProviders()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.