cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject [20/28] git commit: updated refs/heads/master to ae207be
Date Tue, 12 Aug 2014 10:35:11 GMT
ApiXmlDocWriter: get rid of hardcoded login/logout docs

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/7434f1bd
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/7434f1bd
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/7434f1bd

Branch: refs/heads/master
Commit: 7434f1bd33624f75af212f708123f178f76eefe9
Parents: ee57f47
Author: Rohit Yadav <rohit.yadav@shapeblue.com>
Authored: Tue Aug 12 07:37:36 2014 +0200
Committer: Rohit Yadav <rohit.yadav@shapeblue.com>
Committed: Tue Aug 12 12:01:31 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/7434f1bd/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);
                 }
             }
 


Mime
View raw message