mirror of https://github.com/apache/cloudstack.git
ApiXmlDocWriter: get rid of hardcoded login/logout docs
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
ee57f47e29
commit
7434f1bd33
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue