diff options
Diffstat (limited to 'gerrit-common/src/main/java/com/google/gerrit/common/data/AccountService.java')
-rw-r--r-- | gerrit-common/src/main/java/com/google/gerrit/common/data/AccountService.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gerrit-common/src/main/java/com/google/gerrit/common/data/AccountService.java b/gerrit-common/src/main/java/com/google/gerrit/common/data/AccountService.java index 2fad82ee3d..e219074451 100644 --- a/gerrit-common/src/main/java/com/google/gerrit/common/data/AccountService.java +++ b/gerrit-common/src/main/java/com/google/gerrit/common/data/AccountService.java @@ -16,6 +16,7 @@ package com.google.gerrit.common.data; import com.google.gerrit.common.auth.SignInRequired; import com.google.gerrit.reviewdb.Account; +import com.google.gerrit.reviewdb.AccountDiffPreference; import com.google.gerrit.reviewdb.AccountGeneralPreferences; import com.google.gerrit.reviewdb.AccountProjectWatch; import com.google.gwt.user.client.rpc.AsyncCallback; @@ -33,14 +34,21 @@ public interface AccountService extends RemoteJsonService { void myAccount(AsyncCallback<Account> callback); @SignInRequired + void myDiffPreferences(AsyncCallback<AccountDiffPreference> callback); + + @SignInRequired void changePreferences(AccountGeneralPreferences pref, AsyncCallback<VoidResult> gerritCallback); @SignInRequired + void changeDiffPreferences(AccountDiffPreference diffPref, + AsyncCallback<VoidResult> callback); + + @SignInRequired void myProjectWatch(AsyncCallback<List<AccountProjectWatchInfo>> callback); @SignInRequired - void addProjectWatch(String projectName, + void addProjectWatch(String projectName, String filter, AsyncCallback<AccountProjectWatchInfo> callback); @SignInRequired |