|
SIP Communicator: 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.impl.protocol.AccountManagerImpl
public class AccountManagerImpl
Represents an implementation of AccountManager which loads the accounts in a separate thread.
| Constructor Summary | |
|---|---|
AccountManagerImpl(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)
Determines whether the account store represented by this manager contains stored accounts. |
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 |
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 AccountManagerImpl(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)
addListener in interface AccountManagerlistener - the AccountManagerListener to add
public boolean hasStoredAccounts(String protocolName,
boolean includeHidden)
AccountManager
hasStoredAccounts in interface AccountManagerprotocolName - the name of the protocol for which the stored accounts are to
be checked or null for all protocolsincludeHidden - true to take into account both non-hidden and hidden
stored accounts; false for non-hidden only
public void removeListener(AccountManagerListener listener)
removeListener in interface AccountManagerlistener - the AccountManagerListener to remove
public void storeAccount(ProtocolProviderFactory factory,
AccountID accountID)
throws OperationFailedException
storeAccount in interface AccountManagerfactory - 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)
removeStoredAccount in interface AccountManagerfactory - the ProtocolProviderFactory which created the
account to be storedaccountID - the AccountID of the account to remove.
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.
getStoredAccounts in interface AccountManager
public void loadAccount(AccountID accountID)
throws OperationFailedException
loadAccount in interface AccountManageraccountID - 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
unloadAccount in interface AccountManageraccountID - 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)
isAccountLoaded in interface AccountManageraccountID - the identifier of the account to load
|
SIP Communicator: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||