|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.service.protocol.AccountManager
public class AccountManager
Represents an implementation of AccountManager which loads the accounts in a separate thread.
| Constructor Summary | |
|---|---|
AccountManager(org.osgi.framework.BundleContext bundleContext)
Initializes a new AccountManagerImpl instance loaded in a specific BundleContext (in which the caller will usually later register it). |
|
| Method Summary | |
|---|---|
void |
addListener(AccountManagerListener listener)
Implements AccountManager#addListener(AccountManagerListener). |
Collection<AccountID> |
getStoredAccounts()
Returns an Iterator over a list of all stored AccountIDs. |
boolean |
hasStoredAccounts(String protocolName,
boolean includeHidden)
|
boolean |
isAccountLoaded(AccountID accountID)
Checks if the account corresponding to the given accountID is loaded. |
void |
loadAccount(AccountID accountID)
Loads the account corresponding to the given AccountID. |
void |
removeListener(AccountManagerListener listener)
Implements AccountManager#removeListener(AccountManagerListener). |
boolean |
removeStoredAccount(ProtocolProviderFactory factory,
AccountID accountID)
Removes the account with accountID from the set of accounts that are persistently stored inside the configuration service. |
void |
removeStoredAccounts()
Removes all accounts which have been persistently stored. |
void |
storeAccount(ProtocolProviderFactory factory,
AccountID accountID)
Stores an account represented in the form of an AccountID created by a specific ProtocolProviderFactory. |
void |
unloadAccount(AccountID accountID)
Unloads the account corresponding to the given AccountID. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AccountManager(org.osgi.framework.BundleContext bundleContext)
bundleContext - the BundleContext in which the new
instance is loaded (and in which the caller will usually later
register it as a service)| Method Detail |
|---|
public void addListener(AccountManagerListener listener)
listener - the AccountManagerListener to add
public boolean hasStoredAccounts(String protocolName,
boolean includeHidden)
public void removeListener(AccountManagerListener listener)
listener - the AccountManagerListener to remove
public void storeAccount(ProtocolProviderFactory factory,
AccountID accountID)
throws OperationFailedException
factory - the ProtocolProviderFactory which created the
account to be storedaccountID - the account in the form of AccountID to be
stored
OperationFailedException - if anything goes wrong while storing the
account
public boolean removeStoredAccount(ProtocolProviderFactory factory,
AccountID accountID)
factory - the ProtocolProviderFactory which created the
account to be storedaccountID - the AccountID of the account to remove.
public void removeStoredAccounts()
removeStoredAccount(ProtocolProviderFactory, AccountID)public Collection<AccountID> getStoredAccounts()
In order to check if an account is already loaded please use the #isAccountLoaded(AccountID accountID) method. To load an account use the #loadAccount(AccountID accountID) method.
public void loadAccount(AccountID accountID)
throws OperationFailedException
accountID - the identifier of the account to load
OperationFailedException - if anything goes wrong while loading the
account corresponding to the specified accountID
public void unloadAccount(AccountID accountID)
throws OperationFailedException
accountID - the identifier of the account to load
OperationFailedException - if anything goes wrong while unloading
the account corresponding to the specified accountIDpublic boolean isAccountLoaded(AccountID accountID)
accountID - the identifier of the account to load
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||