Added unlink identity to AccountManager

This adds functionality to remove identities, we remove the
identity from AccountExternalIds and we make sure the preferred
email is in sync with it. We also flush the caches.

We need this function for issue 1095, which adds setting account
details that includes deleting email(s).

Change-Id: Ia2bc785258f475a66befaa0e79893b26ca526c54
This commit is contained in:
Deniz Turkoglu
2012-04-13 14:52:39 +02:00
parent 7a9bb6adc8
commit 97beb71b02
4 changed files with 63 additions and 1 deletions

View File

@@ -29,6 +29,9 @@ public interface Realm {
public AuthRequest link(ReviewDb db, Account.Id to, AuthRequest who)
throws AccountException;
public AuthRequest unlink(ReviewDb db, Account.Id to, AuthRequest who)
throws AccountException;
public void onCreateAccount(AuthRequest who, Account account);
public GroupMembership groups(AccountState who);