Return-Path: X-Original-To: apmail-cloudstack-commits-archive@www.apache.org Delivered-To: apmail-cloudstack-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4C64B1077E for ; Mon, 30 Sep 2013 21:48:54 +0000 (UTC) Received: (qmail 20094 invoked by uid 500); 30 Sep 2013 21:48:54 -0000 Delivered-To: apmail-cloudstack-commits-archive@cloudstack.apache.org Received: (qmail 19888 invoked by uid 500); 30 Sep 2013 21:48:48 -0000 Mailing-List: contact commits-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list commits@cloudstack.apache.org Received: (qmail 19878 invoked by uid 99); 30 Sep 2013 21:48:46 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Sep 2013 21:48:46 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 4FA52833955; Mon, 30 Sep 2013 21:48:46 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: mchen@apache.org To: commits@cloudstack.apache.org Message-Id: <1b79b6253cb44db49c106483abedca5a@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: git commit: updated refs/heads/rbac to de0904b Date: Mon, 30 Sep 2013 21:48:46 +0000 (UTC) Updated Branches: refs/heads/rbac d4d3c69a2 -> de0904ba6 Modify AccountResponse to return groups that account belongs to. Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/de0904ba Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/de0904ba Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/de0904ba Branch: refs/heads/rbac Commit: de0904ba636f1997e91048c83a79576ebb9e01b2 Parents: d4d3c69 Author: Min Chen Authored: Mon Sep 30 14:14:38 2013 -0700 Committer: Min Chen Committed: Mon Sep 30 14:14:38 2013 -0700 ---------------------------------------------------------------------- .../api/response/AccountResponse.java | 5 + client/tomcatconf/applicationContext.xml.in | 3 +- server/src/com/cloud/api/ApiDBUtils.java | 5 + .../cloud/api/query/dao/AccountJoinDaoImpl.java | 16 +- .../cloud/api/query/dao/AclGroupJoinDao.java | 38 ++++ .../api/query/dao/AclGroupJoinDaoImpl.java | 178 +++++++++++++++++++ .../com/cloud/api/query/vo/AclGroupJoinVO.java | 158 ++++++++++++++++ .../api/response/ApiResponseSerializer.java | 79 ++++---- 8 files changed, 447 insertions(+), 35 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/de0904ba/api/src/org/apache/cloudstack/api/response/AccountResponse.java ---------------------------------------------------------------------- diff --git a/api/src/org/apache/cloudstack/api/response/AccountResponse.java b/api/src/org/apache/cloudstack/api/response/AccountResponse.java index 2f96b26..da52368 100644 --- a/api/src/org/apache/cloudstack/api/response/AccountResponse.java +++ b/api/src/org/apache/cloudstack/api/response/AccountResponse.java @@ -438,4 +438,9 @@ public class AccountResponse extends BaseResponse implements ResourceLimitAndCou public void setIsDefault(Boolean isDefault) { this.isDefault = isDefault; } + + public void setGroups(List groups) { + this.groups = groups; + } + } http://git-wip-us.apache.org/repos/asf/cloudstack/blob/de0904ba/client/tomcatconf/applicationContext.xml.in ---------------------------------------------------------------------- diff --git a/client/tomcatconf/applicationContext.xml.in b/client/tomcatconf/applicationContext.xml.in index e822cf1..e88bc72 100644 --- a/client/tomcatconf/applicationContext.xml.in +++ b/client/tomcatconf/applicationContext.xml.in @@ -376,7 +376,8 @@ - + +