From 97a83491100c683c2176cd87046ce250ca78e09d Mon Sep 17 00:00:00 2001 From: alena Date: Wed, 17 Nov 2010 19:21:02 -0800 Subject: [PATCH] bug 6894: removed "account" request parameter in listAccounts command. Should use "name" if need to make search by account name status 6894: resolved fixed --- server/src/com/cloud/api/commands/ListAccountsCmd.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/server/src/com/cloud/api/commands/ListAccountsCmd.java b/server/src/com/cloud/api/commands/ListAccountsCmd.java index bd4f48de059..032f58303a9 100644 --- a/server/src/com/cloud/api/commands/ListAccountsCmd.java +++ b/server/src/com/cloud/api/commands/ListAccountsCmd.java @@ -40,13 +40,10 @@ public class ListAccountsCmd extends BaseListCmd { //////////////// API parameters ///////////////////// ///////////////////////////////////////////////////// - @Parameter(name=ApiConstants.ACCOUNT, type=CommandType.STRING, description="list account for a specified account. Must be used with the domainId parameter.") - private String accountName; - @Parameter(name=ApiConstants.ACCOUNT_TYPE, type=CommandType.LONG, description="list accounts by account type. Valid account types are 1 (admin), 2 (domain-admin), and 0 (user).") private Long accountType; - @Parameter(name=ApiConstants.DOMAIN_ID, type=CommandType.LONG, description="list all accounts in specified domain. If used with the account parameter, retrieves account information for specified account in specified domain.") + @Parameter(name=ApiConstants.DOMAIN_ID, type=CommandType.LONG, description="list all accounts in specified domain. If used with the name parameter, retrieves account information for the account with specified name in specified domain.") private Long domainId; @Parameter(name=ApiConstants.ID, type=CommandType.LONG, description="list account by account ID") @@ -66,10 +63,6 @@ public class ListAccountsCmd extends BaseListCmd { /////////////////// Accessors /////////////////////// ///////////////////////////////////////////////////// - public String getAccountName() { - return accountName; - } - public Long getAccountType() { return accountType; }