cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject [1/2] git commit: updated refs/heads/master to 0c7a562
Date Thu, 10 Dec 2015 11:02:32 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/master cd81982b3 -> 0c7a5620f


CLOUDSTACK-9131: Create a new API to check if the plugin is enabled.

fixing type


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

Branch: refs/heads/master
Commit: 3e22fbe457152934387847ccbc8dc46fbe915a1b
Parents: 738b788
Author: Abhinandan Prateek <abhinandan.prateek@shapeblue.com>
Authored: Wed Dec 9 17:11:18 2015 +0530
Committer: Abhinandan Prateek <abhinandan.prateek@shapeblue.com>
Committed: Thu Dec 10 09:37:54 2015 +0530

----------------------------------------------------------------------
 client/tomcatconf/commands.properties.in        |  1 +
 .../cloudstack/api/command/QuotaBalanceCmd.java |  2 +-
 .../cloudstack/api/command/QuotaCreditsCmd.java |  2 +-
 .../api/command/QuotaEmailTemplateListCmd.java  |  2 +-
 .../command/QuotaEmailTemplateUpdateCmd.java    |  2 +-
 .../cloudstack/api/command/QuotaEnabledCmd.java | 62 ++++++++++++++++++++
 .../api/command/QuotaStatementCmd.java          |  2 +-
 .../cloudstack/api/command/QuotaSummaryCmd.java |  2 +-
 .../api/command/QuotaTariffListCmd.java         |  2 +-
 .../api/command/QuotaTariffUpdateCmd.java       |  2 +-
 .../cloudstack/api/command/QuotaUpdateCmd.java  |  2 +-
 .../api/response/QuotaEnabledResponse.java      | 37 ++++++++++++
 .../apache/cloudstack/quota/QuotaService.java   |  2 +
 .../cloudstack/quota/QuotaServiceImpl.java      |  3 +
 ui/plugins/quota/quota.js                       | 12 ++--
 15 files changed, 120 insertions(+), 15 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/3e22fbe4/client/tomcatconf/commands.properties.in
----------------------------------------------------------------------
diff --git a/client/tomcatconf/commands.properties.in b/client/tomcatconf/commands.properties.in
index 485abea..32f33c9 100644
--- a/client/tomcatconf/commands.properties.in
+++ b/client/tomcatconf/commands.properties.in
@@ -798,3 +798,4 @@ quotaTariffUpdate=1
 quotaCredits=1
 quotaEmailTemplateList=1
 quotaEmailTemplateUpdate=1
+quotaIsEnabled=15

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/3e22fbe4/plugins/database/quota/src/org/apache/cloudstack/api/command/QuotaBalanceCmd.java
----------------------------------------------------------------------
diff --git a/plugins/database/quota/src/org/apache/cloudstack/api/command/QuotaBalanceCmd.java
b/plugins/database/quota/src/org/apache/cloudstack/api/command/QuotaBalanceCmd.java
index ef9d49a..32bbfc8 100644
--- a/plugins/database/quota/src/org/apache/cloudstack/api/command/QuotaBalanceCmd.java
+++ b/plugins/database/quota/src/org/apache/cloudstack/api/command/QuotaBalanceCmd.java
@@ -33,7 +33,7 @@ import org.apache.cloudstack.api.response.QuotaResponseBuilder;
 import org.apache.cloudstack.quota.vo.QuotaBalanceVO;
 import org.apache.cloudstack.api.response.QuotaStatementItemResponse;
 
-@APICommand(name = "quotaBalance", responseObject = QuotaStatementItemResponse.class, description
= "Create a quota balance statement", since = "4.6.0", requestHasSensitiveInfo = false, responseHasSensitiveInfo
= false)
+@APICommand(name = "quotaBalance", responseObject = QuotaStatementItemResponse.class, description
= "Create a quota balance statement", since = "4.7.0", requestHasSensitiveInfo = false, responseHasSensitiveInfo
= false)
 public class QuotaBalanceCmd extends BaseCmd {
 
     public static final Logger s_logger = Logger.getLogger(QuotaBalanceCmd.class);

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/3e22fbe4/plugins/database/quota/src/org/apache/cloudstack/api/command/QuotaCreditsCmd.java
----------------------------------------------------------------------
diff --git a/plugins/database/quota/src/org/apache/cloudstack/api/command/QuotaCreditsCmd.java
b/plugins/database/quota/src/org/apache/cloudstack/api/command/QuotaCreditsCmd.java
index ce00e23..1258445 100644
--- a/plugins/database/quota/src/org/apache/cloudstack/api/command/QuotaCreditsCmd.java
+++ b/plugins/database/quota/src/org/apache/cloudstack/api/command/QuotaCreditsCmd.java
@@ -33,7 +33,7 @@ import org.apache.log4j.Logger;
 
 import javax.inject.Inject;
 
-@APICommand(name = "quotaCredits", responseObject = QuotaCreditsResponse.class, description
= "Add +-credits to an account", since = "4.6.0", requestHasSensitiveInfo = false, responseHasSensitiveInfo
= false)
+@APICommand(name = "quotaCredits", responseObject = QuotaCreditsResponse.class, description
= "Add +-credits to an account", since = "4.7.0", requestHasSensitiveInfo = false, responseHasSensitiveInfo
= false)
 public class QuotaCreditsCmd extends BaseCmd {
 
     @Inject

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/3e22fbe4/plugins/database/quota/src/org/apache/cloudstack/api/command/QuotaEmailTemplateListCmd.java
----------------------------------------------------------------------
diff --git a/plugins/database/quota/src/org/apache/cloudstack/api/command/QuotaEmailTemplateListCmd.java
b/plugins/database/quota/src/org/apache/cloudstack/api/command/QuotaEmailTemplateListCmd.java
index 8b717eb..9d01320 100644
--- a/plugins/database/quota/src/org/apache/cloudstack/api/command/QuotaEmailTemplateListCmd.java
+++ b/plugins/database/quota/src/org/apache/cloudstack/api/command/QuotaEmailTemplateListCmd.java
@@ -26,7 +26,7 @@ import org.apache.log4j.Logger;
 
 import javax.inject.Inject;
 
-@APICommand(name = "quotaEmailTemplateList", responseObject = QuotaEmailTemplateResponse.class,
description = "Lists all quota email templates", since = "4.6.0", requestHasSensitiveInfo
= false, responseHasSensitiveInfo = false)
+@APICommand(name = "quotaEmailTemplateList", responseObject = QuotaEmailTemplateResponse.class,
description = "Lists all quota email templates", since = "4.7.0", requestHasSensitiveInfo
= false, responseHasSensitiveInfo = false)
 public class QuotaEmailTemplateListCmd extends BaseListCmd {
     public static final Logger s_logger = Logger.getLogger(QuotaEmailTemplateListCmd.class);
     private static final String s_name = "quotaemailtemplatelistresponse";

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/3e22fbe4/plugins/database/quota/src/org/apache/cloudstack/api/command/QuotaEmailTemplateUpdateCmd.java
----------------------------------------------------------------------
diff --git a/plugins/database/quota/src/org/apache/cloudstack/api/command/QuotaEmailTemplateUpdateCmd.java
b/plugins/database/quota/src/org/apache/cloudstack/api/command/QuotaEmailTemplateUpdateCmd.java
index 469fd4d..a47a783 100644
--- a/plugins/database/quota/src/org/apache/cloudstack/api/command/QuotaEmailTemplateUpdateCmd.java
+++ b/plugins/database/quota/src/org/apache/cloudstack/api/command/QuotaEmailTemplateUpdateCmd.java
@@ -30,7 +30,7 @@ import org.apache.log4j.Logger;
 import javax.inject.Inject;
 import java.util.Arrays;
 
-@APICommand(name = "quotaEmailTemplateUpdate", responseObject = SuccessResponse.class, description
= "Updates existing email templates for quota alerts", since = "4.6.0", requestHasSensitiveInfo
= false, responseHasSensitiveInfo = false)
+@APICommand(name = "quotaEmailTemplateUpdate", responseObject = SuccessResponse.class, description
= "Updates existing email templates for quota alerts", since = "4.7.0", requestHasSensitiveInfo
= false, responseHasSensitiveInfo = false)
 public class QuotaEmailTemplateUpdateCmd extends BaseCmd {
     public static final Logger s_logger = Logger.getLogger(QuotaEmailTemplateUpdateCmd.class);
     private static final String s_name = "quotaemailtemplateupdateresponse";

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/3e22fbe4/plugins/database/quota/src/org/apache/cloudstack/api/command/QuotaEnabledCmd.java
----------------------------------------------------------------------
diff --git a/plugins/database/quota/src/org/apache/cloudstack/api/command/QuotaEnabledCmd.java
b/plugins/database/quota/src/org/apache/cloudstack/api/command/QuotaEnabledCmd.java
new file mode 100644
index 0000000..a10be67
--- /dev/null
+++ b/plugins/database/quota/src/org/apache/cloudstack/api/command/QuotaEnabledCmd.java
@@ -0,0 +1,62 @@
+//Licensed to the Apache Software Foundation (ASF) under one
+//or more contributor license agreements.  See the NOTICE file
+//distributed with this work for additional information
+//regarding copyright ownership.  The ASF licenses this file
+//to you under the Apache License, Version 2.0 (the
+//"License"); you may not use this file except in compliance
+//with the License.  You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing,
+//software distributed under the License is distributed on an
+//"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+//KIND, either express or implied.  See the License for the
+//specific language governing permissions and limitations
+//under the License.
+package org.apache.cloudstack.api.command;
+
+import com.cloud.user.Account;
+
+import org.apache.cloudstack.api.APICommand;
+import org.apache.cloudstack.api.BaseCmd;
+import org.apache.cloudstack.api.response.QuotaEnabledResponse;
+import org.apache.cloudstack.quota.QuotaService;
+import org.apache.log4j.Logger;
+
+
+import javax.inject.Inject;
+
+@APICommand(name = "quotaIsEnabled", responseObject = QuotaEnabledResponse.class, description
= "Return true if the plugin is enabled", since = "4.7.0", requestHasSensitiveInfo = false,
responseHasSensitiveInfo = false)
+public class QuotaEnabledCmd extends BaseCmd {
+
+    public static final Logger s_logger = Logger.getLogger(QuotaEnabledCmd.class);
+
+    private static final String s_name = "quotaisenabledresponse";
+
+    @Inject
+    QuotaService _quotaService;
+
+    public QuotaEnabledCmd() {
+        super();
+    }
+
+    @Override
+    public String getCommandName() {
+        return s_name;
+    }
+
+    @Override
+    public void execute() {
+        Boolean isEnabled = _quotaService.isQuotaServiceEnabled();
+        QuotaEnabledResponse response = new QuotaEnabledResponse(isEnabled);
+        response.setResponseName(getCommandName());
+        setResponseObject(response);
+    }
+
+    @Override
+    public long getEntityOwnerId() {
+        return Account.ACCOUNT_ID_SYSTEM;
+    }
+
+}

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/3e22fbe4/plugins/database/quota/src/org/apache/cloudstack/api/command/QuotaStatementCmd.java
----------------------------------------------------------------------
diff --git a/plugins/database/quota/src/org/apache/cloudstack/api/command/QuotaStatementCmd.java
b/plugins/database/quota/src/org/apache/cloudstack/api/command/QuotaStatementCmd.java
index fa97960..3efdf11 100644
--- a/plugins/database/quota/src/org/apache/cloudstack/api/command/QuotaStatementCmd.java
+++ b/plugins/database/quota/src/org/apache/cloudstack/api/command/QuotaStatementCmd.java
@@ -36,7 +36,7 @@ import org.apache.cloudstack.api.response.QuotaStatementItemResponse;
 
 import com.cloud.user.Account;
 
-@APICommand(name = "quotaStatement", responseObject = QuotaStatementItemResponse.class, description
= "Create a quota statement", since = "4.6.0", requestHasSensitiveInfo = false, responseHasSensitiveInfo
= false)
+@APICommand(name = "quotaStatement", responseObject = QuotaStatementItemResponse.class, description
= "Create a quota statement", since = "4.7.0", requestHasSensitiveInfo = false, responseHasSensitiveInfo
= false)
 public class QuotaStatementCmd extends BaseCmd {
 
     public static final Logger s_logger = Logger.getLogger(QuotaStatementCmd.class);

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/3e22fbe4/plugins/database/quota/src/org/apache/cloudstack/api/command/QuotaSummaryCmd.java
----------------------------------------------------------------------
diff --git a/plugins/database/quota/src/org/apache/cloudstack/api/command/QuotaSummaryCmd.java
b/plugins/database/quota/src/org/apache/cloudstack/api/command/QuotaSummaryCmd.java
index 773bac6..b4f2001 100644
--- a/plugins/database/quota/src/org/apache/cloudstack/api/command/QuotaSummaryCmd.java
+++ b/plugins/database/quota/src/org/apache/cloudstack/api/command/QuotaSummaryCmd.java
@@ -34,7 +34,7 @@ import java.util.List;
 
 import javax.inject.Inject;
 
-@APICommand(name = "quotaSummary", responseObject = QuotaSummaryResponse.class, description
= "Lists balance and quota usage for all accounts", since = "4.6.0", requestHasSensitiveInfo
= false, responseHasSensitiveInfo = false)
+@APICommand(name = "quotaSummary", responseObject = QuotaSummaryResponse.class, description
= "Lists balance and quota usage for all accounts", since = "4.7.0", requestHasSensitiveInfo
= false, responseHasSensitiveInfo = false)
 public class QuotaSummaryCmd extends BaseListCmd {
     public static final Logger s_logger = Logger.getLogger(QuotaSummaryCmd.class);
     private static final String s_name = "quotasummaryresponse";

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/3e22fbe4/plugins/database/quota/src/org/apache/cloudstack/api/command/QuotaTariffListCmd.java
----------------------------------------------------------------------
diff --git a/plugins/database/quota/src/org/apache/cloudstack/api/command/QuotaTariffListCmd.java
b/plugins/database/quota/src/org/apache/cloudstack/api/command/QuotaTariffListCmd.java
index c190594..9e7d1bc 100644
--- a/plugins/database/quota/src/org/apache/cloudstack/api/command/QuotaTariffListCmd.java
+++ b/plugins/database/quota/src/org/apache/cloudstack/api/command/QuotaTariffListCmd.java
@@ -34,7 +34,7 @@ import java.util.ArrayList;
 import java.util.Date;
 import java.util.List;
 
-@APICommand(name = "quotaTariffList", responseObject = QuotaTariffResponse.class, description
= "Lists all quota tariff plans", since = "4.6.0", requestHasSensitiveInfo = false, responseHasSensitiveInfo
= false)
+@APICommand(name = "quotaTariffList", responseObject = QuotaTariffResponse.class, description
= "Lists all quota tariff plans", since = "4.7.0", requestHasSensitiveInfo = false, responseHasSensitiveInfo
= false)
 public class QuotaTariffListCmd extends BaseListCmd {
     public static final Logger s_logger = Logger.getLogger(QuotaTariffListCmd.class);
     private static final String s_name = "quotatarifflistresponse";

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/3e22fbe4/plugins/database/quota/src/org/apache/cloudstack/api/command/QuotaTariffUpdateCmd.java
----------------------------------------------------------------------
diff --git a/plugins/database/quota/src/org/apache/cloudstack/api/command/QuotaTariffUpdateCmd.java
b/plugins/database/quota/src/org/apache/cloudstack/api/command/QuotaTariffUpdateCmd.java
index 04af3ec..42aa825 100644
--- a/plugins/database/quota/src/org/apache/cloudstack/api/command/QuotaTariffUpdateCmd.java
+++ b/plugins/database/quota/src/org/apache/cloudstack/api/command/QuotaTariffUpdateCmd.java
@@ -33,7 +33,7 @@ import javax.inject.Inject;
 
 import java.util.Date;
 
-@APICommand(name = "quotaTariffUpdate", responseObject = QuotaTariffResponse.class, description
= "Update the tariff plan for a resource", since = "4.6.0", requestHasSensitiveInfo = false,
responseHasSensitiveInfo = false)
+@APICommand(name = "quotaTariffUpdate", responseObject = QuotaTariffResponse.class, description
= "Update the tariff plan for a resource", since = "4.7.0", requestHasSensitiveInfo = false,
responseHasSensitiveInfo = false)
 public class QuotaTariffUpdateCmd extends BaseCmd {
     public static final Logger s_logger = Logger.getLogger(QuotaTariffUpdateCmd.class);
     private static final String s_name = "quotatariffupdateresponse";

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/3e22fbe4/plugins/database/quota/src/org/apache/cloudstack/api/command/QuotaUpdateCmd.java
----------------------------------------------------------------------
diff --git a/plugins/database/quota/src/org/apache/cloudstack/api/command/QuotaUpdateCmd.java
b/plugins/database/quota/src/org/apache/cloudstack/api/command/QuotaUpdateCmd.java
index e3c0fd2..75e2c2c 100644
--- a/plugins/database/quota/src/org/apache/cloudstack/api/command/QuotaUpdateCmd.java
+++ b/plugins/database/quota/src/org/apache/cloudstack/api/command/QuotaUpdateCmd.java
@@ -30,7 +30,7 @@ import java.util.Calendar;
 
 import javax.inject.Inject;
 
-@APICommand(name = "quotaUpdate", responseObject = QuotaUpdateResponse.class, description
= "Update quota calculations, alerts and statements", since = "4.6.0", requestHasSensitiveInfo
= false, responseHasSensitiveInfo = false)
+@APICommand(name = "quotaUpdate", responseObject = QuotaUpdateResponse.class, description
= "Update quota calculations, alerts and statements", since = "4.7.0", requestHasSensitiveInfo
= false, responseHasSensitiveInfo = false)
 public class QuotaUpdateCmd extends BaseCmd {
 
     public static final Logger s_logger = Logger.getLogger(QuotaUpdateCmd.class);

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/3e22fbe4/plugins/database/quota/src/org/apache/cloudstack/api/response/QuotaEnabledResponse.java
----------------------------------------------------------------------
diff --git a/plugins/database/quota/src/org/apache/cloudstack/api/response/QuotaEnabledResponse.java
b/plugins/database/quota/src/org/apache/cloudstack/api/response/QuotaEnabledResponse.java
new file mode 100644
index 0000000..ddc2fd0
--- /dev/null
+++ b/plugins/database/quota/src/org/apache/cloudstack/api/response/QuotaEnabledResponse.java
@@ -0,0 +1,37 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+package org.apache.cloudstack.api.response;
+
+import com.google.gson.annotations.SerializedName;
+
+import org.apache.cloudstack.api.BaseResponse;
+
+import com.cloud.serializer.Param;
+
+public class QuotaEnabledResponse extends BaseResponse {
+
+    @SerializedName("isenabled")
+    @Param(description = "is quota service enabled")
+    private Boolean isEnabled;
+
+
+    public QuotaEnabledResponse(Boolean isEnabled) {
+        this.isEnabled = isEnabled;
+        setObjectName("isenabled");
+    }
+
+}

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/3e22fbe4/plugins/database/quota/src/org/apache/cloudstack/quota/QuotaService.java
----------------------------------------------------------------------
diff --git a/plugins/database/quota/src/org/apache/cloudstack/quota/QuotaService.java b/plugins/database/quota/src/org/apache/cloudstack/quota/QuotaService.java
index 8ee39b8..6c645de 100644
--- a/plugins/database/quota/src/org/apache/cloudstack/quota/QuotaService.java
+++ b/plugins/database/quota/src/org/apache/cloudstack/quota/QuotaService.java
@@ -36,4 +36,6 @@ public interface QuotaService extends PluggableService {
 
     void setMinBalance(Long accountId, Double balance);
 
+    Boolean isQuotaServiceEnabled();
+
 }

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/3e22fbe4/plugins/database/quota/src/org/apache/cloudstack/quota/QuotaServiceImpl.java
----------------------------------------------------------------------
diff --git a/plugins/database/quota/src/org/apache/cloudstack/quota/QuotaServiceImpl.java
b/plugins/database/quota/src/org/apache/cloudstack/quota/QuotaServiceImpl.java
index 1b4c98f..9894f11 100644
--- a/plugins/database/quota/src/org/apache/cloudstack/quota/QuotaServiceImpl.java
+++ b/plugins/database/quota/src/org/apache/cloudstack/quota/QuotaServiceImpl.java
@@ -29,6 +29,7 @@ import com.cloud.utils.db.Filter;
 import org.apache.cloudstack.api.command.QuotaBalanceCmd;
 import org.apache.cloudstack.api.command.QuotaCreditsCmd;
 import org.apache.cloudstack.api.command.QuotaEmailTemplateUpdateCmd;
+import org.apache.cloudstack.api.command.QuotaEnabledCmd;
 import org.apache.cloudstack.api.command.QuotaEmailTemplateListCmd;
 import org.apache.cloudstack.api.command.QuotaStatementCmd;
 import org.apache.cloudstack.api.command.QuotaSummaryCmd;
@@ -114,6 +115,7 @@ public class QuotaServiceImpl extends ManagerBase implements QuotaService,
Confi
     @Override
     public List<Class<?>> getCommands() {
         final List<Class<?>> cmdList = new ArrayList<Class<?>>();
+        cmdList.add(QuotaEnabledCmd.class);
         if (!isQuotaServiceEnabled()) {
             return cmdList;
         }
@@ -140,6 +142,7 @@ public class QuotaServiceImpl extends ManagerBase implements QuotaService,
Confi
                 QuotaSmtpAuthType, QuotaSmtpSender };
     }
 
+    @Override
     public Boolean isQuotaServiceEnabled() {
         return QuotaPluginEnabled.value();
     }

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/3e22fbe4/ui/plugins/quota/quota.js
----------------------------------------------------------------------
diff --git a/ui/plugins/quota/quota.js b/ui/plugins/quota/quota.js
index 6051b2c..94a8730 100644
--- a/ui/plugins/quota/quota.js
+++ b/ui/plugins/quota/quota.js
@@ -25,12 +25,12 @@
           id: 'quota',
           title: 'Quota',
           preFilter: function(args) {
-              var retval = $.ajax({
-              url: createURL("listConfigurations&name=quota.enable.service"),
-              async: false
-                  });
-              var json = JSON.parse(retval.responseText);
-              return json.listconfigurationsresponse.configuration[0].value == 'true';
+    	        var retval = $.ajax({
+                	url: createURL("quotaIsEnabled"),
+                	async: false
+                });
+    	        var json = JSON.parse(retval.responseText);
+    	        return json.quotaisenabledresponse.isenabled.isenabled;
           },
           showOnNavigation: true,
           sectionSelect: {


Mime
View raw message