getPartion by ID added
Project: http://git-wip-us.apache.org/repos/asf/stratos/repo Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/2db027e6 Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/2db027e6 Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/2db027e6 Branch: refs/heads/master Commit: 2db027e65fe700cf9477eba0da4436cb21be3b6e Parents: 6838a75 Author: Dakshika Jayathilaka <[email protected]> Authored: Tue Jan 27 16:12:39 2015 +0530 Committer: Dakshika Jayathilaka <[email protected]> Committed: Tue Jan 27 16:12:39 2015 +0530 ---------------------------------------------------------------------- .../console/configure_form.jag | 4 ++++ .../console/controllers/rest/rest_calls.jag | 4 ++++ 2 files changed, 8 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/stratos/blob/2db027e6/components/org.apache.stratos.manager.console/console/configure_form.jag ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.manager.console/console/configure_form.jag b/components/org.apache.stratos.manager.console/console/configure_form.jag index 4f7249f..93f41a4 100644 --- a/components/org.apache.stratos.manager.console/console/configure_form.jag +++ b/components/org.apache.stratos.manager.console/console/configure_form.jag @@ -128,6 +128,10 @@ if (elements.action != 'new' && isEdit) { formDataEdit = util.RESTCalls.getPolicyAutoScale(id); break; + case "partitions": + formDataEdit = util.RESTCalls.getPartition(id); + break; + case "cartridges": formDataEdit = util.RESTCalls.getCartridge(id); break; http://git-wip-us.apache.org/repos/asf/stratos/blob/2db027e6/components/org.apache.stratos.manager.console/console/controllers/rest/rest_calls.jag ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.manager.console/console/controllers/rest/rest_calls.jag b/components/org.apache.stratos.manager.console/console/controllers/rest/rest_calls.jag index 9b3b26b..131ea7a 100644 --- a/components/org.apache.stratos.manager.console/console/controllers/rest/rest_calls.jag +++ b/components/org.apache.stratos.manager.console/console/controllers/rest/rest_calls.jag @@ -121,6 +121,10 @@ RESTCalls = new function(){ return this.sendReceive("GET","/networkPartitions/",{}); }; + this.getPartition = function(networkpartionId){ + return this.sendReceive("GET","/networkPartitions/"+networkpartionId,{}); + }; + this.getAutoScalePolicies = function(){ return this.sendReceive("GET","/policy/autoscale",{}); };
