CreateEmail: Annotate apply(...) method as used by service-user plugin
Change-Id: Ic1ccaa68a95287f649f186952246fe1e3a1ea03d Signed-off-by: Edwin Kempin <ekempin@google.com>
This commit is contained in:

committed by
David Pursehouse

parent
22c121d96b
commit
7926ef3fb4
@@ -17,6 +17,7 @@ package com.google.gerrit.server.restapi.account;
|
||||
import static com.google.gerrit.extensions.client.AuthType.DEVELOPMENT_BECOME_ANY_ACCOUNT;
|
||||
|
||||
import com.google.common.flogger.FluentLogger;
|
||||
import com.google.gerrit.common.UsedAt;
|
||||
import com.google.gerrit.exceptions.EmailException;
|
||||
import com.google.gerrit.extensions.api.accounts.EmailInput;
|
||||
import com.google.gerrit.extensions.client.AccountFieldName;
|
||||
@@ -101,6 +102,7 @@ public class CreateEmail
|
||||
}
|
||||
|
||||
/** To be used from plugins that want to create emails without permission checks. */
|
||||
@UsedAt(UsedAt.Project.PLUGIN_SERVICEUSER)
|
||||
public EmailInfo apply(IdentifiedUser user, IdString id, EmailInput input)
|
||||
throws RestApiException, EmailException, MethodNotAllowedException, IOException,
|
||||
ConfigInvalidException, PermissionBackendException {
|
||||
|
Reference in New Issue
Block a user