|
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 | |||||||||
public interface AccountManager
Represents a manager of accounts which contains the details about the format in which the accounts in question are stored (i.e. knows how to store and load them) and takes care of loading them on start-up.
| Method Summary | |
|---|---|
void |
addListener(AccountManagerListener listener)
Registers a specific listener to be notified about events fired by this AccountManager. |
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)
Unregisters a specific listener from this AccountManager so that it no longer received notifications about events fired by this manager. |
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. |
| Method Detail |
|---|
void addListener(AccountManagerListener listener)
listener - the listener to be registered for notification events fired by
this AccountManager
boolean hasStoredAccounts(String protocolName,
boolean includeHidden)
protocolName - 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
void removeListener(AccountManagerListener listener)
listener - the listener to be unregistered from this
AccountManager so that it no longer receives
notifications about events fired by this manager
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
specified account
boolean removeStoredAccount(ProtocolProviderFactory factory,
AccountID accountID)
factory - the ProtocolProviderFactory which created the
account to be storedaccountID - the AccountID of the account to remove.
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.
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
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 accountIDboolean isAccountLoaded(AccountID accountID)
accountID - 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 | |||||||||