You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by ma...@apache.org on 2014/11/10 17:04:53 UTC
[17/36] stratos git commit: remove previous stratos console app
http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/controllers/router.jag
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/controllers/router.jag b/components/org.apache.stratos.manager.console/console/controllers/router.jag
deleted file mode 100644
index f49b165..0000000
--- a/components/org.apache.stratos.manager.console/console/controllers/router.jag
+++ /dev/null
@@ -1,136 +0,0 @@
-<%
-/*
- *
- * 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.
- *
- */
-
-(function(){
- var carbon = require('carbon');
- var conf = carbon.server.loadConfig('carbon.xml');
- var offset = conf.*::['Ports'].*::['Offset'].text();
- var hostName = conf.*::['HostName'].text().toString();
-
- if (hostName === null || hostName === '') {
- hostName = 'localhost';
- }
-
- var httpPort = 9763 + parseInt(offset, 10);
- var httpsPort = 9443 + parseInt(offset, 10);
-
- var process = require('process');
- process.setProperty('server.host', hostName);
- process.setProperty('http.port', httpPort.toString());
- process.setProperty('https.port', httpsPort.toString());
-
- var config=require('/config/console.js').config();
- var log = new Log("controller.router");
- var acl = require('/util/acl.jag');
-
- var MSG_404='Asset not found'; //Eror 404 message
-
- var securityModule=require('/modules/security/security.manager.js').securityManagementModule();
- var file = require('/modules/file.js');
-
- var sm=securityModule.cached();
- //
- var matcher=new URIMatcher(request.getRequestURI());
-
- // we stream css and other theme related resources found under themes directory.
- if (matcher.match('/{context}/themes/{+file}')) {
- elements = matcher.elements();
- file.send('/themes/' + elements.file);
- return;
- }
-
- //This will short circuit the handling of the requests
- var passed=sm.check(session);
- var tenantDomain = session.get("TENANT_DOMAIN");
- var roleArray = session.get("ROLE_ARRAY");
-
- // comment out the above and uncomment below code bits for testing. It removes authentication/authorization
- // of the app.
-
- //var passed=true;
- //var tenantDomain = "carbon.super";
- //var roleArray = ["admin","Internal/Everyone"];
-
- //Stop servicing the request if the check failed
- if(!passed){
- return;
- }
-
- /*
- Checks the pattern array with the request uri
- @pattern: An array of patterns e.g./{context}/[ASSET_PATH]/{type}
- @uriMatcher : A URIMatcher object
- @return: true if the pattern matches,else false
- */
- function isMatchingPattern(patterns,uriMatcher){
- for each(var pattern in patterns){
- if(uriMatcher.match(pattern)){
- return true;
- }
- }
- return false;
- }
-
-
-
-
- var patterns=['/{context}','/{context}/','/{context}/{+suffix}'];
- if(isMatchingPattern(patterns,matcher)){
-
- var params=matcher.elements();
-
- var context=params.context;
- var suffix=params.suffix;
- var includePath ='/';
- if(!suffix){
- includePath += 'index.jag'; // index page rendering for /console
- }else{
- includePath += suffix;
- }
- //check if the file path exists
- var fileTester=new File(includePath);
-
- if(fileTester.isExists()){
- request.getMappedPath = function() {
- return includePath; // setting path for caramel framework
- };
- var permissionObject = acl.authorizationUtil.getPermissionObj(tenantDomain,roleArray);
- request.permissions = permissionObject;
- print(includePath);
- include(includePath);
- return;
- }
-
-
- /*var defaultPath='/default_page.jag';
- //Set the default path
- request.getMappedPath = function() {
- return defaultPath; // setting path for caramel framework
- };
- include(defaultPath);
- return; */
- }
-
- response.sendError(404,MSG_404);
-
-}());
-%>
http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/controllers/wizardSubmit.jag
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/controllers/wizardSubmit.jag b/components/org.apache.stratos.manager.console/console/controllers/wizardSubmit.jag
deleted file mode 100644
index a8b6451..0000000
--- a/components/org.apache.stratos.manager.console/console/controllers/wizardSubmit.jag
+++ /dev/null
@@ -1,86 +0,0 @@
-<%
-/*
- *
- * 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.
- *
- */
-(function(){
- var log = new Log("controller.wizardSubmit");
- var utils = require('/util/utility.jag');
- var action = request.getParameter("action");
- if(action !=null && action == "undeploy"){
- var type = request.getParameter("type");
- undeployMsg = utils.consoleAppUtil.undeployCartridge(type);
- print(undeployMsg);
- }else{
- var thisStep = request.getParameter("thisStep");
- var nextStep = request.getParameter("nextStep");
- var skip = request.getParameter("skip");
- if(parseInt(thisStep)<parseInt(nextStep) && skip != "true"){
- var policy = request.getParameter("policy")
-
- if(parseInt(thisStep) == 1 && policy != "" ){
- utils.consoleAppUtil.deployPartitionDefinition(policy);
- session.put("deploy_artifacts", "Partition Deployment");
-
- }
- if(parseInt(thisStep) == 2 && policy != "" ){
- utils.consoleAppUtil.deployAutoscalePolicyDefinition(policy);
- session.put("deploy_artifacts", "Autoscale Policy Deployment");
-
- }
- if(parseInt(thisStep) == 3 && policy != "" ){
- var foo = utils.consoleAppUtil.deployDeploymentPolicyDefinition(policy);
- session.put("deploy_artifacts", "Deployment Policy Deployment");
-
- }
- if(parseInt(thisStep) == 4 && policy != "" ){
- utils.consoleAppUtil.deployLbDefinition(policy);
- session.put("deploy_artifacts", "Lb Deployment");
-
- }
- if(parseInt(thisStep) == 5 && policy != "" ){
- utils.consoleAppUtil.deployCartridgeDefinition(policy);
- session.put("deploy_artifacts", "Cartridge Deployment");
-
- }
- if(parseInt(thisStep) == 6 && policy != "" ){
- utils.consoleAppUtil.deployServiceDefinition(policy);
- session.put("deploy_artifacts", "Service Deployment");
-
- }
- }
-
- var configuring = session.get("configuring");
- var get_status = session.get("get-status");
- var deploy_status = session.get("deploy-status");
- var url = "";
-
- if(deploy_status != null && deploy_status != "succeeded") {
- url = request.getContextPath() + '/configure_stratos_wizard.jag?step=' + thisStep;
- } else {
- url = request.getContextPath() + '/configure_stratos_wizard.jag?step=' + nextStep;
- }
- if(configuring == "true"){
- url = request.getContextPath() + '/configure_stratos.jag?step=' + thisStep;
- }
- response.sendRedirect(url);
- }
-
-}());
-%>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/dashboard.jag
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/dashboard.jag b/components/org.apache.stratos.manager.console/console/dashboard.jag
deleted file mode 100644
index 7689e7f..0000000
--- a/components/org.apache.stratos.manager.console/console/dashboard.jag
+++ /dev/null
@@ -1,33 +0,0 @@
-<%
-/*
- *
- * 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("console.index");
-var error = [];
-var caramel = require('caramel');
-var utils = require('/util/utility.jag');
-var elbs = require('/data/elbs.json');
-var clusters = require('/data/clusters.json');
-caramel.render({
- elbs:elbs,
- clusters:clusters,
- error:error
-});
-%>
http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/error-404.html
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/error-404.html b/components/org.apache.stratos.manager.console/console/error-404.html
deleted file mode 100644
index 5f121d0..0000000
--- a/components/org.apache.stratos.manager.console/console/error-404.html
+++ /dev/null
@@ -1,110 +0,0 @@
-<!--
-
- 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.
-
--->
-
-<!DOCTYPE html>
-<!--[if lt IE 7]>
-<html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
-<!--[if IE 7]>
-<html class="no-js lt-ie9 lt-ie8"> <![endif]-->
-<!--[if IE 8]>
-<html class="no-js lt-ie9"> <![endif]-->
-<!--[if gt IE 8]><!-->
-<html class="no-js"> <!--<![endif]-->
-<head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <title>Apache Stratos - Error </title>
- <meta name="description" content="">
- <meta name="viewport" content="width=device-width">
- <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,800' rel='stylesheet' type='text/css'>
- <link href="themes/theme1/ui/css/bootstrap.css" rel="stylesheet">
- <link href="themes/theme1/ui/css/bootstrap-theme.css" rel="stylesheet">
- <link href="themes/theme1/ui/css/bootstrap-missing.css" rel="stylesheet">
- <link href="themes/theme1/ui/css/main.css" rel="stylesheet">
- <link rel="shortcut icon" href="themes/theme1/ui/img/favicon.png">
-</head>
-<body>
-
-<div id="dcontainer"></div>
-
-<!--[if lt IE 7]>
-<p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade
- your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to
- improve your experience.</p>
-<![endif]-->
-
-
-<!-- Part 1: Wrap all page content here -->
-<div id="wrap">
-
- <div class="top-blue-strip"></div>
- <style>
- body {
- padding-top: 0;
- padding-bottom: 0;
- }
- </style>
-
-
- <div class="container">
- <div class="row">
- <div class="col-lg-12">
- <a style="margin-top: 20px;display: inline-block" href="/console"><img src="themes/theme1/ui/img/logo-login.png"/></a>
-
- <h1>OOPS!</h1>
- </div>
- </div>
- </div>
- <div class="container">
- <div class="row">
- <div class="col-lg-12">
- <div class="h2-wrapper"><h2>We are really sorry but the page you requested cannot be found.</h2></div>
- </div>
- </div>
- <div class="row">
-
- <div class="col-md-12">
- It seems that the a page you were trying to reach doesn't exist anymore, or maybe it has just moved. We think that the best thing to do is to start again from the <a href="{{url "/"}}">home page</a>. Feel free to contact us if the problem persist or if you definitely can't find what you are looking for. Thank you very much.
- </div>
- </div>
- </div>
-
-
-
- <!-- /container -->
- <div id="push"></div>
-</div>
-
-<footer id="footer">
- <div class="container">
- <div class="pull-left"><img src="themes/theme1/ui/img/egg-logo.png" /></div>
- <div class="pull-right footer-right">
- Copyright © 2014 The Apache Software Foundation, Licensed under the Apache License, Version 2.0.
- Apache Stratos, Apache, the Apache feather logo are trademarks of The Apache Software Foundation.
- </div>
- <div style="clear:both"></div>
- </div>
-</footer>
-
-
-
-</body>
-</html>
http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/error.html
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/error.html b/components/org.apache.stratos.manager.console/console/error.html
deleted file mode 100644
index c562b1c..0000000
--- a/components/org.apache.stratos.manager.console/console/error.html
+++ /dev/null
@@ -1,118 +0,0 @@
-<!--
-
- 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.
-
--->
-
-<!DOCTYPE html>
-<!--[if lt IE 7]>
-<html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
-<!--[if IE 7]>
-<html class="no-js lt-ie9 lt-ie8"> <![endif]-->
-<!--[if IE 8]>
-<html class="no-js lt-ie9"> <![endif]-->
-<!--[if gt IE 8]><!-->
-<html class="no-js"> <!--<![endif]-->
-<head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <title>Apache Stratos - Error </title>
- <meta name="description" content="">
- <meta name="viewport" content="width=device-width">
- <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,800' rel='stylesheet' type='text/css'>
- <link href="themes/theme1/ui/css/bootstrap.css" rel="stylesheet">
- <link href="themes/theme1/ui/css/bootstrap-theme.css" rel="stylesheet">
- <link href="themes/theme1/ui/css/bootstrap-missing.css" rel="stylesheet">
- <link href="themes/theme1/ui/css/main.css" rel="stylesheet">
- <link rel="shortcut icon" href="themes/theme1/ui/img/favicon.png">
-</head>
-<body>
-
-<div id="dcontainer"></div>
-
-<!--[if lt IE 7]>
-<p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade
- your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to
- improve your experience.</p>
-<![endif]-->
-
-
-<!-- Part 1: Wrap all page content here -->
-<div id="wrap">
-
- <div class="top-blue-strip"></div>
- <style>
- body {
- padding-top: 0;
- padding-bottom: 0;
- }
- </style>
-
-
- <div class="container">
- <div class="row">
- <div class="col-lg-12">
- <a style="margin-top: 20px;display: inline-block" href="/console"><img src="themes/theme1/ui/img/logo-login.png"/></a>
-
- <h1>OOPS!</h1>
- </div>
- </div>
- </div>
- <div class="container">
- <div class="row">
- <div class="col-lg-12">
- <div class="h2-wrapper"><h2>We're sorry, the Apache Stratos have encountered an error.</h2></div>
- </div>
- </div>
- <div class="row">
-
- <div class="col-md-12">
- <p>
- We apologize for the interruption to your work. Apache Stratos had a problem processing your request.
- We take these problems seriously.
- </p>
- <p>Please report your problem by creating a JIRA at <a href="https://issues.apache.org/jira/browse/STRATOS">https://issues.apache.org/jira/browse/STRATOS</a>.</p>
- <p>
- Or drop a mail to our developer list as described in
- <a href="http://stratos.apache.org/community/mailing-lists.html">http://stratos.apache.org/community/mailing-lists.html</a>
- </p>
- </div>
- </div>
- </div>
-
-
-
- <!-- /container -->
- <div id="push"></div>
-</div>
-
-<footer id="footer">
- <div class="container">
- <div class="pull-left"><img src="themes/theme1/ui/img/egg-logo.png" /></div>
- <div class="pull-right footer-right">
- Copyright © 2014 The Apache Software Foundation, Licensed under the Apache License, Version 2.0.
- Apache Stratos, Apache, the Apache feather logo are trademarks of The Apache Software Foundation.
- </div>
- <div style="clear:both"></div>
- </div>
-</footer>
-
-
-
-</body>
-</html>
http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/index.jag
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/index.jag b/components/org.apache.stratos.manager.console/console/index.jag
deleted file mode 100644
index 368bade..0000000
--- a/components/org.apache.stratos.manager.console/console/index.jag
+++ /dev/null
@@ -1,50 +0,0 @@
-<%
-/*
- *
- * 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("console.index");
-var error=[];
-var caramel = require('caramel');
-var utils = require('/util/utility.jag');
-var process = require('process');
-
-var subscribedCartridges = utils.consoleAppUtil.getSubscribedCartridges();
-
-if(subscribedCartridges == null || subscribedCartridges == undefined || subscribedCartridges == ""){
- subscribedCartridges = {};
-}
-
-var errorInSession = session.get("errorinbackend");
-if(errorInSession != undefined) {
- session.remove("errorinbackend");
- error.push(errorInSession);
-}
-
-if(subscribedCartridges.Error != undefined){
- error.push(subscribedCartridges.Error);
-}
-
-var bamInfo ={bamip:process.getProperty('bam.ip'),bamport:process.getProperty('bam.port')};
-caramel.render({
- mycartridges:subscribedCartridges,
- bamInfo:bamInfo,
- error:error
-});
-%>
http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/jaggery.conf
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/jaggery.conf b/components/org.apache.stratos.manager.console/console/jaggery.conf
deleted file mode 100644
index b8ac217..0000000
--- a/components/org.apache.stratos.manager.console/console/jaggery.conf
+++ /dev/null
@@ -1,27 +0,0 @@
-{
- "initScripts": ["app.js"],
- "logLevel": "info",
- "urlMappings":[
- {
- "url":"/loginSubmit",
- "path":"/controllers/loginSubmit.jag"
- },
- {
- "url":"/acs",
- "path":"/controllers/acs.jag"
- },
- {
- "url":"/*",
- "path":"/controllers/router.jag"
- },
- {
- "url":"/login",
- "path":"/controllers/login.jag"
- }
- ],
- "errorPages":
- {
- "500":"/error.html",
- "404":"/error-404.html"
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/js/dialog.js
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/js/dialog.js b/components/org.apache.stratos.manager.console/console/js/dialog.js
deleted file mode 100644
index 4378b18..0000000
--- a/components/org.apache.stratos.manager.console/console/js/dialog.js
+++ /dev/null
@@ -1,390 +0,0 @@
-/*
- *
- * 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.
- *
-*/
-
-if (typeof CARBON == "undefined" || CARBON) {
- /**
- * The CARBON global namespace object. If CARBON is already defined, the
- * existing CARBON object will not be overwirrten so that defined
- * namespaces are preserved
- */
- var CARBON = {};
-}
-
-var pageLoaded = false;
-
-jQuery(document).ready(function() {
- pageLoaded = true;
-});
-
-/**
- * Display the Warning Message inside a jQuery UI's dialog widget.
- * @method showWarningDialog
- * @param {String} message to display
- * @return {Boolean}
- */
-CARBON.showWarningDialog = function(message, callback, closeCallback) {
- var strDialog = "<div id='dialog' title='WSO2 Carbon'><div id='messagebox-warning'><p>" +
- message + "</p></div></div>";
- //var strDialog = "<div id='dialog' title='WSO2 Carbon'><div id='messagebox'><img src='img/warning.gif'/><p>" +
- // message + "</p></div></div>";
- var func = function() {
- jQuery("#dcontainer").html(strDialog);
-
- jQuery("#dialog").dialog({
- close:function() {
- jQuery(this).dialog('destroy').remove();
- jQuery("#dcontainer").empty();
- if (closeCallback && typeof closeCallback == "function") {
- closeCallback();
- }
- return false;
- },
- buttons:{
- "OK":function() {
- jQuery(this).dialog("destroy").remove();
- jQuery("#dcontainer").empty();
- if(callback && typeof callback == "function")
- callback();
- return false;
- }
- },
- height:160,
- width:450,
- minHeight:160,
- minWidth:330,
- modal:true
- });
- };
- if (!pageLoaded) {
- jQuery(document).ready(func);
- } else {
- func();
- }
-
-};
-
-/**
- * Display the Error Message inside a jQuery UI's dialog widget.
- * @method showErrorDialog
- * @param {String} message to display
- * @return {Boolean}
- */
-CARBON.showErrorDialog = function(message, callback, closeCallback) {
- var strDialog = "<div id='dialog' title='WSO2 Carbon'><div id='messagebox-error'><p>" +
- message + "</p></div></div>";
- //var strDialog = "<div id='dialog' title='WSO2 Carbon'><div id='messagebox'><img src='img/error.gif'/><p>" +
- // message + "</p></div></div>";
- var func = function() {
- jQuery("#dcontainer").html(strDialog);
-
- jQuery("#dialog").dialog({
- close:function() {
- jQuery(this).dialog('destroy').remove();
- jQuery("#dcontainer").empty();
- if (closeCallback && typeof closeCallback == "function") {
- closeCallback();
- }
- return false;
- },
- buttons:{
- "OK":function() {
- jQuery(this).dialog("destroy").remove();
- jQuery("#dcontainer").empty();
- if(callback && typeof callback == "function")
- callback();
- return false;
- }
- },
- height:200,
- width:490,
- minHeight:160,
- minWidth:330,
- modal:true
- });
- };
- if (!pageLoaded) {
- jQuery(document).ready(func);
- } else {
- func();
- }
-
-};
-
-/**
- * Display the Info Message inside a jQuery UI's dialog widget.
- * @method showInfoDialog
- * @param {String} message to display
- * @return {Boolean}
- */
-CARBON.showInfoDialog = function(message, callback, closeCallback) {
- var strDialog = "<div id='dialog' title='WSO2 Carbon'><div id='messagebox-info'><p>" +
- message + "</p></div></div>";
- //var strDialog = "<div id='dialog' title='WSO2 Carbon'><div id='messagebox'><img src='img/info.gif'/><p>" +
- // message + "</p></div></div>";
- var func = function() {
- jQuery("#dcontainer").html(strDialog);
-
- jQuery("#dialog").dialog({
- close:function() {
- jQuery(this).dialog('destroy').remove();
- jQuery("#dcontainer").empty();
- if (closeCallback && typeof closeCallback == "function") {
- closeCallback();
- }
- return false;
- },
- buttons:{
- "OK":function() {
- jQuery(this).dialog("destroy").remove();
- jQuery("#dcontainer").empty();
- if(callback && typeof callback == "function")
- callback();
- return false;
- }
- },
- height:160,
- width:450,
- minHeight:160,
- minWidth:330,
- modal:true
- });
- };
- if (!pageLoaded) {
- jQuery(document).ready(func);
- } else {
- func();
- }
-
-};
-
-/**
- * Display the Confirmation dialog.
- * @method showConfirmationDialog
- * @param {String} message to display
- * @param {Function} handleYes callback function to execute after user press Yes button
- * @param {Function} handleNo callback function to execute after user press No button
- * @return {Boolean} It's prefer to return boolean always from your callback functions to maintain consistency.
- */
-CARBON.showConfirmationDialog = function(message, handleYes, handleNo, closeCallback){
- /* This function always assume that your second parameter is handleYes function and third parameter is handleNo function.
- * If you are not going to provide handleYes function and want to give handleNo callback please pass null as the second
- * parameter.
- */
- var strDialog = "<div id='dialog' title='WSO2 Carbon'><div id='messagebox-confirm'><p>" +
- message + "</p></div></div>";
-
- handleYes = handleYes || function(){return true};
-
- handleNo = handleNo || function(){return false};
- var func = function() {
- jQuery("#dcontainer").html(strDialog);
-
- jQuery("#dialog").dialog({
- close:function() {
- jQuery(this).dialog('destroy').remove();
- jQuery("#dcontainer").empty();
- if (closeCallback && typeof closeCallback == "function") {
- closeCallback();
- }
- return false;
- },
- buttons:{
- "Yes":function() {
- jQuery(this).dialog("destroy").remove();
- jQuery("#dcontainer").empty();
- handleYes();
- },
- "No":function(){
- jQuery(this).dialog("destroy").remove();
- jQuery("#dcontainer").empty();
- handleNo();
- }
- },
- height:160,
- width:450,
- minHeight:160,
- minWidth:330,
- modal:true
- });
- };
- if (!pageLoaded) {
- jQuery(document).ready(func);
- } else {
- func();
- }
- return false;
-}
-
-/**
- * Display the Info Message inside a jQuery UI's dialog widget.
- * @method showPopupDialog
- * @param {String} message to display
- * @return {Boolean}
- */
-CARBON.showPopupDialog = function(message, title, windowHight, okButton, callback, windowWidth) {
- var strDialog = "<div id='dialog' title='" + title + "'><div id='popupDialog'></div>" + message + "</div>";
- var requiredWidth = 750;
- if (windowWidth) {
- requiredWidth = windowWidth;
- }
- var func = function() {
- jQuery("#dcontainer").html(strDialog);
- if (okButton) {
- jQuery("#dialog").dialog({
- close:function() {
- jQuery(this).dialog('destroy').remove();
- jQuery("#dcontainer").empty();
- return false;
- },
- buttons:{
- "OK":function() {
- if (callback && typeof callback == "function")
- callback();
- jQuery(this).dialog("destroy").remove();
- jQuery("#dcontainer").empty();
- return false;
- }
- },
- height:windowHight,
- width:requiredWidth,
- minHeight:windowHight,
- minWidth:requiredWidth,
- modal:true
- });
- } else {
- jQuery("#dialog").dialog({
- close:function() {
- jQuery(this).dialog('destroy').remove();
- jQuery("#dcontainer").empty();
- return false;
- },
- height:windowHight,
- width:requiredWidth,
- minHeight:windowHight,
- minWidth:requiredWidth,
- modal:true
- });
- }
-
- jQuery('.ui-dialog-titlebar-close').click(function(){
- jQuery('#dialog').dialog("destroy").remove();
- jQuery("#dcontainer").empty();
- jQuery("#dcontainer").html('');
- });
-
- };
- if (!pageLoaded) {
- jQuery(document).ready(func);
- } else {
- func();
- }
-};
-
-/**
- * Display the Input dialog.
- * @method showInputDialog
- * @param {String} message to display
- * @param {Function} handleOk callback function to execute after user press OK button.
- * @param {Function} handleCancel callback function to execute after user press Cancel button
- * @param {Function} closeCallback callback function to execute after user close the dialog button.
- * @return {Boolean} It's prefer to return boolean always from your callback functions to maintain consistency.
- *
- * handleOk function signature
- * ---------------------------
- * function(inputText){
- * //logic
- * }
- */
-CARBON.showInputDialog = function(message, handleOk, handleCancel, closeCallback){
- var strInput = "<div style='margin:20px;'><p>"+message+ "</p><br/>"+
- "<input type='text' id='carbon-ui-dialog-input' size='40' name='carbon-dialog-inputval'></div>";
- var strDialog = "<div id='dialog' title='WSO2 Carbon'>" + strInput + "</div>";
- var func = function() {
- jQuery("#dcontainer").html(strDialog);
- jQuery("#dialog").dialog({
- close:function() {
- jQuery(this).dialog('destroy').remove();
- jQuery("#dcontainer").empty();
- if (closeCallback && typeof closeCallback == "function") {
- closeCallback();
- }
- return false;
- },
- buttons:{
- "OK":function() {
- var inputVal = jQuery('input[name=carbon-dialog-inputval]').fieldValue();
- handleOk(inputVal);
- jQuery(this).dialog("destroy").remove();
- jQuery("#dcontainer").empty();
- return false;
- },
- "Cancel":function(){
- jQuery(this).dialog("destroy").remove();
- jQuery("#dcontainer").empty();
- handleCancel();
- }
- },
- height:160,
- width:450,
- minHeight:160,
- minWidth:330,
- modal:true
- });
- };
- if (!pageLoaded) {
- jQuery(document).ready(func);
- } else {
- func();
- }
-}
-/**
- * Display the loading dialog.
- * @method showLoadingDialog
- * @param {String} message to display
- * @param {Function} handleRemoveMessage callback function to triger the removal of the message.
- * handleOk function signature
- * ---------------------------
- * function(inputText){
- * //logic
- * }
- */
-CARBON.showLoadingDialog = function(message, handleRemoveMessage){
- //var strInput = "<div id='dcontainer' style='margin:20px;'><p><img src='../admin/images/loading.gif' />"+message+ "</p><br/></div>";
-
-
- var func = function() {
- var windowHeight = 20;
- var windowWidth = 100 + message.length*7;
- var strDialog = '<div class="ui-dialog-overlay" style="border-width: 0pt; margin: 0pt; padding: 0pt; position: absolute; top: 0pt; left: 0pt; width: ' + jQuery(document).width() + 'px; height: ' + jQuery(document).height() + 'px; z-index: 1001;">' +
- '<div class="loadingDialogBox" style="background-color:#fff;border-radious:5px; -moz-border-radious:5px;possition:absolute;margin-top:' + (( jQuery(window).height() - windowHeight ) / 2+jQuery(window).scrollTop()) + 'px;margin-left:' + (( jQuery(window).width() - windowWidth ) / 2+jQuery(window).scrollLeft()) + 'px;height:'+windowHeight+'px;width:'+windowWidth+'px;">' + message + '</div>' +
- '</div>';
- jQuery("#dcontainer").html(strDialog);
-
- };
- if (!pageLoaded) {
- jQuery(document).ready(func);
- } else {
- func();
- }
-}
-CARBON.closeWindow = function(){
-jQuery("#dialog").dialog("destroy").remove();
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/js/main.js
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/js/main.js b/components/org.apache.stratos.manager.console/console/js/main.js
deleted file mode 100644
index b72383c..0000000
--- a/components/org.apache.stratos.manager.console/console/js/main.js
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- *
- * 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.
- *
-*/
-
-function validateEmpty(fldname) {
- var fld = document.getElementsByName(fldname)[0];
- var error = "";
- var value = fld.value;
- if (value.length == 0) {
- error = fld.name + " ";
- return error;
- }
- value = value.replace(/^\s+/, "");
- if (value.length == 0) {
- error = fld.name + "(contains only spaces) ";
- return error;
- }
- return error;
-}
-
-function cancelProcess(parameters){
- location.href = "index.jag?" + (parameters ? parameters : "");
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/login.jag
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/login.jag b/components/org.apache.stratos.manager.console/console/login.jag
deleted file mode 100644
index 5b662c0..0000000
--- a/components/org.apache.stratos.manager.console/console/login.jag
+++ /dev/null
@@ -1,30 +0,0 @@
-<%
-/*
- *
- * 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 caramel = require('caramel');
-var error = session.get("error");
-if(error == null) {
- error = "";
-}
-session.remove("error"); // remove previous errors if any
-
-caramel.render({error:error});
-%>
http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/modules/README
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/modules/README b/components/org.apache.stratos.manager.console/console/modules/README
deleted file mode 100644
index dccec0a..0000000
--- a/components/org.apache.stratos.manager.console/console/modules/README
+++ /dev/null
@@ -1 +0,0 @@
-Contains modules required for the project
http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/modules/file.js
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/modules/file.js b/components/org.apache.stratos.manager.console/console/modules/file.js
deleted file mode 100644
index 239301a..0000000
--- a/components/org.apache.stratos.manager.console/console/modules/file.js
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- *
- * 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 send = function(path) {
- var mime,
- file = new File(path);
- if(!file.isExists()) {
- response.sendError(404, 'Request resource not found');
- return;
- }
- mime = require('/modules/mime.js');
- response.addHeader('Content-Type', mime.getType(path));
- file.open('r');
- print(file.getStream());
- file.close();
-};
http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/modules/mime.js
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/modules/mime.js b/components/org.apache.stratos.manager.console/console/modules/mime.js
deleted file mode 100644
index 721a06b..0000000
--- a/components/org.apache.stratos.manager.console/console/modules/mime.js
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- *
- * 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 getType = function (path) {
- var index = path.lastIndexOf('.');
- var ext = index < path.length ? path.substring(index + 1) : '';
- switch (ext) {
- case 'js':
- return 'application/javascript';
- case 'css':
- return 'text/css';
- case 'html':
- return 'text/html';
- case 'png':
- return 'image/png';
- case 'gif':
- return 'image/gif';
- case 'jpeg':
- return 'image/jpeg';
- case 'jpg':
- return 'image/jpg';
- default :
- return 'text/plain';
- }
-};
http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/modules/pinch.min.js
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/modules/pinch.min.js b/components/org.apache.stratos.manager.console/console/modules/pinch.min.js
deleted file mode 100644
index 9abe928..0000000
--- a/components/org.apache.stratos.manager.console/console/modules/pinch.min.js
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- *
- * 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.
- *
-*/
-
-(function(){var k=function(a,c){return a.length!==c.length?!1:a.every(function(a,b){return c[b]===a})},j=function(a,c,d){var b,e;if("[object Array]"===Object.prototype.toString.call(a)){b=0;for(e=a.length;b<e;b++)c.apply(d,[b,a[b],a])}else for(b in a)a.hasOwnProperty(b)&&c.apply(d,[b,a[b],a])},h=function(a){for(var c=[],d=!1,b=0,e=a.length,f="",g=function(){f&&(c.push(f),f="")};b<e;b++)a[b].match(/\[|\]/)?(g(),d="]"===a[b]?!1:!0):'"'!==a[b]&&"'"!==a[b]&&("."===a[b]&&!d?g():f+=a[b]),b===e-1&&g();return c},
-g=function(a,c,d){var b=-1!==["string","object"].indexOf(typeof a),e="string"===typeof c||c&&c.test&&c.exec,f=-1!==["string","object","function"].indexOf(typeof d);b&&e&&f&&("string"===typeof a?(this.instance=JSON.parse(a),this.json=!0):this.instance=a,this.pattern="string"===typeof c?c.replace(/'/g,'"'):c,this.replacement=d,this.createIndex(this.instance))};g.prototype.createIndex=function(a,c){var d=this;this.index=this.index||[];c=c||"";j(a,function(a,e){var f,a=a+"";f=a.match(/^[a-zA-Z]+$/)?c?
-c+"."+a:a:a.match(/\d+/)?c+"["+a+"]":c+'["'+a+'"]';d.index.push(f);"object"===typeof e&&d.createIndex(e,f)})};g.prototype.replace=function(){var a=this;j(this.index,function(c,d){if(a.pattern&&a.pattern.test&&a.pattern.exec&&d.match(a.pattern))return a.replaceValue(d);if("string"===typeof a.pattern){var b=h(d),e=h(a.pattern);if(k(b,e))return a.replaceValue(d)}});return this.json?JSON.stringify(this.instance):this.instance};g.prototype.replaceValue=function(a){var c=this,d=h(a);d.reduce(function(b,
-e,f){if(f===d.length-1)f="function"===typeof c.replacement?c.replacement(a,e,b[e]):c.replacement,b[e]=f;else return b[e]},this.instance)};var i=function(a,c,d,b){a=(new g(a,c,d)).replace();return"function"===typeof b?b(null,a):a};"undefined"!==typeof module&&module.exports?module.exports=i:"undefined"!==typeof define?define(function(){return i}):this.pinch=i})();
http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/modules/security/security.manager.js
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/modules/security/security.manager.js b/components/org.apache.stratos.manager.console/console/modules/security/security.manager.js
deleted file mode 100644
index 309fe3e..0000000
--- a/components/org.apache.stratos.manager.console/console/modules/security/security.manager.js
+++ /dev/null
@@ -1,94 +0,0 @@
-/*
- *
- * 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.
- *
-*/
-
-/*
-Description: The class is used to manage the security aspects of the app
-Created Date: 5/10/2013
-Filename: security.manager.js
- */
-securityManagementModule=function(){
-
- var APP_SECURITY_MANAGER='security.manager';
- var provider=require('/modules/security/security.provider.js').securityModule();
- var log=new Log('security.manager');
-
- function SecurityManager(){
- this.provider=provider;
- }
-
-
- /*
- The function is used to perform a security check on a request
- @cb: An optional callback function which will be invoked if a check fails
- @return: True if the check passes,else false
- */
- SecurityManager.prototype.check=function(session,cb){
-
- var passed=false;
-
- //Checks whether the request can be handled
- if(this.provider.isPermitted(session)){
- log.debug('passed the security check.');
-
- this.provider.onSecurityCheckPass();
-
- passed=true;
- }
- else{
- log.debug('failed the security check.');
-
- //Check if a user has provided a call back
- if(cb){
- cb();
- }
- else{
- this.provider.onSecurityCheckFail();
- }
-
- }
-
- return passed;
- }
-
- /*
- The function is used to obtain a cached copy of the
- SecurityManager
- @return: A cached copy of the Security Manager from the
- application context
- */
- function cached(){
- //var instance=application.get(APP_SECURITY_MANAGER);
-
- //Checks if an instance exists
- //if(!instance){
- instance=new SecurityManager();
- //}
-
- return instance;
- }
-
- return {
- SecurityManager:SecurityManager,
- cached:cached
- }
-}
-
-
http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/modules/security/security.provider.js
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/modules/security/security.provider.js b/components/org.apache.stratos.manager.console/console/modules/security/security.provider.js
deleted file mode 100644
index e8db7c2..0000000
--- a/components/org.apache.stratos.manager.console/console/modules/security/security.provider.js
+++ /dev/null
@@ -1,71 +0,0 @@
-/*
- *
- * 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.
- *
-*/
-
-/*
- Description:The class is used to secure pages by checking if a user is logged before
- accessing a page
- Created Date: 5/10/2013
- Filename: url.security.provider.js
- */
-
-var securityModule = function () {
-
- var log=new Log('security.provider');
-
- /*
- The function checks if a user is present in the session
- @return: True if the user is allowed to access the url,else false
- */
- function isPermitted(session) {
-
- //Obtain the session and check if there is a user
- var user = require('console').server.current(session);
- if (user) {
- return true;
- }
-
- return false;
- }
-
- /*
- The function is invoked when the the security check fails
- and redirects the user to the login page
- */
- function onSecurityCheckFail() {
- log.debug('security check failed redirecting...');
- response.sendRedirect('/console/login');
- }
-
- /*
- The function is invoked when the security check is passed
- */
- function onSecurityCheckPass() {
- //Do nothing for now :)
- }
-
- return{
-
- isPermitted: isPermitted,
- onSecurityCheckFail: onSecurityCheckFail,
- onSecurityCheckPass: onSecurityCheckPass
-
- }
-};
http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/subscribe_cartridge.jag
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/subscribe_cartridge.jag b/components/org.apache.stratos.manager.console/console/subscribe_cartridge.jag
deleted file mode 100644
index b0b06c2..0000000
--- a/components/org.apache.stratos.manager.console/console/subscribe_cartridge.jag
+++ /dev/null
@@ -1,70 +0,0 @@
-<%
-/*
- *
- * 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("subscribe_cartridge");
-var error = [];
-var caramel = require('caramel');
-var utils = require('/util/utility.jag');
-var process = require('process');
-var type = request.getParameter('cartridgeType');
-var autoScalePolicies = utils.consoleAppUtil.getAutoScalePolicies();
-var deploymentPolicies = utils.consoleAppUtil.getApplicableDeploymentPolicies(type);
-var mtServiceInfo = utils.consoleAppUtil.getServiceInfo(type);
-var cartridge = utils.consoleAppUtil.getSingleTenantCartridgeInfo(type);
-
-if(autoScalePolicies == null || autoScalePolicies == undefined || autoScalePolicies == ""){
- autoScalePolicies = {};
-}
-if(autoScalePolicies.Error != undefined ){
- error.push(autoScalePolicies.Error);
-}
-
-if(deploymentPolicies == null || deploymentPolicies == undefined || deploymentPolicies == ""){
- deploymentPolicies = {};
-}
-if(deploymentPolicies.Error != undefined ){
- error.push(deploymentPolicies.Error);
-}
-
-if(cartridge == null || cartridge == undefined || cartridge == ""){
- cartridge = {};
-}
-if(cartridge.Error != undefined ){
- error.push(cartridge.Error);
-}
-
-if(mtServiceInfo == null || mtServiceInfo == undefined || mtServiceInfo == ""){
- mtServiceInfo = {};
-}
-if(mtServiceInfo.Error != undefined ){
- error.push(mtServiceInfo.Error);
-}
-
-var bamInfo ={bamip:process.getProperty('bam.ip'),bamport:process.getProperty('bam.port')};
-caramel.render({
- cartridge:cartridge,
- autoScalePolicies:autoScalePolicies,
- deploymentPolicies:deploymentPolicies,
- mtServiceInfo:mtServiceInfo,
- bamInfo:bamInfo,
- error:error
-});
-%>
http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/tenant_management.jag
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/tenant_management.jag b/components/org.apache.stratos.manager.console/console/tenant_management.jag
deleted file mode 100644
index df20752..0000000
--- a/components/org.apache.stratos.manager.console/console/tenant_management.jag
+++ /dev/null
@@ -1,42 +0,0 @@
-<%
-/*
- *
- * 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("console.tenant_management");
-var caramel = require('caramel');
-var error = [];
-var utils = require('/util/utility.jag');
-var process = require('process');
-var tenants = utils.consoleAppUtil.getTenants();
-
-if(tenants == null || tenants == undefined || tenants == ""){
- tenants = {};
-}
-if(tenants.Error != undefined){
- error.push(tenants.Error);
-}
-
-var bamInfo ={bamip:process.getProperty('bam.ip'),bamport:process.getProperty('bam.port')};
-caramel.render({
- tenants:tenants,
- bamInfo:bamInfo,
- error:error
-});
-%>
http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/tenant_new.jag
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/tenant_new.jag b/components/org.apache.stratos.manager.console/console/tenant_new.jag
deleted file mode 100644
index 63e0b46..0000000
--- a/components/org.apache.stratos.manager.console/console/tenant_new.jag
+++ /dev/null
@@ -1,26 +0,0 @@
-<%
-/*
- *
- * 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 caramel = require('caramel');
-var log = new Log();
-caramel.render({
-});
-%>
http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/themes/README
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/themes/README b/components/org.apache.stratos.manager.console/console/themes/README
deleted file mode 100644
index e8fc5c7..0000000
--- a/components/org.apache.stratos.manager.console/console/themes/README
+++ /dev/null
@@ -1 +0,0 @@
-Contains themes applied for this application
http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/themes/theme1/pages/index.hbs
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/themes/theme1/pages/index.hbs b/components/org.apache.stratos.manager.console/console/themes/theme1/pages/index.hbs
deleted file mode 100644
index ed589e4..0000000
--- a/components/org.apache.stratos.manager.console/console/themes/theme1/pages/index.hbs
+++ /dev/null
@@ -1,111 +0,0 @@
-<!--
-
- 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.
-
--->
-
-<!DOCTYPE html>
-<!--[if lt IE 7]>
-<html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
-<!--[if IE 7]>
-<html class="no-js lt-ie9 lt-ie8"> <![endif]-->
-<!--[if IE 8]>
-<html class="no-js lt-ie9"> <![endif]-->
-<!--[if gt IE 8]><!-->
-<html class="no-js"> <!--<![endif]-->
-<head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- {{include title}}
- <meta name="description" content="">
- <meta name="viewport" content="width=device-width">
- <link rel="shortcut icon" href="{{url "/themes/theme1/ui/img/favicon.png"}}">
- <link href='{{url "/themes/theme1/ui/Open_Sans/open_sans.css"}}' rel='stylesheet' type='text/css'>
- <link href="{{url "/themes/theme1/ui/css/bootstrap.css"}}" rel="stylesheet">
- <link href="{{url "/themes/theme1/ui/css/bootstrap-theme.css"}}" rel="stylesheet">
- <link href="{{url "/themes/theme1/ui/css/bootstrap-missing.css"}}" rel="stylesheet">
-
- <link rel="stylesheet" href="{{url "/themes/theme1/ui/css/main.css"}}">
- <link rel="stylesheet" href="{{url "/themes/theme1/ui/css/smoothness/jquery-ui-1.10.3.custom.min.css"}}">
- <link rel="stylesheet" href="{{url "/themes/theme1/ui/css/smoothness/jqueryui-themeroller.css"}}">
- <link rel="stylesheet" href="{{url "/themes/theme1/ui/css/dialog.css"}}">
- <link rel="stylesheet" href="{{url "/themes/theme1/ui/custom-font-new/css/fontello.css"}}">
- <!--[if IE 7]>
- <link rel="stylesheet" rel="stylesheet" href="{{url "/themes/theme1/ui/custom-font-new/css/fontello-ie7.css"}}">
- <![endif]-->
-
-
- <script src="{{url "/themes/theme1/ui/js/vendor/jquery-1.10.1.min.js"}}"></script>
- <script src="{{url "/themes/theme1/ui/js/vendor/jquery-ui-1.10.3.custom.min.js"}}"></script>
-</head>
-<body>
-
-<div id="dcontainer"></div>
-
-<!--[if lt IE 7]>
-<p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade
- your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to
- improve your experience.</p>
-<![endif]-->
-
-
-{{include header}}
-{{include body}}
-
-<footer id="footer">
- <div class="container">
- <div class="pull-left"><img src="{{url "/themes/theme1/ui/img/asf-logo.png"}}" /></div>
- <div class="pull-right footer-right">
- Copyright © 2014 The Apache Software Foundation, Licensed under the Apache License, Version 2.0.
- Apache Stratos, Apache, the Apache feather logo are trademarks of The Apache Software Foundation.
- </div>
- <div style="clear:both"></div>
- </div>
-</footer>
-
-
-
-<script src="{{url "/themes/theme1/ui/js/vendor/bootstrap.min.js"}}"></script>
-<script src="{{url "/themes/theme1/ui/js/vendor/jquery.validate.min.js"}}"></script>
-<div class="speech-bubble help-section" id="speech_bubble_container" style="display: none">
- <div class="speech-pointer"></div>
- <i class="icon-help"></i>
-
- <p></p>
-</div>
-
-
-<!-- Modal -->
-<div class="modal fade" id="messageModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
-<div class="modal-dialog">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
- <h4 class="modal-title" id="myModalLabel"></h4>
- </div>
- <div class="modal-body">
- ...
- </div>
- <div class="modal-footer">
- </div>
- </div>
-</div>
-</div>
-
-</body>
-</html>
http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/themes/theme1/pages/plain.hbs
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/themes/theme1/pages/plain.hbs b/components/org.apache.stratos.manager.console/console/themes/theme1/pages/plain.hbs
deleted file mode 100644
index 89c9786..0000000
--- a/components/org.apache.stratos.manager.console/console/themes/theme1/pages/plain.hbs
+++ /dev/null
@@ -1,87 +0,0 @@
-<!--
-
- 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.
-
--->
-
-<!DOCTYPE html>
-<!--[if lt IE 7]>
-<html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
-<!--[if IE 7]>
-<html class="no-js lt-ie9 lt-ie8"> <![endif]-->
-<!--[if IE 8]>
-<html class="no-js lt-ie9"> <![endif]-->
-<!--[if gt IE 8]><!-->
-<html class="no-js"> <!--<![endif]-->
-<head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- {{include title}}
- <meta name="description" content="">
- <meta name="viewport" content="width=device-width">
- <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,800' rel='stylesheet' type='text/css'>
- <link href="{{url "/themes/theme1/ui/css/bootstrap.css"}}" rel="stylesheet">
- <link href="{{url "/themes/theme1/ui/css/bootstrap-theme.css"}}" rel="stylesheet">
- <link href="{{url "/themes/theme1/ui/css/bootstrap-missing.css"}}" rel="stylesheet">
- <link href="{{url "/themes/theme1/ui/css/main.css"}}" rel="stylesheet">
- <link rel="shortcut icon" href="{{url "/themes/theme1/ui/img/favicon.png"}}">
-</head>
-<body>
-
-<div id="dcontainer"></div>
-
-<!--[if lt IE 7]>
-<p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade
- your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to
- improve your experience.</p>
-<![endif]-->
-
-
-<!-- Part 1: Wrap all page content here -->
-<div id="wrap">
-
- {{include body}}
-
-
- <!-- /container -->
- <div id="push"></div>
-</div>
-
-<footer id="footer">
- <div class="container">
- <div class="pull-left"><img src="{{url "/themes/theme1/ui/img/asf-logo.png"}}" /></div>
- <div class="pull-right footer-right">
- Copyright © 2014 The Apache Software Foundation, Licensed under the Apache License, Version 2.0.
- Apache Stratos, Apache, the Apache feather logo are trademarks of The Apache Software Foundation.
- </div>
- <div style="clear:both"></div>
- </div>
-</footer>
-
-
-
-<script src="{{url "/themes/theme1/ui/js/vendor/bootstrap.min.js"}}"></script>
-<script src="{{url "/themes/theme1/ui/js/vendor/jquery.validate.min.js"}}"></script>
-<div class="speech-bubble help-section" id="speech_bubble_container" style="display: none">
- <div class="speech-pointer"></div>
- <i class="icon-help"></i>
-
- <p></p>
-</div>
-</body>
-</html>
http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/themes/theme1/partials/cartridge_info.hbs
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/themes/theme1/partials/cartridge_info.hbs b/components/org.apache.stratos.manager.console/console/themes/theme1/partials/cartridge_info.hbs
deleted file mode 100755
index fec4a57..0000000
--- a/components/org.apache.stratos.manager.console/console/themes/theme1/partials/cartridge_info.hbs
+++ /dev/null
@@ -1,126 +0,0 @@
-<!--
-
- 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.
-
--->
-
-<div class="container content-starter">
- <div class="row">
- <div class="col-lg-12">
- <h1><i class="icons-default icons-{{cartridgeType}} big-pro-icons"></i> {{cartridgeInfo.cartridgeAlias}}-<span>({{cartridgeInfo.displayName}} - {{cartridgeInfo.version}})</span></h1>
- </div>
- </div>
-</div>
-
-<div class="container">
-<div class="row">
- <div class="col-lg-12">
-
- <div style="margin-bottom:20px;">{{cartridgeInfo.description}}</div>
-
- <div class="data-title">Access URLs:</div>
- {{#each cartridgeInfo.portMappings}}
- <div>
- <a target="_blank" href="{{protocol}}://{{../cartridgeInfo.hostName}}:{{proxyPort}}">{{protocol}}://{{../cartridgeInfo.hostName}}:{{proxyPort}}</a>
- </div>
- {{/each}}
-
- <div class="data-title">ActiveInstances:</div>
- <div>{{cartridgeInfo.activeInstances}}</div>
-
- <div class="data-title">CartridgeAlias:</div>
- <div>{{cartridgeInfo.cartridgeAlias}}</div>
-
- <div class="data-title">CartridgeType:</div>
- <div>{{cartridgeInfo.cartridgeType}}</div>
-
- <div class="data-title">HostName:</div>
- <div>{{cartridgeInfo.hostName}}</div>
-
- <div class="data-title">Version:</div>
- <div>{{cartridgeInfo.version}}</div>
-
- <div class="data-title">Tenancy Model:</div>
- {{#if cartridgeInfo.multiTenant}}
- <div>true</div>
-
- {{else}}
- <div>false</div>
- {{/if}}
-
-
- <div class="data-title">Provider:</div>
- <div>{{cartridgeInfo.provider}}</div>
-
- {{#if cartridgeInfo.repoURL }}
- <div class="data-title">RepoURL</div>
- <div>{{cartridgeInfo.repoURL}}</div>
- {{/if}}
-
- {{#ifCond cartridgeInfo.provider "==" "data"}}
-
- <div class="data-title">UserName</div>
- <div>{{cartridgeInfo.dbUserName}}</div>
-
- <div class="data-title">Password</div>
- <div>{{cartridgeInfo.password}}</div>
-
- {{/ifCond}}
- {{#if clusterinfo.member}}
- <div class="data-title">Members Private ip(s):</div>
- <div>
- {{#each clusterinfo.member}}
- {{memberIp}}
- {{/each}}
- </div>
-
- <div class="data-title">Members Public ip(s):</div>
- <div>
- {{#each clusterinfo.member}}
- {{memberPublicIp}}
- {{/each}}
- </div>
-
- {{/if}}
-
- {{#each lbclusterinfo}}
- {{#if member}}
- <div class="data-title">LB Private ip:</div>
- <div>
- {{#each member}}
- {{memberIp}};
- {{/each}}
- </div>
-
- <div class="data-title">LB Public ip:</div>
- <div>
- {{#each member}}
- {{memberPublicIp}};
- {{/each}}
- </div>
-
- {{/if}}
- {{/each}}
-
- <div>
- </div>
-
-
- </div>
-</div>
-</div>
http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/themes/theme1/partials/cartridge_info_sg.hbs
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/themes/theme1/partials/cartridge_info_sg.hbs b/components/org.apache.stratos.manager.console/console/themes/theme1/partials/cartridge_info_sg.hbs
deleted file mode 100644
index 871f12c..0000000
--- a/components/org.apache.stratos.manager.console/console/themes/theme1/partials/cartridge_info_sg.hbs
+++ /dev/null
@@ -1,125 +0,0 @@
-<!--
-
- 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.
-
--->
-
-<div class="container content-starter">
- <div class="row">
- <div class="col-lg-12">
- <h1><i class="icons-default icons-{{cartridgeType}} big-pro-icons"></i> {{serviceGroup}}</h1>
- </div>
- </div>
-</div>
-
-<div class="container">
- <div class="row">
- <div class="col-lg-12">
- {{#each cartridges}}
- <div style="padding: 10px; margin:10px 0;border: solid 1px #ccc;background: #efefef;">
- <div style="margin-bottom:20px;">{{description}}</div>
-
- <div class="data-title">Access URLs:</div>
- {{#each portMappings}}
- <div>
- <a target="_blank" href="{{protocol}}://{{../hostName}}:{{proxyPort}}">{{protocol}}://{{../hostName}}:{{proxyPort}}</a>
- </div>
- {{/each}}
-
- <div class="data-title">ActiveInstances:</div>
- <div>{{activeInstances}}</div>
-
- <div class="data-title">CartridgeAlias:</div>
- <div>{{cartridgeAlias}}</div>
-
- <div class="data-title">CartridgeType:</div>
- <div>{{cartridgeType}}</div>
-
- <div class="data-title">HostName:</div>
- <div>{{hostName}}</div>
-
- <div class="data-title">Version:</div>
- <div>{{version}}</div>
-
- <div class="data-title">Tenancy Model:</div>
- {{#if multiTenant}}
- <div>Multi Tenant</div>
-
- {{else}}
- <div>Single Tenant</div>
- {{/if}}
-
-
- <div class="data-title">Provider:</div>
- <div>{{provider}}</div>
-
- {{#if repoURL }}
- <div class="data-title">RepoURL</div>
- <div>{{repoURL}}</div>
- {{/if}}
-
- {{#ifCond provider "==" "data"}}
-
- <div class="data-title">UserName</div>
- <div>{{dbUserName}}</div>
-
- <div class="data-title">Password</div>
- <div>{{password}}</div>
-
- {{/ifCond}}
- {{#if clusterinfo.member}}
- <div class="data-title">Members Private ip(s):</div>
- <div>
- {{#each clusterinfo.member}}
- {{memberIp}}
- {{/each}}
- </div>
-
- <div class="data-title">Members Public ip(s):</div>
- <div>
- {{#each clusterinfo.member}}
- {{memberPublicIp}}
- {{/each}}
- </div>
-
- {{/if}}
-
- {{#if lbclusterinfo.member}}
- <div class="data-title">LB Private ip:</div>
- <div>
- {{#each lbclusterinfo.member}}
- {{memberIp}};
- {{/each}}
- </div>
-
- <div class="data-title">LB Public ip:</div>
- <div>
- {{#each lbclusterinfo.member}}
- {{memberPublicIp}};
- {{/each}}
- </div>
-
- {{/if}}
-
- <div>
- </div>
- </div>
- {{/each}}
- </div>
- </div>
-</div>
http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/themes/theme1/partials/cartridges.hbs
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/themes/theme1/partials/cartridges.hbs b/components/org.apache.stratos.manager.console/console/themes/theme1/partials/cartridges.hbs
deleted file mode 100755
index 42d71a1..0000000
--- a/components/org.apache.stratos.manager.console/console/themes/theme1/partials/cartridges.hbs
+++ /dev/null
@@ -1,113 +0,0 @@
-<!--
-
- 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.
-
--->
-
-<div class="container content-starter">
- <div class="row">
- <div class="col-lg-12">
- <h1>{{title}}</h1>
- </div>
- </div>
-</div>
-
-<div class="container">
- <div class="row">
- {{#each cartridges}}
- {{#if serviceGroup}}
- <div class="col-md-6">
- <div class="box-container">
- <div class="row">
-
- <div class="col-lg-3">
-
- <div class="box-left"><i class="icons-default icons-{{cartridgeType}} big-pro-icons"></i></div>
-
- </div>
- <div class="col-lg-9">
- <a href="{{url "/subscribe_cartridge.jag"}}?cartridgeType={{cartridgeType}}&serviceGroup={{serviceGroup}}"><h3>{{serviceGroup}} - {{version}}</h3></a>
-
- {{#each items}}
- <div class="serviceGroup-child-wrapper">
- {{#if loadBalancer}}
- <h3>{{displayName}} - {{version}}</h3>
- <div class="cartridge-description">{{description}}</div>
- <div class="lb-description">This will be auto subscribed for you</div>
-
- {{else}}
- <div class="cartridge-description">{{description}}</div>
- <div class="cartridge-description">
- {{#if multiTenant}}
- <i class="icons-users"></i> Multi Tenant Enabled
- {{else}}
- <i class="icons-user"></i> Single Tenant
- {{/if}}
- </div>
- {{/if}}
- </div>
- {{/each}}
- </div>
- </div>
- </div>
- </div>
-
- {{else}} <!-- End serviceGroup check if -->
- <div class="col-md-6">
- <div class="box-container">
- <div class="row">
- <div class="col-lg-3">
- <div class="box-left"><i class="icons-default icons-{{cartridgeType}} big-pro-icons"></i></div>
- </div>
- <div class="col-lg-9">
- {{#if loadBalancer}}
- <h3>{{displayName}} - {{version}}</h3>
- <div class="cartridge-description">{{description}}</div>
- <div class="lb-description">This will be auto subscribed for you</div>
-
- {{else}}
- <a href="{{url "/subscribe_cartridge.jag"}}?cartridgeType={{cartridgeType}}"><h3>{{displayName}} - {{version}}</h3></a>
- <div class="cartridge-description">{{description}}</div>
- <div class="cartridge-description">
- {{#if multiTenant}}
- <i class="icons-users"></i> Multi Tenant Enabled
- {{else}}
- <i class="icons-user"></i> Single Tenant
- {{/if}}
- </div>
- {{/if}}
- </div>
- </div>
- </div>
- </div>
- {{/if}} <!-- End serviceGroup check -->
-
- {{else}} <!-- Each can have else close ( Else of #each cartridges ) -->
- <div class="col-lg-12">
- <div class="alert alert-info alert-empty-page">
- <strong>There are no Cartridges available for you.</strong>
- {{#isAllowed "configure"}}
- Go to <a href="{{url "/configure_stratos.jag"}}">Configure Stratos</a> page to start.
- {{else}}
- Please contact your system administrator.
- {{/isAllowed}}
- </div>
- </div>
- {{/each}}
- </div>
-</div>
http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/themes/theme1/partials/configure_stratos.hbs
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/themes/theme1/partials/configure_stratos.hbs b/components/org.apache.stratos.manager.console/console/themes/theme1/partials/configure_stratos.hbs
deleted file mode 100644
index 97e8f96..0000000
--- a/components/org.apache.stratos.manager.console/console/themes/theme1/partials/configure_stratos.hbs
+++ /dev/null
@@ -1,107 +0,0 @@
-<!--
-
- 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.
-
--->
-
-{{#if config_status.first_use}}
-<div class="container content-starter">
-<div class="row">
- <div class="col-lg-12">
- <h1>{{title}}</h1>
- </div>
-</div>
-</div>
-<div class="container">
-<div class="row">
- <div class="col-md-3">
- <a href="{{url "/configure_stratos_wizard.jag"}}" class="btn btn-important"><i class=""></i> Take the configuration Wizard</a>
-</div>
-<div class="col-md-1">
- <i class="icons-help"></i>
-</div>
-<div class="col-md-8">
- <p>Stratos is not configured yet. Each step needs to be done in the correct order.</p>
- <i class="icons-arrow-down color-a-full-icons"></i>
- <p>Partition deployment</p>
- <i class="icons-arrow-down color-a-full-icons"></i>
-
- <p>Policy deployment</p>
- <i class="icons-arrow-down color-a-full-icons"></i>
-
- <p>LB Creation</p>
- <i class="icons-arrow-down color-a-full-icons"></i>
-
- <p>Cartridge Deployment</p>
- <i class="icons-arrow-down color-a-full-icons"></i>
-
- <p>Multi-Tenant Service Deployments</p>
-
-</div>
-</div>
-</div>
-{{else}}
-
-<div class="container content-starter">
-<div class="row">
- <div class="col-lg-12">
- <h1>{{title}}</h1>
- </div>
-</div>
-</div>
-<div class="container">
-
- <div class="row">
- <div class="col-md-12">
-
-
- <div class="panel-group" id="accordion">
-
-
- {{#each partition_deployment}}
- <div class="panel panel-default">
- <div class="panel-heading">
- <h4 class="panel-title">
- <a data-toggle="collapse" data-parent="#accordion" href="#collapse{{key}}">
- {{name}}
- </a>
- </h4>
- </div>
- <div id="collapse{{key}}" class="panel-collapse collapse in">
- <div class="panel-body">
- <pre>{{policy}}</pre>
- <textarea style="display:none" class="jsonEditor">{{policy}}</textarea>
- <button class="btn btn-primary js_jsonEdit">Edit</button>
- <button class="btn btn-primary js_jsonSave" style="display:none">Save</button>
- <a class="js_jsonCancel" style="display:none">Cancel</a>
- </div>
- </div>
- </div>
- {{/each}}
-
-
-
- </div>
- </div>
- </div>
-</div>
-{{/if}}
-
-
-<script src="{{url "/themes/theme1/ui/js/utils.js"}}"></script>
-<script src="{{url "/themes/theme1/ui/js/configure_stratos.js"}}"></script>