stratos-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From im...@apache.org
Subject [06/14] stratos git commit: application_getrequest for topology ajax update
Date Mon, 22 Dec 2014 06:29:12 GMT
application_getrequest for topology ajax update


Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/1279dc7a
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/1279dc7a
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/1279dc7a

Branch: refs/heads/master
Commit: 1279dc7ae436ea1e4f62466e05742ef1e8a1d4eb
Parents: 22cdfc6
Author: Dakshika Jayathilaka <sinhaladjs@gmail.com>
Authored: Mon Dec 22 10:01:23 2014 +0530
Committer: Imesh Gunaratne <imesh@apache.org>
Committed: Mon Dec 22 11:58:57 2014 +0530

----------------------------------------------------------------------
 .../applications/application_getrequests.jag    | 47 ++++++++++++++++++++
 1 file changed, 47 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/1279dc7a/components/org.apache.stratos.manager.console/console/controllers/applications/application_getrequests.jag
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/controllers/applications/application_getrequests.jag
b/components/org.apache.stratos.manager.console/console/controllers/applications/application_getrequests.jag
new file mode 100644
index 0000000..41a769e
--- /dev/null
+++ b/components/org.apache.stratos.manager.console/console/controllers/applications/application_getrequests.jag
@@ -0,0 +1,47 @@
+<%
+/*
+ *
+ * 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.
+ *
+ */
+var log = new Log("apachestratos.configure_request"),
+        util = require('/controllers/rest/rest_calls.jag'),
+        formtype = request.getParameter('formtype'),
+        applicationId = request.getParameter('appId'),
+        formSubmit;
+
+//add login validator for pages
+include('/controllers/login/validator.jag');
+
+try {
+    switch (formtype) {
+        case "applicationtopology":
+            formSubmit = util.RESTCalls.getApplicationTopology(applicationId);
+            break;
+        default:
+            session.put("deploy-status", { "message": "Sorry Endpoint Error", "status": "error"
});
+
+    }
+    print(formSubmit);
+} catch (e) {
+    log.warn(e);
+    print({"status": 'error', "message": e.toString()});
+}
+
+
+%>
\ No newline at end of file


Mime
View raw message