bug 12481: Added account ID to listusers response

status 12481: resolved fixed
reviewed-by: Nitin
This commit is contained in:
kishan 2011-12-13 15:54:58 +05:30
parent bc32e0e60c
commit 6f9bc008f4
2 changed files with 12 additions and 0 deletions

View File

@ -67,6 +67,10 @@ public class UserResponse extends BaseResponse {
@SerializedName("secretkey") @Param(description="the secret key of the user")
private String secretKey;
@SerializedName("accountid") @Param(description="the account ID of the user")
private IdentityProxy accountId = new IdentityProxy("account");
public Long getId() {
return id.getValue();
}
@ -178,4 +182,11 @@ public class UserResponse extends BaseResponse {
public void setSecretKey(String secretKey) {
this.secretKey = secretKey;
}
public Long getAccountId() {
return accountId.getValue();
}
public void setAccountId(Long accountId) {
this.accountId.setValue(accountId);
}
}

View File

@ -372,6 +372,7 @@ public class ApiResponseHelper implements ResponseGenerator {
userResponse.setUsername(user.getUsername());
userResponse.setApiKey(user.getApiKey());
userResponse.setSecretKey(user.getSecretKey());
userResponse.setAccountId((user.getAccountId()));
userResponse.setObjectName("user");
return userResponse;