diff options
35 files changed, 249 insertions, 1794 deletions
diff --git a/openo-portal/portal-catalog/pom.xml b/openo-portal/portal-catalog/pom.xml index cca1acb8..c49813b0 100644 --- a/openo-portal/portal-catalog/pom.xml +++ b/openo-portal/portal-catalog/pom.xml @@ -23,8 +23,6 @@ <artifactId>openo-portal</artifactId> <version>1.0.0-SNAPSHOT</version> </parent> - <groupId>oopeno-portal.catalog</groupId> - <artifactId>catalog</artifactId> - <version>1.0.0-SNAPSHOT</version> + <artifactId>portal-catalog</artifactId> <packaging>pom</packaging> </project> diff --git a/openo-portal/portal-extsys/pom.xml b/openo-portal/portal-extsys/pom.xml index ded01b8d..c59e720c 100644 --- a/openo-portal/portal-extsys/pom.xml +++ b/openo-portal/portal-extsys/pom.xml @@ -19,14 +19,10 @@ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> - <groupId>openo-portal</groupId> - <artifactId>openo-portal</artifactId> - <version>1.0.0-SNAPSHOT</version> - <relativePath/> + <groupId>org.openo.gso.gui</groupId> + <artifactId>openo-portal</artifactId> + <version>1.0.0-SNAPSHOT</version> </parent> - - <groupId>openo-portal.module.extsys</groupId> - <artifactId>module-extsys</artifactId> - <version>1.0.0-SNAPSHOT</version> + <artifactId>portal-extsys</artifactId> <packaging>pom</packaging> </project> diff --git a/openo-portal/portal-extsys/src/main/webapp/extsys/sdn/css/sdn.css b/openo-portal/portal-extsys/src/main/webapp/extsys/sdn/css/sdn.css deleted file mode 100644 index 558ac201..00000000 --- a/openo-portal/portal-extsys/src/main/webapp/extsys/sdn/css/sdn.css +++ /dev/null @@ -1,492 +0,0 @@ -/**
- * Copyright (C) 2015 ZTE, Inc. and others. All rights reserved. (ZTE)
- *
- * Licensed 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.
- */
-body {
- font-family: microsoft yahei !important;
-}
-
-/* blue pill (inspired by iTunes)
-*******************************************************************************/
-
-.grey {
- background-color: #e5e5e5;
- color: #333;
-}
-
-.blue {
-
- background-color: #5b9bd1;
- border-radius: 20px;
- color: #fff;
- font-weight: bold;
- padding: 8px 0;
- text-align: center;
- width: 100px;
-}
-
-.blue:hover {
- background-color: #e8f3fd;
- color: #5b9bd1;
-}
-
-.blue.selected {
- border: 0;
- background-color: #5b9bd1;
- color: #fff;
-}
-
-.blue.selected:hover {
- border: 0;
- background-color: #5b9bd1;
- color: #fff;
-}
-
-p {
- color: #444;
- font-size: 14px;
- font-weight: normal;
- line-height: 21px;
- margin: 0 0 12px 0;
-}
-
-p.credit {
- border-top: 1px solid #ccc;
- font-size: 14px;
- line-height: 140%;
- margin: 36px 0 12px 0;
- padding: 8px 0 0 0;
- text-align: center;
-}
-
-ul.column {
- float: left;
- list-style: none;
- width: 675px;
-}
-
-ul.column li {
- background: #eee;
- -webkit-border-radius: 5px;
- border-radius: 5px;
- -webkit-box-shadow: inset 0 1px 1px 0 #c7c7c7;
- box-shadow: inset 0 1px 1px 0 #c7c7c7;
- float: left;
- margin: 10px 0 0 10px;
- display: block;
- height: 150px;
- text-align: center;
- width: 215px;
-}
-
-/* Clear Floated Elements
-------------------------------------------------------------------------------*/
-.column:after,.button-collection:after,.clearfix:after,div.project-info:after
- {
- clear: both;
- content: ' ';
- display: block;
- font-size: 0;
- line-height: 0;
- visibility: hidden;
- width: 0;
- height: 0;
-}
-
-.container-fluid {
- background-color:white !important;
- min-height:500px;
-}
-
-.nav-tabs {
- border: 0;
-}
-
-.nav-tabs>li.active>a,.nav-tabs>li.active>a:hover,.nav-tabs>li.active>a:focus
- {
- border: 0;
- border-top: 3px solid #F3565D;
-}
-
-.nav-tabs>li>a {
- border-radius: 0;
-}
-
-.nav-tabs>li>a:hover {
- background-color: #f1f3fa;
- border: 1Px solid #f1f3fa;
-}
-
-.c3 {
- margin-top: 120px;
-}
-
-.skills-chart-breadcrumb {
-
-}
-
-.blue:selected {
- border: 0;
- background-color: #5b9bd1;
-}
-
-.btn {
- /* border-width: 0; */
- /* padding: 7px 14px; */
- /* font-size: 14px; */
- /* outline: none !important; */
- /* background-image: none !important; */
- /* filter: none; */
- /* -webkit-box-shadow: none; */
- -moz-box-shadow: none;
- /* box-shadow: none; */
- /* text-shadow: none; */
-}
-
-select {
- border-width: 1px;
- padding: 4px 1px;
- border-radius: 4px;
-}
-
-.input-sm {
- padding: 4px 10px;
-}
-
-.btn-block {
- display: block;
- width: 100%;
- padding-left: 0;
- padding-right: 0;
-}
-
-/* Bootstrap buttons */
-
-
-.btn-default:hover,.btn-default:focus,.btn-default:active,.btn-default.active
- {
- color: #333;
- background-color: #ededed;
- border-color: #b3b3b3;
-}
-
-.open .btn-default.dropdown-toggle {
- color: #333;
- background-color: #ededed;
- border-color: #b3b3b3;
-}
-
-.btn-default:active,.btn-default.active {
- background-image: none;
- background-color: #e0e0e0;
- font-weight: bold;
-}
-
-.btn-default:active:hover,.btn-default.active:hover {
- background-color: #e6e6e6;
-}
-
-.open .btn-default.dropdown-toggle {
- background-image: none;
-}
-
-.btn-default.disabled,.btn-default.disabled:hover,.btn-default.disabled:focus,.btn-default.disabled:active,.btn-default.disabled.active,.btn-default[disabled],.btn-default[disabled]:hover,.btn-default[disabled]:focus,.btn-default[disabled]:active,.btn-default[disabled].active,fieldset[disabled] .btn-default,fieldset[disabled] .btn-default:hover,fieldset[disabled] .btn-default:focus,fieldset[disabled] .btn-default:active,fieldset[disabled] .btn-default.active
- {
- background-color: #fff;
- border-color: #ccc;
-}
-
-.btn-default .badge {
- color: #fff;
- background-color: #333;
-}
-
-
-.btn-default>i[class^="icon-"],.btn-default>i[class*="icon-"] {
- color: #8c8c8c;
-}
-
-div[data-name="tab_zone"] div {
- background-color: #f1f3fa;
- padding: 0px;
-}
-
-div[data-name="cond_zone"] div {
- background-color: #fff;
- margin-top: 15px;
- margin-bottom: 15px;
-}
-
-div[data-name="res-conds-zone"] {
- display: inline;
-}
-
-div[data-name="res-conds-zone"] select,div[data-name="res-conds-zone"] span
- {
- /**height:33px;*/
- margin-left: 15px;
- color: #5b9bd1;
- border-color: #ccc;
- font-weight: bold;
-}
-
-.input{
- width:250px;
- height: 34px;
- padding: 6px 12px;
- font-size: 14px;
- line-height: 1.42857143;
- color: #555;
- background-color: #fff;
- background-image: none;
- border: 1px solid #ccc;
- border-radius: 4px;
- -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
- box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
- -webkit-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
- transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
-}
-
-div.separator {
- margin: 20px;
-}
-
-div.separator div {
- text-align: center;
- line-height: 0;
-}
-
-div.separator-line {
- height: 1px !important;
- width: 100%;
- background: #ddd;
- overflow: hidden;
-}
-
-.dropdown-toggle {
- color: #5b9bd1;
-}
-
-.calendar-date {
- color: #5b9bd1;
-}
-
-.range_inputs {
- color: #5b9bd1;
-}
-
-.btn.dropdown-toggle,.btn-group .btn.dropdown-toggle,.btn:hover,.btn:disabled,.btn[disabled],.btn:focus,.btn:active,.btn.active
- {
- outline: none !important;
- background-image: none !important;
- filter: none;
- -webkit-box-shadow: none;
- -moz-box-shadow: none;
- box-shadow: none;
- text-shadow: none;
-}
-
-#skills-chart-breadcrumb {
- margin-bottom: 10px
-}
-
-/*增加daterangepicker的css*/
-input[name="daterange"] {
- width: 220px;
- line-height: 0;
- height: 31px;
- vertical-align: top;
- margin-top: 2px;
-}
-
-.daterangepicker .ranges {
- width: 205px;
-}
-
-.daterangepicker .ranges input {
- width: 95px !important;
-}
-
-td.details-control {
- background: url('../images/details_open.png') no-repeat center center;
- cursor: pointer;
-}
-
-tr.shown td.details-control {
- background: url('../images/details_close.png') no-repeat center center;
-}
-
-.details table td {
- word-wrap: break-word;
- word-break: normal;
- border-top: 1px solid #dddddd;
-}
-
-.details table tr:first-child td {
- border-top: none;
-}
-
-.details table {
- table-layout: fixed;
- width: 100%;
-}
-
-td.title {
- width: 10%;
-}
-
-table.dataTable tbody th,table.dataTable tbody td {
- padding: 8px 10px;
-}
-
-div.dataTables_length,div.dataTables_info {
- display: inline;
-}
-
-div.dataTables_paginate {
- display: inline;
- float: right;
-}
-
-div.pagination-panel {
- margin-right: 10px;
-}
-
-input.pagination-panel-input {
- width: 50px;
-}
-
-#ict_res_table_div {
- margin-top: 15px;
-}
-
-#ict_res_table_div label {
- font-weight: 100;
-}
-
-.daterangepicker .daterangepicker_start_input label,.daterangepicker .daterangepicker_end_input label
- {
- color: #5b9bd1;
-}
-
-.daterangepicker .ranges .input-mini {
- color: #5b9bd1;
-}
-
-.cancelBtn {
- padding: 5px 10px 5px 10px;
-}
-
-.btn:focus,.btn:active:focus,.btn.active:focus {
- outline: 0;
-}
-
-#ict_res_table_div table {
- width: 100% !important;
-}
-
-.control-label .required {
- color: #e02222;
- font-size: 12px;
- padding-left: 2px;
-}
-
-#ict_vim_table tbody tr{
- cursor:pointer;
-}
-
-
-/*卡片面板样式*/
-.animated-panel {
- -webkit-animation-duration: .5s;
- animation-duration: .5s;
- -webkit-animation-fill-mode: both;
- animation-fill-mode: both;
-}
-
-.hpanel {
- background-color: none;
- border: none;
- box-shadow: none;
- margin-bottom: 25px;
-
-}
-
-.hpanel .panel-body {
- border: 1px solid #e4e5e7;
- border-radius: 2px;
- padding: 20px;
- position: relative;
-}
-.h-200 {
- min-height: 220px;
-}
-
-.m-t-xl {
- margin-top: 40px;
-}
-
-.m-t-xl div {
- margin-bottom: 15px;
-}
-
-.text-success {
- color: #0d638f;
-}
-.hpanel > .panel-footer {
- color: inherit;
- border: 1px solid #e4e5e7;
- border-top: none;
- font-size: 90%;
- background: #f7f9fa;
- height:40px;
- padding: 5px 15px;
-}
-.color_cloud{
- color:#ccc;
-}
-.stats-title{
-
-}
-
-h3{
- margin-top: 10px;
- margin-bottom: 40px;
- font-weight: 200;
-}
-
-.blue-font{
- color:#428bca;
-}
-
-.hpanel > .panel-footer .pull-right a{
- margin-left: 5px;
-}
-
-.hpanel > .panel-footer .pull-right .btn{
- min-width: 30px !important;
-}
-
-.font-bold {
- font-weight: 600;
- margin-bottom: 15px;
-}
-
-.hpanel_show{
- background-color: #f7f9fa;
-}
-
-.sdn-padding {
- padding-left: 0;
-}
\ No newline at end of file diff --git a/openo-portal/portal-extsys/src/main/webapp/extsys/sdn/i18n/loadi18nApp.js b/openo-portal/portal-extsys/src/main/webapp/extsys/sdn/i18n/loadi18nApp.js deleted file mode 100644 index df993437..00000000 --- a/openo-portal/portal-extsys/src/main/webapp/extsys/sdn/i18n/loadi18nApp.js +++ /dev/null @@ -1,42 +0,0 @@ -/*
- * Copyright (C) 2015 ZTE, Inc. and others. All rights reserved. (ZTE)
- *
- * Licensed 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 loadPropertiesSideMenu(lang, propertiesFileNamePrefix, propertiesFilePath){
- jQuery.i18n.properties({
- language:lang,
- name:propertiesFileNamePrefix,
- path:propertiesFilePath,
- mode:'map',
- callback: function() {
- var i18nItems = $('[name_i18n=org_openo_nfv_roc_ui_i18n]');
- for(var i=0;i<i18nItems.length;i++){
- var $item = $(i18nItems.eq(i));
- var itemId = $item.attr('id');
- var itemTitle = $item.attr('title');
- if(typeof($item.attr("title")) == "string"){
- $item.attr("title", ($.i18n.prop(itemTitle)));
- }
- if(undefined != itemId && typeof($item.attr("placeholder"))=="undefined"){
- $item.text($.i18n.prop(itemId));
- }else if(undefined != itemId && typeof($item.attr("placeholder"))!="undefined"){
- $item.attr("placeholder", $.i18n.prop(itemId));
- }
- }
- }
- });
-}
-var lang = getLanguage();
-loadPropertiesSideMenu(lang, 'roc-sdn-iui-i18n', 'i18n/');
-
diff --git a/openo-portal/portal-extsys/src/main/webapp/extsys/sdn/i18n/roc-sdn-iui-i18n-en-US.properties b/openo-portal/portal-extsys/src/main/webapp/extsys/sdn/i18n/roc-sdn-iui-i18n-en-US.properties deleted file mode 100644 index efdaea5c..00000000 --- a/openo-portal/portal-extsys/src/main/webapp/extsys/sdn/i18n/roc-sdn-iui-i18n-en-US.properties +++ /dev/null @@ -1,49 +0,0 @@ -#
-# Copyright (C) 2015 ZTE, Inc. and others. All rights reserved. (ZTE)
-#
-# Licensed 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.
-#
-
-roc-sdn-iui-common-tip=Tip:
-
-roc-sdn-iui-text-register=Register SDN controller info
-
-roc-sdn-iui-message-growl-msg-title=SDN controller info
-roc-sdn-iui-message-query-fail=Query SDN controller failed.
-roc-sdn-iui-message-save-success=Save successfully.
-roc-sdn-iui-message-save-fail=Save failed.
-roc-sdn-iui-message-update-success=Update successfully.
-roc-sdn-iui-message-update-fail=Update failed.
-roc-sdn-iui-message-delete-confirm=Do you want to delete the current SDN controller?
-roc-sdn-iui-message-delete-success=SDN controller deleted successfully.
-roc-sdn-iui-message-delete-fail=SDN controller deleted failed.
-
-roc-sdn-iui-text-update=Modify SDN controller info
-roc-sdn-iui-text-registerBtn=Register
-roc-sdn-iui-text-name=Name
-roc-sdn-iui-text-type=Type
-roc-sdn-iui-text-userName=Username
-roc-sdn-iui-text-password=Password
-roc-sdn-iui-text-cancelBtn=Cancel
-roc-sdn-iui-text-saveBtn=Save
-roc-sdn-iui-text-status-normal=Normal
-roc-sdn-iui-text-status-fail=Alarm
-roc-sdn-iui-text-total=Total
-roc-sdn-iui-text-total-sdn= of SDN Controller
-
-roc-sdn-iui-validate-name=Please enter a name
-roc-sdn-iui-validate-url-required=Please enter the right URL
-roc-sdn-iui-validate-url=Example: http://10.0.0.1:8181
-roc-sdn-iui-validate-username=Please enter a username
-roc-sdn-iui-validate-password=Please enter a password
-roc-sdn-iui-text-url-tip=Example: http://10.0.0.1:8181
\ No newline at end of file diff --git a/openo-portal/portal-extsys/src/main/webapp/extsys/sdn/i18n/roc-sdn-iui-i18n-zh-CN.properties b/openo-portal/portal-extsys/src/main/webapp/extsys/sdn/i18n/roc-sdn-iui-i18n-zh-CN.properties deleted file mode 100644 index a8e7dbcb..00000000 --- a/openo-portal/portal-extsys/src/main/webapp/extsys/sdn/i18n/roc-sdn-iui-i18n-zh-CN.properties +++ /dev/null @@ -1,49 +0,0 @@ -#
-# Copyright (C) 2015 ZTE, Inc. and others. All rights reserved. (ZTE)
-#
-# Licensed 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.
-#
-
-roc-sdn-iui-common-tip=提示:
-
-roc-sdn-iui-text-register=注册SDN控制器信息
-
-roc-sdn-iui-message-growl-msg-title=SDN控制器信息
-roc-sdn-iui-message-query-fail=查询SDN控制器失败。
-roc-sdn-iui-message-save-success=保存成功。
-roc-sdn-iui-message-save-fail=保存失败。
-roc-sdn-iui-message-update-success=修改成功。
-roc-sdn-iui-message-update-fail=修改失败。
-roc-sdn-iui-message-delete-confirm=确定删除所选SDN控制器信息?
-roc-sdn-iui-message-delete-success=删除成功。
-roc-sdn-iui-message-delete-fail=删除失败。
-
-roc-sdn-iui-text-update=修改SDN控制器信息
-roc-sdn-iui-text-registerBtn=注册
-roc-sdn-iui-text-name=名称
-roc-sdn-iui-text-type=类型
-roc-sdn-iui-text-userName=用户名
-roc-sdn-iui-text-password=密码
-roc-sdn-iui-text-cancelBtn=取消
-roc-sdn-iui-text-saveBtn=保存
-roc-sdn-iui-text-status-normal=正常
-roc-sdn-iui-text-status-fail=报警
-roc-sdn-iui-text-total=共
-roc-sdn-iui-text-total-sdn= SDN控制器
-
-roc-sdn-iui-validate-name=请输入名称
-roc-sdn-iui-validate-url-required=请输入正确的URL
-roc-sdn-iui-validate-url=例如:http://10.0.0.1:8181
-roc-sdn-iui-validate-username=请输入用户名
-roc-sdn-iui-validate-password=请输入密码
-roc-sdn-iui-text-url-tip=例如:http://10.0.0.1:8181
\ No newline at end of file diff --git a/openo-portal/portal-extsys/src/main/webapp/extsys/sdn/js/sdn-validate.js b/openo-portal/portal-extsys/src/main/webapp/extsys/sdn/js/sdn-validate.js deleted file mode 100644 index 21b711af..00000000 --- a/openo-portal/portal-extsys/src/main/webapp/extsys/sdn/js/sdn-validate.js +++ /dev/null @@ -1,67 +0,0 @@ -$(function () {
- var form = $('#sdn_form');
- var error = $('.alert-danger', form);
- var success = $('.alert-success', form);
-
- form.validate({
- doNotHideMessage : true, //this option enables to show the error/success messages on tab switch.
- errorElement : 'span', //default input error message container
- errorClass : 'help-block', // default input error message class
- focusInvalid : false, // do not focus the last invalid input
- rules : {
- name : {
- required : true,
- maxlength : 20
- },
- url : {
- required : true,
- url : true
- },
- userName : {
- required : true,
- maxlength : 20
- },
- password : {
- required : true,
- maxlength : 20
- }
- },
- messages : {
- name : {
- required : $.i18n.prop("roc-sdn-iui-validate-name")
- },
- url : {
- required : $.i18n.prop("roc-sdn-iui-validate-url-required"),
- url : $.i18n.prop("roc-sdn-iui-validate-url")
- },
- userName : {
- required : $.i18n.prop('roc-sdn-iui-validate-username')
- },
- password : {
- required : $.i18n.prop('roc-sdn-iui-validate-password')
- }
- },
- errorPlacement : function (error, element) { // render error placement for each input type
- error.insertAfter(element); // for other inputs, just perform default behavior
- },
- invalidHandler : function (event, validator) { //display error alert on form submit
- success.hide();
- error.show();
- },
- highlight : function (element) { // hightlight error inputs
- $(element).closest('.form-group').removeClass('has-success').addClass('has-error'); // set error class to the control group
- },
- unhighlight : function (element) { // revert the change done by hightlight
- $(element).closest('.form-group').removeClass('has-error'); // set error class to the control group
- },
- success : function (label) {
- label.addClass('valid') // mark the current input as valid and display OK icon
- .closest('.form-group').removeClass('has-error'); // set success class to the control group
- },
- submitHandler : function (form) {
- success.show();
- error.hide();
- //add here some ajax code to submit your form or just call form.submit() if you want to submit the form without ajax
- }
- });
-});
diff --git a/openo-portal/portal-extsys/src/main/webapp/extsys/sdn/js/sdnController.js b/openo-portal/portal-extsys/src/main/webapp/extsys/sdn/js/sdnController.js deleted file mode 100644 index 0b6c5c2e..00000000 --- a/openo-portal/portal-extsys/src/main/webapp/extsys/sdn/js/sdnController.js +++ /dev/null @@ -1,202 +0,0 @@ -/*
- * Copyright (C) 2015 ZTE, Inc. and others. All rights reserved. (ZTE)
- *
- * Licensed 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 vm = avalon
- .define({
- $id : "sdnController",
- sdnInfo : [],
- server_rtn : {
- info_block : false,
- warning_block : false,
- rtn_info : "",
- $RTN_SUCCESS : "RTN_SUCCESS",
- $RTN_FAILED : "RTN_FAILED"
- },
- $Status : {
- success : "active",
- failed : "inactive"
- },
- $restUrl : {
- querySdnControllerInfoUrl : '/openoapi/extsys/v1/sdncontrollers',
- addSdnControllerInfoUrl : '/openoapi/extsys/v1/sdncontrollers',
- updateSdnControllerInfoUrl : '/openoapi/extsys/v1/sdncontrollers',
- delSdnControllerInfoUrl : '/openoapi/extsys/v1/sdncontrollers'
- },
- $htmlText : {
- saveSuccess : $.i18n.prop("roc-sdn-iui-message-save-success"),
- saveFail : $.i18n.prop("roc-sdn-iui-message-save-fail"),
- updateSuccess : $.i18n.prop("roc-sdn-iui-message-update-success"),
- updateFail : $.i18n.prop("roc-sdn-iui-message-update-fail")
- },
- $initTable : function () {
- $.ajax({
- "type" : 'GET',
- "url" : vm.$restUrl.querySdnControllerInfoUrl,
- "dataType" : "json",
- "success" : function (resp) {
- if (resp.operationResult == "SUCCESS") {
- vm.sdnInfo = (resp == null) ? [] : resp.data;
- } else {
- vm.sdnInfo = [];
- bootbox.alert($.i18n.prop("roc-sdn-iui-message-query-fail"));
- return;
- }
- },
- error : function (XMLHttpRequest, textStatus, errorThrown) {
- bootbox.alert($.i18n.prop("roc-sdn-iui-message-query-fail") + ":" + textStatus + ":" + errorThrown);
- return;
- },
- complete : function () {
- sdnUtil.tooltipSdnStatus();
- }
- });
- },
- $sdnType : {
- condName : $.i18n.prop("roc-sdn-iui-text-type"),
- component_type : 'select',
- selectItems : [{
- cond_value : 'ODL',
- name : "ODL",
- value : true
- }, {
- cond_value : 'ONOS',
- name : "ONOS",
- value : true
- }
- ]
- },
- addSdn : {
- title : $.i18n.prop("roc-sdn-iui-text-register"),
- sdnId : "",
- name : "",
- type : "ODL",
- typeDisabled : false,
- url : "",
- urlTip : $.i18n.prop("roc-sdn-iui-text-url-tip"),
- userName : "",
- password : "",
- saveType : "add"
- },
- $showSdnTable : function () {
- vm.addSdn.title = $.i18n.prop("roc-sdn-iui-text-register"),
- vm.addSdn.sdnId = "";
- vm.addSdn.name = "";
- vm.addSdn.type = "ODL";
- vm.addSdn.typeDisabled = false;
- vm.addSdn.url = "";
- vm.addSdn.userName = "";
- vm.addSdn.password = "";
- vm.addSdn.saveType = "add";
- vm.server_rtn.warning_block = false;
- vm.server_rtn.info_block = false;
-
- $(".form-group").each(function () {
- $(this).removeClass('has-success');
- $(this).removeClass('has-error');
- $(this).find(".help-block[id]").remove();
- });
- $("#addSdnDlg").modal("show");
- },
- $saveSdn : function () {
- var form = $('#sdn_form');
- if (form.valid() == false) {
- return false;
- }
- vm.server_rtn.info_block = true;
- vm.server_rtn.warning_block = false;
- vm.addSdn.status = vm.$Status.success;
-
- var param = {
- name : vm.addSdn.name,
- controllerType : $("#type").val(),
- url : vm.addSdn.url,
- userName : vm.addSdn.userName,
- password : vm.addSdn.password
- }
- if (vm.addSdn.saveType == "add") { - for( var i = 0; i < vm.sdnInfo.length; i ++ ){ - if(vm.addSdn.url == vm.sdnInfo[i].url){ - sdnUtil.growl($.i18n.prop("roc-sdn-iui-message-growl-msg-title") + 'already exist',"info"); - $('#addSdnDlg').modal('hide'); - return; - } - }
- $.ajax({
- type : "POST",
- url : vm.$restUrl.addSdnControllerInfoUrl,
- data : JSON.stringify(param),
- dataType : "json",
- contentType : "application/json",
- success : function (data) {
- vm.server_rtn.info_block = false;
- vm.server_rtn.warning_block = false;
- if (data) {
- vm.sdnInfo = [];
- vm.$initTable();
-
- $('#addSdnDlg').modal('hide');
- sdnUtil.showMessage(vm.$htmlText.saveSuccess, "success");
- } else {
- vm.server_rtn.warning_block = true;
- vm.server_rtn.rtn_info = vm.$htmlText.saveFail;
- sdnUtil.showMessage(vm.$htmlText.saveFail, "failed");
- }
- },
- error : function (XMLHttpRequest, textStatus, errorThrown) {
- vm.server_rtn.warning_block = true;
- vm.server_rtn.rtn_info = textStatus + ":" + errorThrown;
- vm.server_rtn.info_block = false;
- }
- });
- } else {
- $.ajax({
- type : "PUT",
- url : vm.$restUrl.updateSdnControllerInfoUrl + vm.addSdn.sdnId,
- data : JSON.stringify(param),
- dataType : "json",
- contentType : "application/json",
- success : function (data) {
- vm.server_rtn.info_block = false;
- vm.server_rtn.warning_block = false;
- if (data) {
- for (var i = 0; i < vm.sdnInfo.length; i++) {
- if (vm.sdnInfo[i].sdnControllerInstanceId == vm.addSdn.sdnId) {
- vm.sdnInfo[i].name = vm.addSdn.name;
- vm.sdnInfo[i].type = $("#type").val();
- vm.sdnInfo[i].url = vm.addSdn.url;
- vm.sdnInfo[i].userName = vm.addSdn.userName;
- vm.sdnInfo[i].password = vm.addSdn.password;
- }
- }
- $('#addSdnDlg').modal('hide');
- sdnUtil.showMessage(vm.$htmlText.updateSuccess, "success");
- } else {
- vm.server_rtn.warning_block = true;
- vm.server_rtn.rtn_info = vm.$htmlText.updateFail;
- sdnUtil.showMessage(vm.$htmlText.updateFail, "failed");
- }
- },
- error : function (XMLHttpRequest, textStatus, errorThrown) {
- vm.server_rtn.warning_block = true;
- vm.server_rtn.rtn_info = textStatus + ":" + errorThrown;
- vm.server_rtn.info_block = false;
- }
- });
- }
- },
- });
-avalon.scan();
-vm.$initTable();
diff --git a/openo-portal/portal-extsys/src/main/webapp/extsys/sdn/js/sdnUtil.js b/openo-portal/portal-extsys/src/main/webapp/extsys/sdn/js/sdnUtil.js deleted file mode 100644 index 59062fcd..00000000 --- a/openo-portal/portal-extsys/src/main/webapp/extsys/sdn/js/sdnUtil.js +++ /dev/null @@ -1,89 +0,0 @@ -/*
- * Copyright (C) 2015 ZTE, Inc. and others. All rights reserved. (ZTE)
- *
- * Licensed 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 sdnUtil = {};
-
-sdnUtil.delSdn = function (el) {
- bootbox.confirm($.i18n.prop("roc-sdn-iui-message-delete-confirm"), function (result) {
- if (result) {
- $.ajax({
- type : "DELETE",
- url : vm.$restUrl.delSdnControllerInfoUrl + el.sdnControllerInstanceId,
- dataType : "json",
- success : function (data) {
- if (data) {
- for (var i = 0; i < vm.sdnInfo.length; i++) {
- if (el.sdnControllerInstanceId == vm.sdnInfo[i].sdnControllerInstanceId) {
- vm.sdnInfo.splice(i, 1);
- break;
- }
- }
- sdnUtil.showMessage($.i18n.prop("roc-sdn-iui-message-delete-success"), "success");
- } else {
- sdnUtil.showMessage($.i18n.prop("roc-sdn-iui-message-delete-fail"), "warning");
- }
- },
- error : function () {
- sdnUtil.showMessage($.i18n.prop("roc-sdn-iui-message-delete-fail"), "warning");
- }
- });
- }
- });
-}
-
-sdnUtil.updateSdn = function (data) {
- vm.addSdn.sdnId = data.sdnControllerInstanceId;
- vm.addSdn.name = data.name;
- vm.addSdn.type = data.controllerType;
- vm.addSdn.typeDisabled = true;
- vm.addSdn.url = data.url;
- vm.addSdn.userName = data.userName;
- vm.addSdn.password = data.password;
- vm.addSdn.saveType = "update";
- vm.addSdn.title = $.i18n.prop("roc-sdn-iui-text-update");
- vm.server_rtn.info_block = false;
- vm.server_rtn.warning_block = false;
-
- $(".form-group").each(function () {
- $(this).removeClass('has-success');
- $(this).removeClass('has-error');
- $(this).find(".help-block[id]").remove();
- });
- $("#addSdnDlg").modal("show");
-}
-
-sdnUtil.tooltipSdnStatus = function () {
- $("[data-toggle='tooltip']").tooltip();
-}
-
-sdnUtil.growl = function (message, type) {
- $.growl({
- icon : "fa fa-envelope-o fa-lg",
- title : " Notice: ",
- message : message + " "
- }, {
- type : type
- });
-}
-
-sdnUtil.showMessage = function(message, type) {
- $.growl({
- icon: "fa fa-envelope-o fa-lg",
- title: " " + $.i18n.prop("roc-sdn-iui-common-tip"),
- message: message
- },{
- type: type
- });
-};
diff --git a/openo-portal/portal-extsys/src/main/webapp/extsys/sdn/sdnView.html b/openo-portal/portal-extsys/src/main/webapp/extsys/sdn/sdnView.html deleted file mode 100644 index 16fc12ef..00000000 --- a/openo-portal/portal-extsys/src/main/webapp/extsys/sdn/sdnView.html +++ /dev/null @@ -1,173 +0,0 @@ -<!--
-
- Copyright (C) 2015 ZTE, Inc. and others. All rights reserved. (ZTE)
-
- Licensed 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>
-<html>
-<head lang="en">
-<meta charset="UTF-8">
-<title></title>
-<link href="../component/thirdparty/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
-<link href="../component/thirdparty/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
-<link href="../component/thirdparty/uniform/css/uniform.default.min.css" rel="stylesheet" type="text/css"/>
-<link href="../component/css/ZteIctIcons/style.css" rel="stylesheet" type="text/css"/>
-<link href="../framework/css/ngict-component.css" rel="stylesheet" type="text/css"/>
-<link href="../vendor/animate/animate.min.css" rel="stylesheet" type="text/css"/>
-<link href="css/sdn.css" rel="stylesheet" type="text/css"/>
-<style>
-.ms-controller {
- visibility: hidden
-}
-</style>
-
-</head>
-<body>
- <div class="ms-controller container-fluid" ms-controller="sdnController" >
- <div id="addSdnDlg" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" >
- <div class="modal-dialog">
- <div class="modal-content Changepasswd">
- <div class="content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
- <h4 id="myModalLabel">{{addSdn.title}}</h4>
- </div>
- <div class="modal-body">
- <form class="form-horizontal" id="sdn_form" role="form">
- <input type="hidden" ms-duplex="addSdn.sdnId" name="sdnId" class="form-control" />
- <div class="form-group">
- <label class="control-label col-sm-3">
- <span id="roc-sdn-iui-text-name" name_i18n="org_openo_nfv_roc_ui_i18n"></span>
- <span class="required" aria-required="true">*</span>
- </label>
- <div class="col-sm-7">
- <input type="text" ms-duplex="addSdn.name" name="name" class="form-control"/>
- <span class="help-block"></span>
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-sm-3">
- <span id="roc-sdn-iui-text-type" name_i18n="org_openo_nfv_roc_ui_i18n"></span>
- <span class="required" aria-required="true">*</span>
- </label>
- <div class="col-sm-7">
- <select class="form-control" id="type" ms-each="$sdnType.selectItems" ms-duplex="addSdn.type" ms-attr-disabled="addSdn.typeDisabled">
- <option ms-attr-value='el.cond_value'>{{el.name}}</option>
- </select>
- <span class="help-block"></span>
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-sm-3">
- <span>URL</span>
- <span class="required" aria-required="true">*</span>
- </label>
- <div class="col-sm-7">
- <input type="text" ms-duplex="addSdn.url" name="url" class="form-control"
- ms-attr-placeholder="addSdn.urlTip"/>
- <span class="help-block"></span>
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-sm-3">
- <span id="roc-sdn-iui-text-userName" name_i18n="org_openo_nfv_roc_ui_i18n"></span>
- <span class="required" aria-required="true">*</span>
- </label>
- <div class="col-sm-7">
- <input type="text" ms-duplex="addSdn.userName" name="userName" class="form-control" />
- <span class="help-block"></span>
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-sm-3">
- <span id="roc-sdn-iui-text-password" name_i18n="org_openo_nfv_roc_ui_i18n"></span>
- <span class="required" aria-required="true">*</span>
- </label>
- <div class="col-sm-7">
- <input type="password" ms-duplex="addSdn.password" name="password" class="form-control" />
- <span class="help-block"></span>
- </div>
- </div>
- </form>
- </div>
- <div class="modal-footer">
- <button class="btn" data-dismiss="modal" aria-hidden="true" id="roc-sdn-iui-text-cancelBtn" name_i18n="org_openo_nfv_roc_ui_i18n"></button>
- <button class="btn btn-primary" type="submit" ms-click="$saveSdn" id="roc-sdn-iui-text-saveBtn" name_i18n="org_openo_nfv_roc_ui_i18n"></button>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="row-fluid" data-name="cond_zone">
- <div class="col-md-12">
- <button class="btn white radius_l" id="app-new-btn" ms-click="$showSdnTable" >
- <i class="ict-new"></i> <span id="roc-sdn-iui-text-registerBtn" name_i18n="org_openo_nfv_roc_ui_i18n"></span>
- </button>
- </div>
- </div>
-
- <div class="col-sm-12 sdn-padding" ms-each-el="sdnInfo">
-
- <div class="col-sm-4 animated-panel zoomIn" style="-webkit-animation-delay: 0.1s;">
- <div class="hpanel stats" >
- <div class="panel-body h-200" ms-hover="hpanel_show" >
- <div class="pull-left">
- <span class="label label-success" id="roc-sdn-iui-text-status-normal" name_i18n="org_openo_nfv_roc_ui_i18n"></span>
- </div>
- <div class="stats-icon pull-right">
- <i class="fa fa-server fa-5x color_cloud"></i>
- </div>
- <div class="m-t-xl">
- <h3 ms-text="el.name"></h3>
- <div><span id="roc-sdn-iui-text-type" name_i18n="org_openo_nfv_roc_ui_i18n"></span> : <span ms-text="el.controllerType"></span></div>
- <div>URL : <span ms-text="el.url"></span></div>
- </div>
- </div>
- <div class="panel-footer">
- <div class="pull-right">
- <a class="btn btn-default btn-sm" ms-click="sdnUtil.updateSdn(el.$model)"><i class="fa fa-pencil-square-o fa-lg"></i></a>
- <a class="btn btn-default btn-sm" ms-click="sdnUtil.delSdn(el)"><i class="fa fa-trash-o fa-lg"> </i></a>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="col-sm-12">
- <div class="pull-left text-muted">
- <small><span id="roc-sdn-iui-text-total" name_i18n="org_openo_nfv_roc_ui_i18n"></span> <span class="blue-font" ms-text="sdnInfo.size()"></span> <span id="roc-sdn-iui-text-total-sdn" name_i18n="org_openo_nfv_roc_ui_i18n"></span></small>
- </div>
- </div>
- </div>
- <script type="text/javascript" src="../component/thirdparty/jquery/jquery-1.10.2.min.js"></script>
- <script type="text/javascript" src="../component/thirdparty/jquery.i18n/jquery.i18n.properties-1.0.9.js"></script>
- <script type="text/javascript" src="../component/thirdparty/bootstrap/js/bootstrap.min.js"></script>
- <script type="text/javascript" src="../component/thirdparty/bootbox/bootbox.min.js"></script>
- <script type="text/javascript" src="../component/thirdparty/jquery-validation/js/jquery.validate.min.js"></script>
- <script type="text/javascript" src="../component/thirdparty/jquery-validation/js/additional-methods.min.js"></script>
-
- <script type="text/javascript" src="../vendor/bootstrap-growl/bootstrap-growl.min.js"></script>
- <script type="text/javascript" src="../vendor/cometd/cometd.js"></script>
- <script type="text/javascript" src="../vendor/cometd/jquery.cometd.js"></script>
- <script type="text/javascript" src="../vendor/avalon/avalon.js"></script>
-
- <script type="text/javascript" src="../framework/js/tools.js"></script>
-
- <script type="text/javascript" src="i18n/loadi18nApp.js"></script>
-
- <script type="text/javascript" src="js/sdn-validate.js"></script>
- <script type="text/javascript" src="js/sdnUtil.js"></script>
- <script type="text/javascript" src="js/sdnController.js"></script>
-</body>
-</html>
\ No newline at end of file diff --git a/servicegateway/deployment/pom.xml b/servicegateway/deployment/pom.xml index e415c55b..6f7f7ae7 100644 --- a/servicegateway/deployment/pom.xml +++ b/servicegateway/deployment/pom.xml @@ -1,3 +1,18 @@ +<!-- + Copyright 2016 Huawei Technologies Co., Ltd. + + Licensed 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. +--> <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> diff --git a/servicegateway/deployment/src/main/release/Swagger.json b/servicegateway/deployment/src/main/release/Swagger.json index 211a954b..c25187fd 100644 --- a/servicegateway/deployment/src/main/release/Swagger.json +++ b/servicegateway/deployment/src/main/release/Swagger.json @@ -1,3 +1,18 @@ +/* + * Copyright 2016 Huawei Technologies Co., Ltd. + * + * Licensed 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. + */ { "swagger": "2.0", "info": { diff --git a/servicegateway/deployment/src/main/release/bin/start.sh b/servicegateway/deployment/src/main/release/bin/start.sh index ffb45280..235b3197 100644 --- a/servicegateway/deployment/src/main/release/bin/start.sh +++ b/servicegateway/deployment/src/main/release/bin/start.sh @@ -1,52 +1,19 @@ +#******************************************************************************* +# Copyright 2016 Huawei Technologies Co., Ltd. +# +# Licensed 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. +#******************************************************************************* #!/bin/bash -#check user -CUR_PATH=$(cd `dirname $0`;pwd) -SCRIPT_PATH=$0 -IPMC_USER="`stat -c '%U' ${SCRIPT_PATH}`" -export IPMC_USER -CURRENT_USER="`/usr/bin/id -u -n`" -if [ "${IPMC_USER}" != "${CURRENT_USER}" ] -then - echo "only ${IPMC_USER} can execute this script." - exit 1 -fi - -umask 027 - -if [ -z "$JAVA_HOME" ] -then - echo "There is no JAVA_HOME" - exit 1 -fi - -if [ -z "$CATALINA_HOME" ] -then - echo "There is no CATALINA_HOME" - exit 1 -fi - -if [ -z "$APP_ROOT" ] -then - echo "There is no APP_ROOT" - exit 1 -fi - - - -export CATALINA_BASE=$APP_ROOT -export COMPLETE_PROCESS_NAME=$PROCESS_NAME-$NODE_ID-$PROCESS_SLOT -LOG_PATH=$_APP_LOG_DIR/$COMPLETE_PROCESS_NAME - -JAVA_OPTS="-Dfile.encoding=UTF-8" -JAVA_OPTS="$JAVA_OPTS -Dlog.dir=$LOG_PATH" -export TOMCAT_LOG_DIR=$_APP_LOG_DIR/$COMPLETE_PROCESS_NAME/tomcatlog -mkdir -p $TOMCAT_LOG_DIR -export TOMCAT_WORK_DIR=$_APP_SHARE_DIR/$COMPLETE_PROCESS_NAME/tomcatwork -export CATALINA_OUT=$TOMCAT_LOG_DIR/catalina.out -JAVA_OPTS="$JAVA_OPTS -DTOMCAT_LOG_DIR=$TOMCAT_LOG_DIR -DTOMCAT_WORK_DIR=$TOMCAT_WORK_DIR -DNFW=$COMPLETE_PROCESS_NAME -Dprocname=$COMPLETE_PROCESS_NAME " -export JAVA_OPTS="$JAVA_OPTS -server -Xms32m -Xmx256m -XX:InitialCodeCacheSize=32m -XX:ReservedCodeCacheSize=64m -XX:MetaspaceSize=32m -XX:MaxMetaspaceSize=128m -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=62 -XX:-UseLargePages -XX:+UseFastAccessorMethods -XX:+CMSClassUnloadingEnabled -Dbsp.app.datasource=ServiceGatewaydb" -export LOGGING_CONFIG="-DNFW=$COMPLETE_PROCESS_NAME -Djava.util.logging.config.file=$CATALINA_BASE/conf/logging.properties" - -$CATALINA_HOME/bin/catalina.sh start - -result=0;$CUR_PATH/../../../../manager/agent/tools/shscript/syslogutils.sh "$(basename $0)" "$result" "Execute($#):$CUR_PATH/$0 $@";exit $result +cd .. +export CATALINA_BASE=$(cd `dirname $0`; pwd) +catalina.sh start
\ No newline at end of file diff --git a/servicegateway/deployment/src/main/release/bin/stop.sh b/servicegateway/deployment/src/main/release/bin/stop.sh index 9ac855f0..bcc60433 100644 --- a/servicegateway/deployment/src/main/release/bin/stop.sh +++ b/servicegateway/deployment/src/main/release/bin/stop.sh @@ -1,15 +1,19 @@ +#******************************************************************************* +# Copyright 2016 Huawei Technologies Co., Ltd. +# +# Licensed 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. +#******************************************************************************* #!/bin/bash -#check user -CUR_PATH=$(cd `dirname $0`;pwd) -SCRIPT_PATH=$0 -IPMC_USER="`stat -c '%U' ${SCRIPT_PATH}`" -export IPMC_USER -CURRENT_USER="`/usr/bin/id -u -n`" -if [ "${IPMC_USER}" != "${CURRENT_USER}" ] -then - echo "only ${IPMC_USER} can execute this script." - exit 1 -fi -kill -9 $PID - -result=0;$CUR_PATH/../../../../manager/agent/tools/shscript/syslogutils.sh "$(basename $0)" "$result" "Execute($#):$CUR_PATH/$0 $@";exit $result +cd .. +export CATALINA_BASE=$(cd `dirname $0`; pwd) +catalina.sh stop
\ No newline at end of file diff --git a/servicegateway/deployment/src/main/release/conf/catalina.policy b/servicegateway/deployment/src/main/release/conf/catalina.policy index 244334e7..89f49d83 100644 --- a/servicegateway/deployment/src/main/release/conf/catalina.policy +++ b/servicegateway/deployment/src/main/release/conf/catalina.policy @@ -1,32 +1,18 @@ -// 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. - -// ============================================================================ -// catalina.policy - Security Policy Permissions for Tomcat 7 -// -// This file contains a default set of security policies to be enforced (by the -// JVM) when Catalina is executed with the "-security" option. In addition -// to the permissions granted here, the following additional permissions are -// granted to each web application: -// -// * Read access to the web application's document root directory -// * Read, write and delete access to the web application's working directory -// ============================================================================ - - -// ========== SYSTEM CODE PERMISSIONS ========================================= +/* + * Copyright 2016 Huawei Technologies Co., Ltd. + * + * Licensed 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. + */ // These permissions apply to javac diff --git a/servicegateway/deployment/src/main/release/conf/catalina.properties b/servicegateway/deployment/src/main/release/conf/catalina.properties index ef375e1d..a833f711 100644 --- a/servicegateway/deployment/src/main/release/conf/catalina.properties +++ b/servicegateway/deployment/src/main/release/conf/catalina.properties @@ -1,12 +1,11 @@ -# 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 -# +# Copyright 2016 Huawei Technologies Co., Ltd. + +# Licensed 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. diff --git a/servicegateway/deployment/src/main/release/conf/context.xml b/servicegateway/deployment/src/main/release/conf/context.xml index 79ad60d5..2c8f59cc 100644 --- a/servicegateway/deployment/src/main/release/conf/context.xml +++ b/servicegateway/deployment/src/main/release/conf/context.xml @@ -1,11 +1,19 @@ <?xml version='1.0' encoding='utf-8'?> -<!-- 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. --> +<!-- + Copyright 2016 Huawei Technologies Co., Ltd. + + Licensed 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. +--> <!-- The contents of this file will be loaded for each web application --> <Context> diff --git a/servicegateway/deployment/src/main/release/conf/server.xml b/servicegateway/deployment/src/main/release/conf/server.xml index ffd05e81..40eb5ff0 100644 --- a/servicegateway/deployment/src/main/release/conf/server.xml +++ b/servicegateway/deployment/src/main/release/conf/server.xml @@ -1,92 +1,46 @@ -<?xml version='1.0' encoding='utf-8'?> -<!-- 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. --> -<!-- Note: A "Server" is not itself a "Container", so you may not define subcomponents such as "Valves" at this level. Documentation - at /docs/config/server.html --> -<Server port="-1" shutdown="SHUTDOWN"> +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Copyright 2016 Huawei Technologies Co., Ltd. + + Licensed 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. +--> +<!-- Note: A "Server" is not itself a "Container", so you may not + define subcomponents such as "Valves" at this level. + Documentation at /docs/config/server.html + --> +<Server port="8306" shutdown="SHUTDOWN"> <Listener className="org.apache.catalina.startup.VersionLoggerListener" /> - <!-- Security listener. Documentation at /docs/config/listeners.html <Listener className="org.apache.catalina.security.SecurityListener" - /> --> - <!--APR library loader. Documentation at /docs/apr.html --> - <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" /> - <!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html --> - <Listener className="org.apache.catalina.core.JasperListener" /> - <!-- Prevent memory leaks due to use of particular java/javax APIs --> + <Listener SSLEngine="on" className="org.apache.catalina.core.AprLifecycleListener" /> <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" /> <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" /> <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" /> - - <!-- Global JNDI resources Documentation at /docs/jndi-resources-howto.html --> <GlobalNamingResources> - <!-- Editable user database that can also be used by UserDatabaseRealm to authenticate users --> - <Resource name="UserDatabase" auth="Container" type="org.apache.catalina.UserDatabase" description="User database that can be updated and saved" - factory="org.apache.catalina.users.MemoryUserDatabaseFactory" pathname="conf/tomcat-users.xml" /> + <Resource auth="Container" description="User database that can be updated and saved" factory="org.apache.catalina.users.MemoryUserDatabaseFactory" + name="UserDatabase" pathname="conf/tomcat-users.xml" type="org.apache.catalina.UserDatabase" /> </GlobalNamingResources> - - <!-- A "Service" is a collection of one or more "Connectors" that share a single "Container" Note: A "Service" is not - itself a "Container", so you may not define subcomponents such as "Valves" at this level. Documentation at /docs/config/service.html --> <Service name="Catalina"> - - <!--The connectors can use a shared executor, you can define one or more named thread pools --> - <!-- <Executor name="tomcatThreadPool" namePrefix="catalina-exec-" maxThreads="150" minSpareThreads="4"/> --> - - - <!-- A "Connector" represents an endpoint by which requests are received and responses are returned. Documentation - at : Java HTTP Connector: /docs/config/http.html (blocking & non-blocking) Java AJP Connector: /docs/config/ajp.html APR - (HTTP/AJP) Connector: /docs/apr.html Define a non-SSL/TLS HTTP/1.1 Connector on port 8080 --> - - <Connector port="8300" protocol="org.openo.cloudsop.initconfig.tool.CustomHttp11Protocol" scheme="https" - sslEnabledProtocols="TLSv1.2" connectionTimeout="20000" maxPostSize="2097152" maxHttpHeaderSize="8192" - allowTrace="false" /> - - <!-- A "Connector" using the shared thread pool --> - <!-- <Connector executor="tomcatThreadPool" port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" - /> --> - <!-- Define a SSL/TLS HTTP/1.1 Connector on port 8443 This connector uses the NIO implementation that requires the - JSSE style configuration. When using the APR/native implementation, the OpenSSL style configuration is required as described - in the APR/native documentation --> - <!-- <Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol" maxThreads="150" SSLEnabled="true" - scheme="https" secure="true" clientAuth="false" sslProtocol="TLS" /> --> - - <!-- Define an AJP 1.3 Connector on port 8009 --> - <!-- <Connector port="18009" protocol="AJP/1.3" redirectPort="8443" /> --> - - - <!-- An Engine represents the entry point (within Catalina) that processes every request. The Engine implementation - for Tomcat stand alone analyzes the HTTP headers included with the request, and passes them on to the appropriate Host (virtual - host). Documentation at /docs/config/engine.html --> - - <!-- You should set jvmRoute to support load-balancing via AJP ie : <Engine name="Catalina" defaultHost="localhost" - jvmRoute="jvm1"> --> - <Engine name="Catalina" defaultHost="localhost"> - - <!--For clustering, please take a look at documentation at: /docs/cluster-howto.html (simple how to) /docs/config/cluster.html - (reference documentation) --> - <!-- <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/> --> - - <!-- Use the LockOutRealm to prevent attempts to guess user passwords via a brute-force attack --> + <Connector connectionTimeout="20000" port="8503" protocol="HTTP/1.1" redirectPort="8443" /> + <Connector port="8305" protocol="AJP/1.3" redirectPort="8443" /> + <Engine defaultHost="localhost" name="Catalina"> <Realm className="org.apache.catalina.realm.LockOutRealm"> - <!-- This Realm uses the UserDatabase configured in the global JNDI resources under the key "UserDatabase". - Any edits that are performed against this UserDatabase are immediately available for use by the Realm. --> <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase" /> </Realm> - <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="false" deployOnStartup="false"> - <!-- SingleSignOn valve, share authentication between web applications Documentation at: /docs/config/valve.html --> - <!-- <Valve className="org.apache.catalina.authenticator.SingleSignOn" /> --> - <Context path="/" reloadable="false" docBase="ROOT" workDir="${TOMCAT_WORK_DIR}"> - <Manager className="com.huawei.cloudsop.tomcat.api.session.StandardManagerExt" /> - </Context> - <!-- Access log processes all example. Documentation at: /docs/config/valve.html Note: The pattern used is - equivalent to using pattern="common" --> - <Valve className="com.huawei.cloudsop.tomcat.api.log.AccessLogValveExt" pattern="%h %l %u %t "%r" %s %b %{x-request-id}i" /> - + <Host appBase="webapps" autoDeploy="true" name="localhost" unpackWARs="true"> + <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" + pattern="%h %l %u %t "%r" %s %b" prefix="localhost_access_log" suffix=".txt" /> + <Context docBase="ROOT" path="" reloadable="true" /> </Host> </Engine> </Service> -</Server> +</Server>
\ No newline at end of file diff --git a/servicegateway/deployment/src/main/release/conf/web.xml b/servicegateway/deployment/src/main/release/conf/web.xml index c7636006..4cd9d09e 100644 --- a/servicegateway/deployment/src/main/release/conf/web.xml +++ b/servicegateway/deployment/src/main/release/conf/web.xml @@ -1,11 +1,19 @@ <?xml version="1.0" encoding="ISO-8859-1"?> -<!-- 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. --> +<!-- + Copyright 2016 Huawei Technologies Co., Ltd. + + Licensed 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. +--> <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" diff --git a/servicegateway/deployment/src/main/release/etc/conf/restclient.json b/servicegateway/deployment/src/main/release/etc/conf/restclient.json index 304e2137..b886bc9a 100644 --- a/servicegateway/deployment/src/main/release/etc/conf/restclient.json +++ b/servicegateway/deployment/src/main/release/etc/conf/restclient.json @@ -1,3 +1,18 @@ +/*
+ * Copyright 2016 Huawei Technologies Co., Ltd.
+ *
+ * Licensed 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.
+ */
{
"defaultServer":
{
diff --git a/servicegateway/deployment/src/main/release/etc/framework/tracker.properties b/servicegateway/deployment/src/main/release/etc/framework/tracker.properties deleted file mode 100644 index 68eddf2f..00000000 --- a/servicegateway/deployment/src/main/release/etc/framework/tracker.properties +++ /dev/null @@ -1 +0,0 @@ -roa.tracker.class=org.openo.gso.commonsvc.servicegateway.talc.impl.TrackerManagerImpl diff --git a/servicegateway/deployment/src/main/release/etc/log4j/log4j-app.properties b/servicegateway/deployment/src/main/release/etc/log4j/log4j-app.properties deleted file mode 100644 index 1653372a..00000000 --- a/servicegateway/deployment/src/main/release/etc/log4j/log4j-app.properties +++ /dev/null @@ -1,50 +0,0 @@ -log4j.rootLogger=WARN,root -log4j.logger.access=WARN,access -log4j.logger.org.openo.baseservice.log4operation.System=info,log4operation -log4j.logger.org.openo.baseservice.base.launcher=info,apploader -log4j.logger.org.openo.baseservice.framework.appmgr=info,apploader -log4j.logger.org.openo.baseservice.framework.apploader=info,apploader -log4j.logger.org.openo.baseservice.framework.appmgrimpl=info,apploader - -log4j.additivity.access=true -log4j.additivity.org.openo.baseservice.log4operation.System=false -log4j.additivity.org.openo.baseservice.base.launcher=false -log4j.additivity.org.openo.baseservice.framework.appmgr=false -log4j.additivity.org.openo.baseservice.framework.apploader=false -log4j.additivity.org.openo.baseservice.framework.appmgrimpl=false - -log4j.appender.access.Append=true -log4j.appender.access.File=log/access -log4j.appender.access.layout.ConversionPattern=%d %-5p [%t][%X{moduleID}][%C %L] %m%n -log4j.appender.access.layout=org.apache.log4j.PatternLayout -log4j.appender.access.MaxBackupIndex=50 -log4j.appender.access.MaxFileSize=20MB -log4j.appender.access=org.openo.baseservice.log4j.extend.OssRollingFileAppender - - -log4j.appender.root.Append=true -log4j.appender.root.File=log/root -log4j.appender.root.layout.ConversionPattern=%d %-5p [%t][%X{moduleID}][%C %L] %m%n -log4j.appender.root.layout=org.apache.log4j.PatternLayout -log4j.appender.root.MaxBackupIndex=50 -log4j.appender.root.MaxFileSize=20MB -log4j.appender.root=org.openo.baseservice.log4j.extend.OssRollingFileAppender - - -log4j.appender.log4operation=org.openo.baseservice.log4j.extend.OssRollingFileAppender -log4j.appender.log4operation.useNewThread4Zip=false -log4j.appender.log4operation.File=operation/log4operation-System -log4j.appender.log4operation.MaxFileSize=10MB -log4j.appender.log4operation.MaxBackupIndex=10 -log4j.appender.log4operation.layout=org.apache.log4j.PatternLayout -log4j.appender.log4operation.layout.ConversionPattern=%d %p [%c] - %m%n -log4j.appender.log4operation.permission=600 - -log4j.appender.apploader=org.openo.baseservice.log4j.extend.OssRollingFileAppender -log4j.appender.apploader.File=log/apploader -log4j.appender.apploader.MaxFileSize=50MB -log4j.appender.apploader.MaxBackupIndex=30 -log4j.appender.apploader.Append=true -log4j.appender.apploader.layout=org.apache.log4j.PatternLayout -log4j.appender.apploader.layout.ConversionPattern=%d %-5p [%t][%X{moduleID}][%C %L] %m%n -log4j.appender.apploader.moduleID=Apploader diff --git a/servicegateway/deployment/src/main/release/etc/platformversion.xml b/servicegateway/deployment/src/main/release/etc/platformversion.xml deleted file mode 100644 index add9ab01..00000000 --- a/servicegateway/deployment/src/main/release/etc/platformversion.xml +++ /dev/null @@ -1,5 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<config name="version"> - <param name="PLATFORM_VERSION">CloudSOP @{PLATFORM_VERSION}</param> - <param name="VERSION_TIME">@{VERSION_TIME}</param> -</config> diff --git a/servicegateway/deployment/src/main/release/etc/register/service.json b/servicegateway/deployment/src/main/release/etc/register/service.json index 5d32dd06..565342e4 100644 --- a/servicegateway/deployment/src/main/release/etc/register/service.json +++ b/servicegateway/deployment/src/main/release/etc/register/service.json @@ -1,3 +1,18 @@ +/*
+ * Copyright 2016 Huawei Technologies Co., Ltd.
+ *
+ * Licensed 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.
+ */
{
"serviceName" : "servicegateway",
"version" : "v1",
@@ -7,7 +22,7 @@ "nodes" : [
{
"ip" : "getInputIP",
- "port" : "8301",
+ "port" : "8305",
"ttl" : 0
}
]
diff --git a/servicegateway/deployment/src/main/release/init/post_install.sh b/servicegateway/deployment/src/main/release/init/post_install.sh deleted file mode 100644 index 959acc51..00000000 --- a/servicegateway/deployment/src/main/release/init/post_install.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash -#check user -if [ "root" = "`/usr/bin/id -u -n`" ];then - echo "root has been forbidden to execute the shell." - exit 1 -fi - -if [[ -z ${APP_ROOT} ]];then - echo "APP_ROOT is empty." - exit 1 -fi - -if [[ -z ${_APP_LOG_DIR} ]];then - echo "_APP_LOG_DIR is empty." - exit 1 -fi - -#HORNETQ_CONF=$APP_ROOT/etc - -#chmod 400 $HORNETQ_CONF/engine.json diff --git a/servicegateway/deployment/src/main/release/pub/app_define.json b/servicegateway/deployment/src/main/release/pub/app_define.json deleted file mode 100644 index 83f9f9d2..00000000 --- a/servicegateway/deployment/src/main/release/pub/app_define.json +++ /dev/null @@ -1,97 +0,0 @@ -{ - "fileVersion": "1", - "name": "ServiceGateway", - "description": "ServiceGateway", - "requireDiskSize": 50, - "rtspSoftLink": true, - "upgrade": { - "use": { - "jre": "~1.3" - }, - "postInstall": { - "command": [ - "${APP_ROOT}/init/post_install.sh" - ], - "timeout": 300 - }, - "check": { - "command": [ - "${APP_ROOT}/upgrade/check.sh" - ], - "timeout": 30 - }, - "upgrade": { - "command": [ - "${APP_ROOT}/upgrade/init.sh" - ], - "timeout": 300 - } - }, - "processes": { - "ServiceGateway": { - "use": { - "jre": "~1.3", - "tomcat": "~9.0" - }, - "subscribes": [ - { - "name": "iamcacheproxy", - "srv_ctx": {}, - "ins_ctx": {} - }, - { - "name": "iamcore", - "srv_ctx": {}, - "ins_ctx": {} - } - ], - "mode": "cluster", - "cpu": 0.5, - "memory": 1024, - "memoryLimit": 4096, - "patterns": [ - "!/rest/ServiceGateway/v1", - "/rest/ServiceGateway_portal/v1" - ], - "useAdditionalEnv": [ - "_APP_LOG_DIR", - "_APP_TMP_DIR", - "_APP_SHARE_DIR" - ], - "protocols": { - "IR": "http" - }, - "commands": { - "start": [ - "${APP_ROOT}/bin/start.sh" - ], - "stop": [ - "${APP_ROOT}/bin/stop.sh" - ] - } - } - }, - "databases": { - "ServiceGatewaydb": { - "type": [ - "mysql" - ], - "serviceName": "ServiceGatewaydb", - "dataSize": 4096, - "logSize": 128, - "sharding": false, - "defaultShardingNumber": 1 - } - }, - "redis": { - "ServiceGatewayrdb": { - "serviceName": "ServiceGatewayrdb", - "type": "cache", - "memory": 1024, - "dataSize": 1024, - "sharding": false, - "defaultShardingNumber": 1, - "protected": true - } - } -} diff --git a/servicegateway/deployment/src/main/release/pub/i18n/en_US/app_define.properties b/servicegateway/deployment/src/main/release/pub/i18n/en_US/app_define.properties deleted file mode 100644 index 6918a8bf..00000000 --- a/servicegateway/deployment/src/main/release/pub/i18n/en_US/app_define.properties +++ /dev/null @@ -1,80 +0,0 @@ -servicemgr.bad_param_desc=Invalid Param -servicemgr.bad_param_detail=Invalid Param. -servicemgr.bad_param_reason=Invalid Param -servicemgr.bad_param_advice=Invalid Param -servicemgr.service.status_inprogress_desc=The service status is in process, can not operate it. -servicemgr.service.status_inprogress_detail=The service status is in process, can not operate it. -servicemgr.service.status_inprogress_reason=The service status is in process, can not operate it. -servicemgr.service.status_inprogress_advice=Can not operate service when service status is in progress. -servicemgr.service.status_active_desc=The service status is active, activate or delete service is not permitted. -servicemgr.service.status_active_detail=The service status is active, activate or delete service is not permitted. -servicemgr.service.status_active_reason=The service status is active, activate or delete service is not permitted. -servicemgr.service.status_active_advice=Can not activate or delete service when service status is active. -servicemgr.service.status_deactive_desc=The service status is deactive, deactivate service is not permitted. -servicemgr.service.status_deactive_detail=The service status is deactive, deactivate service is not permitted. -servicemgr.service.status_deactive_reason=The service status is deactive, deactivate service is not permitted. -servicemgr.service.status_deactive_advice=Can not deactive service when service status service is deactive. -servicemgr.mysql.oper_mysql_db_error_desc=Operate mysql database error. -servicemgr.mysql.oper_mysql_db_error_detail=Operate mysql database error. -servicemgr.mysql.oper_mysql_db_error_reason=Operate mysql database error. -servicemgr.mysql.oper_mysql_db_error_advice=Operate mysql database error. -servicemgr.redis.oper_redis_db_error_desc=Operate redis error. -servicemgr.redis.oper_redis_db_error_reason=Operate redis error. -servicemgr.redis.oper_redis_db_error_detail=Operate redis error. -servicemgr.redis.oper_redis_db_error_advice=Operate redis error. -servicemgr.db.oper_db_error_desc=Operate database error. -servicemgr.db.oper_db_error_detail=Operate database error. -servicemgr.db.oper_db_error_reason=Operate database error. -servicemgr.db.oper_db_error_advice=Operate database error. -servicemgr.service.not_exist_desc=Service is not exist, can not operate it. -servicemgr.service.not_exist_detail=Service is not exist, can not operate it. -servicemgr.service.not_exist_reason=Service is not exist, can not operate it. -servicemgr.service.not_exist_advice=Service is not exist, can not operate it. -servicemgr.service.status_param_error_desc=The parameter of service status is error, can not operate it. -servicemgr.service.status_param_error_detail=The parameter of service status is error, can not operate it. -servicemgr.service.status_param_error_reason=The parameter of service status is error, can not operate it. -servicemgr.service.status_param_error_advice=The parameter of service status is error, can not operate it. -servicemgr.service.service_package_status_inactive_desc=The service package status is offline. -servicemgr.service.service_package_status_inactive_detail=The service package status is offline. -servicemgr.service.service_package_status_inactive_reason=The service package status is offline. -servicemgr.service.service_package_status_inactive_advice=Online the service package firstly. -servicemgr.service.service_package_status_delete_depending_desc=The Service Package is delete pending, can't do the action. -servicemgr.service.service_package_status_delete_depending_detail=The Service Package is delete pending, can't do the action. -servicemgr.service.service_package_status_delete_depending_reason=The Service Package is delete pending, can't do the action. -servicemgr.service.service_package_status_delete_depending_advice=The Service Package is delete pending, can't do the action. -servicemgr.servicePackage.not_activation_desc=The service package status is incorrect. -servicemgr.servicePackage.not_activation_detail=The service package status is incorrect. -servicemgr.servicePackage.not_activation_reason=The service package status is incorrect. -servicemgr.servicePackage.not_activation_advice=The service package status is incorrect, can not operate it. -servicemgr.servicePageExtend.not_exist_desc=The service_page_extend is not exist, can not operate it. -servicemgr.servicePageExtend.not_exist_detail=The service_page_extend is not exist, can not operate it. -servicemgr.servicePageExtend.not_exist_reason=The service_page_extend is not exist, can not operate it. -servicemgr.servicePageExtend.not_exist_advice=The service_page_extend is not exist, can not operate it. -servicemgr.service.create_failed_desc=Service create failed, only deleting operation is permitted. -servicemgr.service.create_failed_detail=Service create failed, only deleting operation is permitted. -servicemgr.service.create_failed_reason=Service create failed, only deleting operation is permitted. -servicemgr.service.create_failed_advice=Service create failed, only deleting operation is permitted. -servicemgr.service.parameter.validate_error_desc=Service parameter validate failed. -servicemgr.service.parameter.validate_error_detail=Service parameter validate failed. -servicemgr.service.parameter.validate_error_reason=Service parameter validate failed. -servicemgr.service.parameter.validate_error_advice=Service parameter validate failed. -servicemgr.service.template.parse_error_desc=Template parse error. -servicemgr.service.template.parse_error_detail=Template parse error. -servicemgr.service.template.parse_error_reason=Template parse error. -servicemgr.service.template.parse_error_advice=Template parse error. -servicemgr.permission_denied_desc=Incorrect password. -servicemgr.permission_denied_detail=Incorrect password. -servicemgr.permission_denied_reason=Incorrect password. -servicemgr.permission_denied_advice=Incorrect password. -servicemgr.template.not_exist_desc=The template does not exist. -servicemgr.template.not_exist_detail=The template does not exist. -servicemgr.template.not_exist_reason=The template does not exist. -servicemgr.template.not_exist_advice=The template does not exist. -servicemgr.service.exist_desc=Service is exist. -servicemgr.service.exist_detail=Service is exist. -servicemgr.service.exist_reason=Service is exist. -servicemgr.service.exist_advice=Service is exist. -servicemgr.template.parameter.not_exist_desc=The parameters of template does not exist. -servicemgr.template.parameter.not_exis_detail=The parameters of template does not exist. -servicemgr.template.parameter.not_exis_reason=The parameters of template does not exist. -servicemgr.template.parameter.not_exis_advice=The parameters of template does not exist. diff --git a/servicegateway/deployment/src/main/release/pub/i18n/zh_CN/app_define.properties b/servicegateway/deployment/src/main/release/pub/i18n/zh_CN/app_define.properties deleted file mode 100644 index b6ab626b..00000000 --- a/servicegateway/deployment/src/main/release/pub/i18n/zh_CN/app_define.properties +++ /dev/null @@ -1,83 +0,0 @@ -name=ServiceGateway -description=\u63d0\u4f9b\u8054\u673a\u5e2e\u52a9\u3002 -servicemgr.bad_param_desc=\u53c2\u6570\u9519\u8bef -servicemgr.bad_param_detail=\u53c2\u6570\u9519\u8bef\u3002 -servicemgr.bad_param_reason=\u53c2\u6570\u9519\u8bef -servicemgr.bad_param_advice=\u53c2\u6570\u9519\u8bef -servicemgr.service.status_inprogress_desc=\u5f53\u524d\u4e1a\u52a1\u6b63\u5728\u5904\u7406\u4e2d\u65f6\uff0c\u4e0d\u80fd\u8fdb\u884c\u64cd\u4f5c\u3002 -servicemgr.service.status_inprogress_detail=\u5f53\u524d\u4e1a\u52a1\u6b63\u5728\u5904\u7406\u4e2d\u65f6\uff0c\u4e0d\u80fd\u8fdb\u884c\u64cd\u4f5c\u3002 -servicemgr.service.status_inprogress_reason=\u5f53\u524d\u4e1a\u52a1\u6b63\u5728\u5904\u7406\u4e2d\u65f6\uff0c\u4e0d\u80fd\u8fdb\u884c\u64cd\u4f5c\u3002 -servicemgr.service.status_inprogress_advice=\u5f53\u524d\u4e1a\u52a1\u6b63\u5728\u5904\u7406\u4e2d\u65f6\uff0c\u4e0d\u80fd\u8fdb\u884c\u64cd\u4f5c\u3002 -servicemgr.service.status_active_desc=\u4e1a\u52a1\u4e3a\u6fc0\u6d3b\u72b6\u6001\uff0c\u4e0d\u652f\u6301\u6fc0\u6d3b\u6216\u5220\u9664\u64cd\u4f5c\u3002 -servicemgr.service.status_active_detail=\u4e1a\u52a1\u4e3a\u6fc0\u6d3b\u72b6\u6001\uff0c\u4e0d\u652f\u6301\u6fc0\u6d3b\u6216\u5220\u9664\u64cd\u4f5c\u3002 -servicemgr.service.status_active_reason=\u4e1a\u52a1\u4e3a\u6fc0\u6d3b\u72b6\u6001\uff0c\u4e0d\u652f\u6301\u6fc0\u6d3b\u6216\u5220\u9664\u64cd\u4f5c\u3002 -servicemgr.service.status_active_advice=\u4e1a\u52a1\u4e3a\u6fc0\u6d3b\u72b6\u6001\uff0c\u4e0d\u652f\u6301\u6fc0\u6d3b\u6216\u5220\u9664\u64cd\u4f5c\u3002 -servicemgr.service.status_deactive_desc=\u4e1a\u52a1\u4e3a\u53bb\u6fc0\u6d3b\u72b6\u6001\uff0c\u4e0d\u652f\u6301\u53bb\u6fc0\u6d3b\u64cd\u4f5c\u3002 -servicemgr.service.status_deactive_detail=\u4e1a\u52a1\u4e3a\u53bb\u6fc0\u6d3b\u72b6\u6001\uff0c\u4e0d\u652f\u6301\u53bb\u6fc0\u6d3b\u64cd\u4f5c\u3002 -servicemgr.service.status_deactive_reason=\u4e1a\u52a1\u4e3a\u53bb\u6fc0\u6d3b\u72b6\u6001\uff0c\u4e0d\u652f\u6301\u53bb\u6fc0\u6d3b\u64cd\u4f5c\u3002 -servicemgr.service.status_deactive_advice=\u4e1a\u52a1\u4e3a\u53bb\u6fc0\u6d3b\u72b6\u6001\uff0c\u4e0d\u652f\u6301\u53bb\u6fc0\u6d3b\u64cd\u4f5c\u3002 -servicemgr.mysql.oper_mysql_db_error_desc=\u64cd\u4f5c\u5173\u7cfb\u6570\u636e\u5e93\u5931\u8d25\u3002 -servicemgr.mysql.oper_mysql_db_error_detail=\u64cd\u4f5c\u5173\u7cfb\u6570\u636e\u5e93\u5931\u8d25\u3002 -servicemgr.mysql.oper_mysql_db_error_reason=\u64cd\u4f5c\u5173\u7cfb\u6570\u636e\u5e93\u5931\u8d25\u3002 -servicemgr.mysql.oper_mysql_db_error_advice=\u64cd\u4f5c\u5173\u7cfb\u6570\u636e\u5e93\u5931\u8d25\u3002 -servicemgr.redis.oper_redis_db_error_desc=\u64cd\u4f5c\u7f13\u5b58\u6570\u636e\u5e93\u5931\u8d25\u3002 -servicemgr.redis.oper_redis_db_error_reason=\u64cd\u4f5c\u7f13\u5b58\u6570\u636e\u5e93\u5931\u8d25\u3002 -servicemgr.redis.oper_redis_db_error_detail=\u64cd\u4f5c\u7f13\u5b58\u6570\u636e\u5e93\u5931\u8d25\u3002 -servicemgr.redis.oper_redis_db_error_advice=\u64cd\u4f5c\u7f13\u5b58\u6570\u636e\u5e93\u5931\u8d25\u3002 -servicemgr.db.oper_db_error_desc=\u64cd\u4f5c\u6570\u636e\u5e93\u5931\u8d25\u3002 -servicemgr.db.oper_db_error_detail=\u64cd\u4f5c\u6570\u636e\u5e93\u5931\u8d25\u3002 -servicemgr.db.oper_db_error_reason=\u64cd\u4f5c\u6570\u636e\u5e93\u5931\u8d25\u3002 -servicemgr.db.oper_db_error_advice=\u64cd\u4f5c\u6570\u636e\u5e93\u5931\u8d25\u3002 -servicemgr.service.not_exist_desc=\u4e1a\u52a1\u4e0d\u5b58\u5728\uff0c\u4e0d\u80fd \u8fdb\u884c\u64cd\u4f5c\u3002 -servicemgr.service.not_exist_detail=\u4e1a\u52a1\u4e0d\u5b58\u5728\uff0c\u4e0d\u80fd \u8fdb\u884c\u64cd\u4f5c\u3002 -servicemgr.service.not_exist_reason=\u4e1a\u52a1\u4e0d\u5b58\u5728\uff0c\u4e0d\u80fd \u8fdb\u884c\u64cd\u4f5c\u3002 -servicemgr.service.not_exist_advice=\u4e1a\u52a1\u4e0d\u5b58\u5728\uff0c\u4e0d\u80fd \u8fdb\u884c\u64cd\u4f5c\u3002 -servicemgr.service.status_param_error_desc=\u4e1a\u52a1\u72b6\u6001\u53c2\u6570\u5f02\u5e38\u3002 -servicemgr.service.status_param_error_detail=\u4e1a\u52a1\u72b6\u6001\u53c2\u6570\u5f02\u5e38\u3002 -servicemgr.service.status_param_error_reason=\u4e1a\u52a1\u72b6\u6001\u53c2\u6570\u5f02\u5e38\u3002 -servicemgr.service.status_param_error_advice=\u4e1a\u52a1\u72b6\u6001\u53c2\u6570\u5f02\u5e38\u3002 -servicemgr.service.service_package_status_inactive_desc=\u5f53\u524d\u4e1a\u52a1\u5305\u4e3a\u4e0b\u7ebf\u72b6\u6001\uff0c\u4e0d\u5141\u8bb8\u64cd\u4f5c\u3002 -servicemgr.service.service_package_status_inactive_detail=\u5f53\u524d\u4e1a\u52a1\u5305\u4e3a\u4e0b\u7ebf\u72b6\u6001\uff0c\u4e0d\u5141\u8bb8\u64cd\u4f5c\u3002 -servicemgr.service.service_package_status_inactive_reason=\u5f53\u524d\u4e1a\u52a1\u5305\u4e3a\u4e0b\u7ebf\u6d3b\u72b6\u6001\uff0c\u4e0d\u5141\u8bb8\u64cd\u4f5c\u3002 -servicemgr.service.service_package_status_inactive_advice=\u5f53\u524d\u4e1a\u52a1\u5305\u4e3a\u4e0b\u7ebf\u6d3b\u72b6\u6001\uff0c\u4e0d\u5141\u8bb8\u64cd\u4f5c\u3002 -servicemgr.service.service_package_status_delete_depending_desc=\u4e1a\u52a1\u5b9a\u4e49\u7684\u72b6\u6001\u662f\u5f85\u5220\u9664\uff0c\u4e0d\u80fd\u6267\u884c\u64cd\u4f5c\u3002\u3002 -servicemgr.service.service_package_status_delete_depending_detail=\u4e1a\u52a1\u5b9a\u4e49\u7684\u72b6\u6001\u662f\u5f85\u5220\u9664\uff0c\u4e0d\u80fd\u6267\u884c\u64cd\u4f5c\u3002\u3002 -servicemgr.service.service_package_status_delete_depending_reason=\u4e1a\u52a1\u5b9a\u4e49\u7684\u72b6\u6001\u662f\u5f85\u5220\u9664\uff0c\u4e0d\u80fd\u6267\u884c\u64cd\u4f5c\u3002\u3002 -servicemgr.service.service_package_status_delete_depending_advice=\u4e1a\u52a1\u5b9a\u4e49\u7684\u72b6\u6001\u662f\u5f85\u5220\u9664\uff0c\u4e0d\u80fd\u6267\u884c\u64cd\u4f5c\u3002\u3002 -servicemgr.servicePackage.not_activation_desc=\u5f53\u524d\u4e1a\u52a1\u5305\u72b6\u6001\u5f02\u5e38\u3002 -servicemgr.servicePackage.not_activation_detail=\u5f53\u524d\u4e1a\u52a1\u5305\u72b6\u6001\u5f02\u5e38\u3002 -servicemgr.servicePackage.not_activation_reason=\u5f53\u524d\u4e1a\u52a1\u5305\u72b6\u6001\u5f02\u5e38\u3002 -servicemgr.servicePackage.not_activation_advice=\u5f53\u524d\u4e1a\u52a1\u5305\u72b6\u6001\u5f02\u5e38\uff0c\u4e0d\u5141\u8bb8\u64cd\u4f5c\u3002 -servicemgr.servicePageExtend.not_exist_desc=\u5f53\u524d\u4e1a\u52a1\u6ce8\u518c\u9875\u9762\u4fe1\u606f\u4e0d\u5b58\u5728\uff0c\u4e0d\u5141\u8bb8\u64cd\u4f5c\u3002 -servicemgr.servicePageExtend.not_exist_detail=\u5f53\u524d\u4e1a\u52a1\u6ce8\u518c\u9875\u9762\u4fe1\u606f\u4e0d\u5b58\u5728\uff0c\u4e0d\u5141\u8bb8\u64cd\u4f5c\u3002 -servicemgr.servicePageExtend.not_exist_reason=\u5f53\u524d\u4e1a\u52a1\u6ce8\u518c\u9875\u9762\u4fe1\u606f\u4e0d\u5b58\u5728\uff0c\u4e0d\u5141\u8bb8\u64cd\u4f5c\u3002 -servicemgr.servicePageExtend.not_exist_advice=\u5f53\u524d\u4e1a\u52a1\u6ce8\u518c\u9875\u9762\u4fe1\u606f\u4e0d\u5b58\u5728\uff0c\u4e0d\u5141\u8bb8\u64cd\u4f5c\u3002 -servicemgr.service.create_failed_desc=\u5f53\u524d\u4e1a\u52a1\u521b\u5efa\u5931\u8d25\uff0c\u53ea\u5141\u8bb8\u5220\u9664\u64cd\u4f5c\u3002 -servicemgr.service.create_failed_detail=\u5f53\u524d\u4e1a\u52a1\u521b\u5efa\u5931\u8d25\uff0c\u53ea\u5141\u8bb8\u5220\u9664\u64cd\u4f5c\u3002 -servicemgr.service.create_failed_reason=\u5f53\u524d\u4e1a\u52a1\u521b\u5efa\u5931\u8d25\uff0c\u53ea\u5141\u8bb8\u5220\u9664\u64cd\u4f5c\u3002 -servicemgr.service.create_failed_advice=\u5f53\u524d\u4e1a\u52a1\u521b\u5efa\u5931\u8d25\uff0c\u53ea\u5141\u8bb8\u5220\u9664\u64cd\u4f5c\u3002 -servicemgr.service.parameter.validate_error_desc=\u4e1a\u52a1\u53c2\u6570\u6821\u9a8c\u5931\u8d25\u3002 -servicemgr.service.parameter.validate_error_detail=\u4e1a\u52a1\u53c2\u6570\u6821\u9a8c\u5931\u8d25\u3002 -servicemgr.service.parameter.validate_error_reason=\u4e1a\u52a1\u53c2\u6570\u6821\u9a8c\u5931\u8d25\u3002 -servicemgr.service.parameter.validate_error_advice=\u4e1a\u52a1\u53c2\u6570\u6821\u9a8c\u5931\u8d25\u3002 -servicemgr.service.template.parse_error_desc=\u6a21\u677f\u89e3\u6790\u5931\u8d25\u3002 -servicemgr.service.template.parse_error_detail=\u6a21\u677f\u89e3\u6790\u5931\u8d25\u3002 -servicemgr.service.template.parse_error_reason=\u6a21\u677f\u89e3\u6790\u5931\u8d25\u3002 -servicemgr.service.template.parse_error_advice=\u6a21\u677f\u89e3\u6790\u5931\u8d25\u3002 -servicemgr.permission_denied_desc=\u5bc6\u7801\u9519\u8bef -servicemgr.permission_denied_detail=\u5bc6\u7801\u9519\u8bef -servicemgr.permission_denied_reason=\u5bc6\u7801\u9519\u8bef -servicemgr.permission_denied_advice=\u5bc6\u7801\u9519\u8bef -servicemgr.template.not_exist=\u6a21\u677f\u4e0d\u5b58\u5728 -servicemgr.template.not_exist_desc=\u6a21\u677f\u4e0d\u5b58\u5728 -servicemgr.template.not_exist_detail=\u6a21\u677f\u4e0d\u5b58\u5728 -servicemgr.template.not_exist_reason=\u6a21\u677f\u4e0d\u5b58\u5728 -servicemgr.template.not_exist_advice=\u6a21\u677f\u4e0d\u5b58\u5728 -servicemgr.service.exist_desc=\u4e1a\u52a1\u5df2\u5b58\u5728\u3002 -servicemgr.service.exist_detail=\u4e1a\u52a1\u5df2\u5b58\u5728\u3002 -servicemgr.service.exist_reason=\u4e1a\u52a1\u5df2\u5b58\u5728\u3002 -servicemgr.service.exist_advice=\u4e1a\u52a1\u5df2\u5b58\u5728\u3002 -servicemgr.template.parameter.not_exist_desc=\u6a21\u677f\u53c2\u6570\u4e0d\u5b58\u5728\u3002 -servicemgr.template.parameter.not_exis_detail=\u6a21\u677f\u53c2\u6570\u4e0d\u5b58\u5728\u3002 -servicemgr.template.parameter.not_exis_reason=\u6a21\u677f\u53c2\u6570\u4e0d\u5b58\u5728\u3002 -servicemgr.template.parameter.not_exis_advice=\u6a21\u677f\u53c2\u6570\u4e0d\u5b58\u5728\u3002
\ No newline at end of file diff --git a/servicegateway/deployment/src/main/release/pub/release_version.properties b/servicegateway/deployment/src/main/release/pub/release_version.properties deleted file mode 100644 index b5b354e5..00000000 --- a/servicegateway/deployment/src/main/release/pub/release_version.properties +++ /dev/null @@ -1 +0,0 @@ -upload_path=Services/ICTO/public diff --git a/servicegateway/deployment/src/main/release/upgrade/check.sh b/servicegateway/deployment/src/main/release/upgrade/check.sh deleted file mode 100644 index d87f29ee..00000000 --- a/servicegateway/deployment/src/main/release/upgrade/check.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -exit 1 diff --git a/servicegateway/deployment/src/main/release/upgrade/init.sh b/servicegateway/deployment/src/main/release/upgrade/init.sh deleted file mode 100644 index 799b7e4a..00000000 --- a/servicegateway/deployment/src/main/release/upgrade/init.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/bash -#check user -CUR_PATH=$(cd `dirname $0`;pwd) -SCRIPT_PATH=$0 -IPMC_USER="`stat -c '%U' ${SCRIPT_PATH}`" -export IPMC_USER -CURRENT_USER="`/usr/bin/id -u -n`" -if [ "${IPMC_USER}" != "${CURRENT_USER}" ] -then - echo "only ${IPMC_USER} can execute this script." - exit 1 -fi -umask 027 - -cd $APP_ROOT -JAVA=$JAVA_HOME/bin/java - -DB_ID="ServiceGatewaydb" -SCRIPT=$APP_ROOT/init/ServiceGateway_tables_@{dbtype}.sql - -JVM_OPT="$JVM_OPT -Dlog.dir=$_APP_LOG_DIR" -JVM_OPT="$JVM_OPT -Dinit.appconfig=$APP_CONF_FILE" -JVM_OPT="$JVM_OPT -Dinit.approot=$APP_ROOT" -JVM_OPT="$JVM_OPT -Dinit.dataSourceId=$DB_ID" -JVM_OPT="$JVM_OPT -Dinit.script=$SCRIPT" -JVM_OPT="$JVM_OPT -Dinit.connectType=$1" -JVM_OPT="$JVM_OPT -Dinit.class=org.openo.baseservice.biz.init.impl.DBInitializer" - -CLASS_PATH="$APP_ROOT/lib/*:$APP_ROOT/webapps/ROOT/WEB-INF/lib/*:" -JVM_OPT="$JVM_OPT -classpath $CLASS_PATH" - -$JAVA $JVM_OPT org.openo.baseservice.biz.inittool.InitTool -result=$? -$CUR_PATH/../../../../manager/agent/tools/shscript/syslogutils.sh "$(basename $0)" "$result" "Execute($#):$CUR_PATH/$0 $@";exit $result diff --git a/servicegateway/pom.xml b/servicegateway/pom.xml index 660e55d4..3836dd5c 100644 --- a/servicegateway/pom.xml +++ b/servicegateway/pom.xml @@ -1,3 +1,18 @@ +<!-- + Copyright 2016 Huawei Technologies Co., Ltd. + + Licensed 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. +--> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> diff --git a/servicegateway/service/pom.xml b/servicegateway/service/pom.xml index 17372a4c..320e0f32 100644 --- a/servicegateway/service/pom.xml +++ b/servicegateway/service/pom.xml @@ -1,9 +1,19 @@ <?xml version="1.0" encoding="UTF-8"?> -<!-- /* * Copyright (c) 2016, Huawei Technologies Co., Ltd. * * Licensed 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. */ --> +<!-- + Copyright 2016 Huawei Technologies Co., Ltd. + + Licensed 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. +--> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> diff --git a/servicegateway/service/src/main/resources/spring/service.xml b/servicegateway/service/src/main/resources/spring/service.xml index c91ed1ca..b1be8e93 100644 --- a/servicegateway/service/src/main/resources/spring/service.xml +++ b/servicegateway/service/src/main/resources/spring/service.xml @@ -1,9 +1,19 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- /* * Copyright (c) 2016, Huawei Technologies Co., Ltd. * * Licensed 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. */ --> +<!-- + Copyright 2016 Huawei Technologies Co., Ltd. + + Licensed 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. +--> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxrs="http://cxf.apache.org/jaxrs" xmlns:ctx="http://www.springframework.org/schema/context" xmlns:context="http://www.springframework.org/schema/context" xmlns:oms="http://www.huawei.com/schema/oms" @@ -50,47 +60,14 @@ <constructor-arg index="0" ref="sessionFactory" /> </bean> - <bean class="org.openo.gso.servicemgr.activator.Activator"></bean> + <bean class="org.openo.gso.gui.servicegateway.activator.Activator"></bean> - <bean id="Activator" class="org.openo.gso.servicemgr.activator.Activator" init-method="start" destroy-method="stop"> + <bean id="Activator" class="org.openo.gso.gui.servicegateway.activator.Activator" init-method="start" destroy-method="stop"> </bean> - <bean id="ServicemgrRoaModuleImpl" class="org.openo.gso.servicemgr.roa.impl.ServicemgrRoaModuleImpl"> + <bean id="ServicGatewayRoaModuleImpl" class="org.openo.gso.gui.servicegateway.roa.impl.ServicGatewayRoaModuleImpl"> <property name="ServiceGateway" ref="ServiceGateway"></property> </bean> - <bean id="ServiceGateway" class="org.openo.gso.servicemgr.service.impl.ServiceGatewayImpl"> - <property name="serviceModelDao" ref="serviceModelDao"></property> - <property name="subServiceDao" ref="subServiceDao"></property> - <property name="servicePackageDao" ref="servicePackageDao"></property> - <property name="catalogProxy" ref="catalogProxy"></property> - <property name="wsoProxy" ref="wsoProxy"></property> - </bean> - - <bean id="ServicePackageModuleImpl" class="org.openo.gso.servicemgr.roa.impl.ServicePackageModuleImpl"> - <property name="packageMgr" ref="packageMgr"></property> - </bean> - - <bean id="packageMgr" class="org.openo.gso.servicemgr.service.impl.PackageManagerImpl"> - <property name="servicePackageDao" ref="servicePackageDao"></property> - <property name="catalogProxy" ref="catalogProxy"></property> - </bean> - - <bean id="serviceModelDao" class="org.openo.gso.servicemgr.dao.impl.ServiceModelDaoImpl"> - <property name="session" ref="session" /> - </bean> - - <bean id="servicePackageDao" class="org.openo.gso.servicemgr.dao.impl.ServicePackageDaoImpl"> - <property name="session" ref="session" /> - </bean> - - <bean id="subServiceDao" class="org.openo.gso.servicemgr.dao.impl.SubServiceDaoImpl"> - <property name="session" ref="session" /> - </bean> - - <bean id="catalogProxy" class="org.openo.gso.servicemgr.restproxy.impl.CatalogProxyImpl"> - </bean> - - <bean id="wsoProxy" class="org.openo.gso.servicemgr.restproxy.impl.WsoProxyImpl"> </bean> </beans>
\ No newline at end of file diff --git a/servicegateway/service/src/main/webapp/WEB-INF/web.xml b/servicegateway/service/src/main/webapp/WEB-INF/web.xml index 6f06aed3..59f35929 100644 --- a/servicegateway/service/src/main/webapp/WEB-INF/web.xml +++ b/servicegateway/service/src/main/webapp/WEB-INF/web.xml @@ -1,9 +1,19 @@ <?xml version="1.0" encoding="UTF-8"?> -<!-- /* * Copyright (c) 2016, Huawei Technologies Co., Ltd. * * Licensed 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. */ --> +<!-- + Copyright 2016 Huawei Technologies Co., Ltd. + + Licensed 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. +--> <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee |