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 9FCB8CAD1 for ; Tue, 12 Aug 2014 08:55:40 +0000 (UTC) Received: (qmail 79808 invoked by uid 500); 12 Aug 2014 08:55:32 -0000 Delivered-To: apmail-cloudstack-commits-archive@cloudstack.apache.org Received: (qmail 79740 invoked by uid 500); 12 Aug 2014 08:55:32 -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 79211 invoked by uid 99); 12 Aug 2014 08:55:31 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Aug 2014 08:55:31 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 8F6AC8A730A; Tue, 12 Aug 2014 08:55:31 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: bhaisaab@apache.org To: commits@cloudstack.apache.org Date: Tue, 12 Aug 2014 08:55:47 -0000 Message-Id: <5c3967d654f247fbaf820fb13ab3d7dc@git.apache.org> In-Reply-To: <56a5bbd810c84c3fa0d94984124b2c99@git.apache.org> References: <56a5bbd810c84c3fa0d94984124b2c99@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [17/28] git commit: updated refs/heads/auth-refactor to 03ad002 ApiXmlDocWriter: get rid of hardcoded login/logout docs Signed-off-by: Rohit Yadav Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/2c99f200 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/2c99f200 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/2c99f200 Branch: refs/heads/auth-refactor Commit: 2c99f2001d21eb6d678c939bcde06b68da25fc5f Parents: 68be7db Author: Rohit Yadav Authored: Tue Aug 12 07:37:36 2014 +0200 Committer: Rohit Yadav Committed: Tue Aug 12 09:19:43 2014 +0200 ---------------------------------------------------------------------- .../src/com/cloud/api/doc/ApiXmlDocWriter.java | 22 ++++++-------------- 1 file changed, 6 insertions(+), 16 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/2c99f200/server/src/com/cloud/api/doc/ApiXmlDocWriter.java ---------------------------------------------------------------------- diff --git a/server/src/com/cloud/api/doc/ApiXmlDocWriter.java b/server/src/com/cloud/api/doc/ApiXmlDocWriter.java index 11ea57a..ee8a4bb 100644 --- a/server/src/com/cloud/api/doc/ApiXmlDocWriter.java +++ b/server/src/com/cloud/api/doc/ApiXmlDocWriter.java @@ -241,24 +241,14 @@ public class ApiXmlDocWriter { while (it.hasNext()) { String key = (String)it.next(); - if (key.equals("login")) { - writeLoginCommand(rootAdminSorted); - writeLoginCommand(outDomainAdminSorted); - writeLoginCommand(regularUserSorted); - } else if (key.equals("logout")) { - writeLogoutCommand(rootAdminSorted); - writeLogoutCommand(outDomainAdminSorted); - writeLogoutCommand(regularUserSorted); - } else { - writeCommand(rootAdminSorted, key); + writeCommand(rootAdminSorted, key); - if (s_domainAdminApiCommands.containsKey(key)) { - writeCommand(outDomainAdminSorted, key); - } + if (s_domainAdminApiCommands.containsKey(key)) { + writeCommand(outDomainAdminSorted, key); + } - if (s_regularUserApiCommands.containsKey(key)) { - writeCommand(regularUserSorted, key); - } + if (s_regularUserApiCommands.containsKey(key)) { + writeCommand(regularUserSorted, key); } }