diff options
Diffstat (limited to 'gerrit-common/src/main/java/com/google/gerrit')
3 files changed, 30 insertions, 1 deletions
diff --git a/gerrit-common/src/main/java/com/google/gerrit/common/data/ReviewerResult.java b/gerrit-common/src/main/java/com/google/gerrit/common/data/ReviewerResult.java index 19772fcf..678ec79a 100644 --- a/gerrit-common/src/main/java/com/google/gerrit/common/data/ReviewerResult.java +++ b/gerrit-common/src/main/java/com/google/gerrit/common/data/ReviewerResult.java @@ -50,6 +50,9 @@ public class ReviewerResult { /** Name supplied does not match to a registered account. */ ACCOUNT_NOT_FOUND, + /** The account is inactive. */ + ACCOUNT_INACTIVE, + /** The account is not permitted to see the change. */ CHANGE_NOT_VISIBLE, diff --git a/gerrit-common/src/main/java/com/google/gerrit/common/data/SuggestService.java b/gerrit-common/src/main/java/com/google/gerrit/common/data/SuggestService.java index 164df439..9dae1698 100644 --- a/gerrit-common/src/main/java/com/google/gerrit/common/data/SuggestService.java +++ b/gerrit-common/src/main/java/com/google/gerrit/common/data/SuggestService.java @@ -28,7 +28,7 @@ public interface SuggestService extends RemoteJsonService { void suggestProjectNameKey(String query, int limit, AsyncCallback<List<Project.NameKey>> callback); - void suggestAccount(String query, int limit, + void suggestAccount(String query, Boolean enabled, int limit, AsyncCallback<List<AccountInfo>> callback); void suggestAccountGroup(String query, int limit, diff --git a/gerrit-common/src/main/java/com/google/gerrit/common/errors/InactiveAccountException.java b/gerrit-common/src/main/java/com/google/gerrit/common/errors/InactiveAccountException.java new file mode 100644 index 00000000..6ae5eb6d --- /dev/null +++ b/gerrit-common/src/main/java/com/google/gerrit/common/errors/InactiveAccountException.java @@ -0,0 +1,26 @@ +// Copyright (C) 2010 The Android Open Source Project +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package com.google.gerrit.common.errors; + +/** Error indicating the account is currently inactive. */ +public class InactiveAccountException extends Exception { + private static final long serialVersionUID = 1L; + + public static final String MESSAGE = "Account Inactive: "; + + public InactiveAccountException(String who) { + super(MESSAGE + who); + } +} |