Accounts API: Add methods to create an account

Change-Id: I798f98384fc513987c00aa1a6102c9967813b542
Signed-off-by: Edwin Kempin <ekempin@google.com>
This commit is contained in:
Edwin Kempin
2016-07-06 16:57:04 +02:00
parent 0d4ef2ddba
commit a62673ca77
6 changed files with 90 additions and 19 deletions

View File

@@ -20,6 +20,7 @@ import com.google.common.base.Function;
import com.google.common.collect.Lists;
import com.google.gerrit.common.data.GlobalCapability;
import com.google.gerrit.extensions.annotations.RequiresCapability;
import com.google.gerrit.extensions.api.accounts.AccountInput;
import com.google.gerrit.extensions.restapi.RestApiException;
import com.google.gerrit.extensions.restapi.TopLevelResource;
import com.google.gerrit.reviewdb.client.AccountGroup;
@@ -67,7 +68,7 @@ final class CreateAccountCommand extends SshCommand {
@Override
protected void run() throws OrmException, IOException, ConfigInvalidException,
UnloggedFailure {
CreateAccount.Input input = new CreateAccount.Input();
AccountInput input = new AccountInput();
input.username = username;
input.email = email;
input.name = fullName;