You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bh...@apache.org on 2014/08/12 10:55:47 UTC
[17/28] git commit: updated refs/heads/auth-refactor to 03ad002
ApiXmlDocWriter: get rid of hardcoded login/logout docs
Signed-off-by: Rohit Yadav <ro...@shapeblue.com>
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 <ro...@shapeblue.com>
Authored: Tue Aug 12 07:37:36 2014 +0200
Committer: Rohit Yadav <ro...@shapeblue.com>
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);
}
}