|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MessagingAccountManager
MessagingAccountManager - An account manager.
| Method Summary | |
|---|---|
int |
addAccount(MessagingAccount account,
com.openexchange.session.Session session)
Adds a new account. |
void |
deleteAccount(MessagingAccount account,
com.openexchange.session.Session session)
Deletes an existing account. |
MessagingAccount |
getAccount(int id,
com.openexchange.session.Session session)
Gets an existing messaging account. |
java.util.List<MessagingAccount> |
getAccounts(com.openexchange.session.Session session)
Gets all accounts associated with session user. |
boolean |
hasAccount(com.openexchange.session.Session session)
Has the owner of this session an account? |
void |
migrateToNewSecret(java.lang.String oldSecret,
java.lang.String newSecret,
com.openexchange.session.Session session)
Migrates all encrypted strings from an old secret to a new one. |
void |
updateAccount(MessagingAccount account,
com.openexchange.session.Session session)
Updates an existing account. |
| Method Detail |
|---|
int addAccount(MessagingAccount account,
com.openexchange.session.Session session)
throws MessagingException
account - The account to addsession - The session providing needed user data
MessagingException - If insertion fails
void updateAccount(MessagingAccount account,
com.openexchange.session.Session session)
throws MessagingException
account - The account providing the identifier and the data to updatesession - The session providing needed user data
MessagingException - If update fails
void deleteAccount(MessagingAccount account,
com.openexchange.session.Session session)
throws MessagingException
account - The account to deletesession - The session providing needed user data
MessagingException - If deletion fails
java.util.List<MessagingAccount> getAccounts(com.openexchange.session.Session session)
throws MessagingException
session - The session providing needed user data
MessagingException - If listing fails
MessagingAccount getAccount(int id,
com.openexchange.session.Session session)
throws MessagingException
id - The identifiersession - The session providing needed user data
MessagingException - If retrieval fails
void migrateToNewSecret(java.lang.String oldSecret,
java.lang.String newSecret,
com.openexchange.session.Session session)
throws MessagingException
oldSecret - The old secret for decrypting stored secret stringsnewSecret - The new secret used for encrypting the secret stringssession - The session providing needed user data
MessagingException
boolean hasAccount(com.openexchange.session.Session session)
throws MessagingException
MessagingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||