summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk-app/src/main/webapp/app/policyApp/service/Dictionary
diff options
context:
space:
mode:
Diffstat (limited to 'ecomp-sdk-app/src/main/webapp/app/policyApp/service/Dictionary')
-rw-r--r--ecomp-sdk-app/src/main/webapp/app/policyApp/service/Dictionary/CLDictionaryService.js132
-rw-r--r--ecomp-sdk-app/src/main/webapp/app/policyApp/service/Dictionary/DictionaryService.js148
-rw-r--r--ecomp-sdk-app/src/main/webapp/app/policyApp/service/Dictionary/FWDictionaryService.js339
-rw-r--r--ecomp-sdk-app/src/main/webapp/app/policyApp/service/Dictionary/MSDictionaryService.js96
-rw-r--r--ecomp-sdk-app/src/main/webapp/app/policyApp/service/Dictionary/PolicyScopeService.js182
-rw-r--r--ecomp-sdk-app/src/main/webapp/app/policyApp/service/Dictionary/SafePolicyService.js92
6 files changed, 0 insertions, 989 deletions
diff --git a/ecomp-sdk-app/src/main/webapp/app/policyApp/service/Dictionary/CLDictionaryService.js b/ecomp-sdk-app/src/main/webapp/app/policyApp/service/Dictionary/CLDictionaryService.js
deleted file mode 100644
index c6e24065b..000000000
--- a/ecomp-sdk-app/src/main/webapp/app/policyApp/service/Dictionary/CLDictionaryService.js
+++ /dev/null
@@ -1,132 +0,0 @@
-/*-
- * ============LICENSE_START=======================================================
- * ECOMP Policy Engine
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * 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.
- * ============LICENSE_END=========================================================
- */
-
-/**
- */
-app.factory('CLDictionaryService', function ($http, $q) {
- return {
-
- getPepOptionsDictionaryData : function(url){
- console.log("url on the service js: " + url);
- var url = url+'/ecomp/get_PEPOptionsData';
- return $http.get(url)
- .then(function(response) {
- if (typeof response.data === 'object') {
- return response.data;
- } else {
- return $q.reject(response.data);
- }
-
- }, function(response) {
- // something went wrong
- return $q.reject(response.data);
- });
- },
-
- getVSCLActionDictionaryData: function(url) {
- console.log("url on the service js: " + url);
- var url = url+'/ecomp/get_VSCLActionData';
- return $http.get(url)
- .then(function(response) {
- if (typeof response.data === 'object') {
- return response.data;
- } else {
- return $q.reject(response.data);
- }
-
- }, function(response) {
- // something went wrong
- return $q.reject(response.data);
- });
- },
-
-
- getVnfTypeDictionaryData : function(url){
- console.log("url on the service js: " + url);
- var url = url+'/ecomp/get_VNFTypeData';
- return $http.get(url)
- .then(function(response) {
- if (typeof response.data === 'object') {
- return response.data;
- } else {
- return $q.reject(response.data);
- }
-
- }, function(response) {
- // something went wrong
- return $q.reject(response.data);
- });
- },
-
-
- getServiceDictionaryData : function(url){
- console.log("url on the service js: " + url);
- var url = url+'/ecomp/get_ClosedLoopServicesData';
- return $http.get(url)
- .then(function(response) {
- if (typeof response.data === 'object') {
- return response.data;
- } else {
- return $q.reject(response.data);
- }
-
- }, function(response) {
- // something went wrong
- return $q.reject(response.data);
- });
- },
-
-
- getSiteDictionaryData : function(url){
- console.log("url on the service js: " + url);
- var url = url+'/ecomp/get_ClosedLoopSiteData';
- return $http.get(url)
- .then(function(response) {
- if (typeof response.data === 'object') {
- return response.data;
- } else {
- return $q.reject(response.data);
- }
-
- }, function(response) {
- // something went wrong
- return $q.reject(response.data);
- });
- },
-
-
- getVarbindDictionaryData : function(url){
- console.log("url on the service js: " + url);
- var url = url+'/ecomp/get_VarbindDictionaryData';
- return $http.get(url)
- .then(function(response) {
- if (typeof response.data === 'object') {
- return response.data;
- } else {
- return $q.reject(response.data);
- }
-
- }, function(response) {
- // something went wrong
- return $q.reject(response.data);
- });
- }
- };
-}); \ No newline at end of file
diff --git a/ecomp-sdk-app/src/main/webapp/app/policyApp/service/Dictionary/DictionaryService.js b/ecomp-sdk-app/src/main/webapp/app/policyApp/service/Dictionary/DictionaryService.js
deleted file mode 100644
index ec12b337e..000000000
--- a/ecomp-sdk-app/src/main/webapp/app/policyApp/service/Dictionary/DictionaryService.js
+++ /dev/null
@@ -1,148 +0,0 @@
-/*-
- * ============LICENSE_START=======================================================
- * ECOMP Policy Engine
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * 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.
- * ============LICENSE_END=========================================================
- */
-
-app.factory('DictionaryService', function ($http, $q) {
- return {
-
- getActionPolicyDictionaryData : function(url){
- console.log("url on the service js: " + url);
- var url = url+'/ecomp/get_ActionPolicyDictData';
- return $http.get(url)
- .then(function(response) {
- if (typeof response.data === 'object') {
- return response.data;
- } else {
- return $q.reject(response.data);
- }
-
- }, function(response) {
- // something went wrong
- return $q.reject(response.data);
- });
- },
-
- getAttributeDictionaryData: function(url) {
- console.log("url on the service js: " + url);
- var url = url+'/ecomp/get_AttributeData';
- return $http.get(url)
- .then(function(response) {
- if (typeof response.data === 'object') {
- return response.data;
- } else {
- return $q.reject(response.data);
- }
-
- }, function(response) {
- // something went wrong
- return $q.reject(response.data);
- });
- },
-
-
- getEcompDictionaryData : function(url){
- console.log("url on the service js: " + url);
- var url = url+'/ecomp/get_EcompNameData';
- return $http.get(url)
- .then(function(response) {
- if (typeof response.data === 'object') {
- return response.data;
- } else {
- return $q.reject(response.data);
- }
-
- }, function(response) {
- // something went wrong
- return $q.reject(response.data);
- });
- },
-
-
- getBRMSParamDictionaryData : function(url){
- console.log("url on the service js: " + url);
- var url = url+'/ecomp/get_BRMSParamData';
- return $http.get(url)
- .then(function(response) {
- if (typeof response.data === 'object') {
- return response.data;
- } else {
- return $q.reject(response.data);
- }
-
- }, function(response) {
- // something went wrong
- return $q.reject(response.data);
- });
- },
-
-
- getDecisionSettingsDictionaryData : function(url){
- console.log("url on the service js: " + url);
- var url = url+'/ecomp/get_SettingsDictionaryData';
- return $http.get(url)
- .then(function(response) {
- if (typeof response.data === 'object') {
- return response.data;
- } else {
- return $q.reject(response.data);
- }
-
- }, function(response) {
- // something went wrong
- return $q.reject(response.data);
- });
- },
-
-
- getEnforcerDictionaryData : function(url){
- console.log("url on the service js: " + url);
- var url = url+'/ecomp/get_EnforcerTypeData';
- return $http.get(url)
- .then(function(response) {
- if (typeof response.data === 'object') {
- return response.data;
- } else {
- return $q.reject(response.data);
- }
-
- }, function(response) {
- // something went wrong
- return $q.reject(response.data);
- });
- },
-
-
- getDescriptiveDictionaryData : function(url){
- console.log("url on the service js: " + url);
- var url = url+'/ecomp/get_DescriptiveScope';
- return $http.get(url)
- .then(function(response) {
- if (typeof response.data === 'object') {
- return response.data;
- } else {
- return $q.reject(response.data);
- }
-
- }, function(response) {
- // something went wrong
- return $q.reject(response.data);
- });
- }
- };
-});
diff --git a/ecomp-sdk-app/src/main/webapp/app/policyApp/service/Dictionary/FWDictionaryService.js b/ecomp-sdk-app/src/main/webapp/app/policyApp/service/Dictionary/FWDictionaryService.js
deleted file mode 100644
index de294cd16..000000000
--- a/ecomp-sdk-app/src/main/webapp/app/policyApp/service/Dictionary/FWDictionaryService.js
+++ /dev/null
@@ -1,339 +0,0 @@
-/*-
- * ============LICENSE_START=======================================================
- * ECOMP Policy Engine
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * 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.
- * ============LICENSE_END=========================================================
- */
-
-/**
- */
-app.factory('FWDictionaryService', function ($http, $q) {
- return {
-
- getActionListDictionaryData : function(url){
- console.log("url on the service js: " + url);
- var url = url+'/ecomp/get_ActionListData';
- return $http.get(url)
- .then(function(response) {
- if (typeof response.data === 'object') {
- return response.data;
- } else {
- return $q.reject(response.data);
- }
-
- }, function(response) {
- // something went wrong
- return $q.reject(response.data);
- });
- },
-
- getAddressGroupDictionaryData: function(url) {
- console.log("url on the service js: " + url);
- var url = url+'/ecomp/get_AddressGroupData';
- return $http.get(url)
- .then(function(response) {
- if (typeof response.data === 'object') {
- return response.data;
- } else {
- return $q.reject(response.data);
- }
-
- }, function(response) {
- // something went wrong
- return $q.reject(response.data);
- });
- },
-
- getParentListDictionaryData : function(url){
- console.log("url on the service js: " + url);
- var url = url+'/ecomp/get_FWDictionaryListData';
- return $http.get(url)
- .then(function(response) {
- if (typeof response.data === 'object') {
- return response.data;
- } else {
- return $q.reject(response.data);
- }
-
- }, function(response) {
- // something went wrong
- return $q.reject(response.data);
- });
- },
-
- getPortListDictionaryData : function(url){
- console.log("url on the service js: " + url);
- var url = url+'/ecomp/get_PortListData';
- return $http.get(url)
- .then(function(response) {
- if (typeof response.data === 'object') {
- return response.data;
- } else {
- return $q.reject(response.data);
- }
-
- }, function(response) {
- // something went wrong
- return $q.reject(response.data);
- });
- },
-
-
- getPrefixListDictionaryData : function(url){
- console.log("url on the service js: " + url);
- var url = url+'/ecomp/get_PrefixListData';
- return $http.get(url)
- .then(function(response) {
- if (typeof response.data === 'object') {
- return response.data;
- } else {
- return $q.reject(response.data);
- }
-
- }, function(response) {
- // something went wrong
- return $q.reject(response.data);
- });
- },
-
-
- getProtocolListDictionaryData : function(url){
- console.log("url on the service js: " + url);
- var url = url+'/ecomp/get_ProtocolListData';
- return $http.get(url)
- .then(function(response) {
- if (typeof response.data === 'object') {
- return response.data;
- } else {
- return $q.reject(response.data);
- }
-
- }, function(response) {
- // something went wrong
- return $q.reject(response.data);
- });
- },
-
-
- getSecurityZoneDictionaryData : function(url){
- console.log("url on the service js: " + url);
- var url = url+'/ecomp/get_SecurityZoneData';
- return $http.get(url)
- .then(function(response) {
- if (typeof response.data === 'object') {
- return response.data;
- } else {
- return $q.reject(response.data);
- }
-
- }, function(response) {
- // something went wrong
- return $q.reject(response.data);
- });
- },
-
-
- getServiceGroupDictionaryData : function(url){
- console.log("url on the service js: " + url);
- var url = url+'/ecomp/get_ServiceGroupData';
- return $http.get(url)
- .then(function(response) {
- if (typeof response.data === 'object') {
- return response.data;
- } else {
- return $q.reject(response.data);
- }
-
- }, function(response) {
- // something went wrong
- return $q.reject(response.data);
- });
- },
-
-
- getServiceListDictionaryData : function(url){
- console.log("url on the service js: " + url);
- var url = url+'/ecomp/get_ServiceListData';
- return $http.get(url)
- .then(function(response) {
- if (typeof response.data === 'object') {
- return response.data;
- } else {
- return $q.reject(response.data);
- }
-
- }, function(response) {
- // something went wrong
- return $q.reject(response.data);
- });
- },
-
-
- getTermListDictionaryData : function(url){
- console.log("url on the service js: " + url);
- var url = url+'/ecomp/get_TermListData';
- return $http.get(url)
- .then(function(response) {
- if (typeof response.data === 'object') {
- return response.data;
- } else {
- return $q.reject(response.data);
- }
-
- }, function(response) {
- // something went wrong
- return $q.reject(response.data);
- });
- },
-
-
- getZoneDictionaryData : function(url){
- console.log("url on the service js: " + url);
- var url = url+'/ecomp/get_ZoneData';
- return $http.get(url)
- .then(function(response) {
- if (typeof response.data === 'object') {
- return response.data;
- } else {
- return $q.reject(response.data);
- }
-
- }, function(response) {
- // something went wrong
- return $q.reject(response.data);
- });
- },
-
- getPrefixListDictionaryDataByName : function(url){
- console.log("url on the service js: " + url);
- var url = url+'/ecomp/get_PrefixListDataByName';
- return $http.get(url)
- .then(function(response) {
- if (typeof response.data === 'object') {
- return response.data;
- } else {
- return $q.reject(response.data);
- }
-
- }, function(response) {
- // something went wrong
- return $q.reject(response.data);
- });
- },
-
- getProtocolListDictionaryDataByName : function(url){
- console.log("url on the service js: " + url);
- var url = url+'/ecomp/get_ProtocolListDataByName';
- return $http.get(url)
- .then(function(response) {
- if (typeof response.data === 'object') {
- return response.data;
- } else {
- return $q.reject(response.data);
- }
-
- }, function(response) {
- // something went wrong
- return $q.reject(response.data);
- });
- },
-
- getZoneDictionaryDataByName : function(url){
- console.log("url on the service js: " + url);
- var url = url+'/ecomp/get_ZoneDictionaryDataByName';
- return $http.get(url)
- .then(function(response) {
- if (typeof response.data === 'object') {
- return response.data;
- } else {
- return $q.reject(response.data);
- }
-
- }, function(response) {
- // something went wrong
- return $q.reject(response.data);
- });
- },
-
- getAddressGroupDictionaryDataByName : function(url){
- console.log("url on the service js: " + url);
- var url = url+'/ecomp/get_AddressGroupDictionaryDataByName';
- return $http.get(url)
- .then(function(response) {
- if (typeof response.data === 'object') {
- return response.data;
- } else {
- return $q.reject(response.data);
- }
-
- }, function(response) {
- // something went wrong
- return $q.reject(response.data);
- });
- },
-
- getServiceListDictionaryDataByName : function(url){
- console.log("url on the service js: " + url);
- var url = url+'/ecomp/get_ServiceListDictionaryDataByName';
- return $http.get(url)
- .then(function(response) {
- if (typeof response.data === 'object') {
- return response.data;
- } else {
- return $q.reject(response.data);
- }
-
- }, function(response) {
- // something went wrong
- return $q.reject(response.data);
- });
- },
-
- getServiceGroupDictionaryDataByName : function(url){
- console.log("url on the service js: " + url);
- var url = url+'/ecomp/get_ServiceGroupDictionaryDataByName';
- return $http.get(url)
- .then(function(response) {
- if (typeof response.data === 'object') {
- return response.data;
- } else {
- return $q.reject(response.data);
- }
-
- }, function(response) {
- // something went wrong
- return $q.reject(response.data);
- });
- },
-
- getActionListDictionaryDataByName : function(url){
- console.log("url on the service js: " + url);
- var url = url+'/ecomp/get_ActionListDictionaryDataByName';
- return $http.get(url)
- .then(function(response) {
- if (typeof response.data === 'object') {
- return response.data;
- } else {
- return $q.reject(response.data);
- }
-
- }, function(response) {
- // something went wrong
- return $q.reject(response.data);
- });
- }
- };
-}); \ No newline at end of file
diff --git a/ecomp-sdk-app/src/main/webapp/app/policyApp/service/Dictionary/MSDictionaryService.js b/ecomp-sdk-app/src/main/webapp/app/policyApp/service/Dictionary/MSDictionaryService.js
deleted file mode 100644
index 1ca8d2696..000000000
--- a/ecomp-sdk-app/src/main/webapp/app/policyApp/service/Dictionary/MSDictionaryService.js
+++ /dev/null
@@ -1,96 +0,0 @@
-/*-
- * ============LICENSE_START=======================================================
- * ECOMP Policy Engine
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * 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.
- * ============LICENSE_END=========================================================
- */
-
-/**
- */
-app.factory('MSDictionaryService', function ($http, $q) {
- return {
-
- getDCAEUUIDDictionaryData : function(url){
- console.log("url on the service js: " + url);
- var url = url+'/ecomp/get_DCAEUUIDData';
- return $http.get(url)
- .then(function(response) {
- if (typeof response.data === 'object') {
- return response.data;
- } else {
- return $q.reject(response.data);
- }
-
- }, function(response) {
- // something went wrong
- return $q.reject(response.data);
- });
- },
-
- getMSConfigNameDictionaryData: function(url) {
- console.log("url on the service js: " + url);
- var url = url+'/ecomp/get_MicroServiceConfigNameData';
- return $http.get(url)
- .then(function(response) {
- if (typeof response.data === 'object') {
- return response.data;
- } else {
- return $q.reject(response.data);
- }
-
- }, function(response) {
- // something went wrong
- return $q.reject(response.data);
- });
- },
-
-
- getMSLocationDictionaryData : function(url){
- console.log("url on the service js: " + url);
- var url = url+'/ecomp/get_MicroServiceLocationData';
- return $http.get(url)
- .then(function(response) {
- if (typeof response.data === 'object') {
- return response.data;
- } else {
- return $q.reject(response.data);
- }
-
- }, function(response) {
- // something went wrong
- return $q.reject(response.data);
- });
- },
-
-
- getMSModelDictionaryData : function(url){
- console.log("url on the service js: " + url);
- var url = url+'/ecomp/get_MicroServiceModelsData';
- return $http.get(url)
- .then(function(response) {
- if (typeof response.data === 'object') {
- return response.data;
- } else {
- return $q.reject(response.data);
- }
-
- }, function(response) {
- // something went wrong
- return $q.reject(response.data);
- });
- }
- };
-}); \ No newline at end of file
diff --git a/ecomp-sdk-app/src/main/webapp/app/policyApp/service/Dictionary/PolicyScopeService.js b/ecomp-sdk-app/src/main/webapp/app/policyApp/service/Dictionary/PolicyScopeService.js
deleted file mode 100644
index ef07cd237..000000000
--- a/ecomp-sdk-app/src/main/webapp/app/policyApp/service/Dictionary/PolicyScopeService.js
+++ /dev/null
@@ -1,182 +0,0 @@
-/*-
- * ============LICENSE_START=======================================================
- * ECOMP Policy Engine
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * 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.
- * ============LICENSE_END=========================================================
- */
-
-/**
- */
-app.factory('PolicyScopeService', function ($http, $q) {
- return {
-
- getPSClosedLoopDictionaryData : function(url){
- console.log("url on the service js: " + url);
- var url = url+'/ecomp/get_PSClosedLoopData';
- return $http.get(url)
- .then(function(response) {
- if (typeof response.data === 'object') {
- return response.data;
- } else {
- return $q.reject(response.data);
- }
-
- }, function(response) {
- // something went wrong
- return $q.reject(response.data);
- });
- },
-
- getPSClosedLoopDictionaryDataByName : function(url){
- console.log("url on the service js: " + url);
- var url = url+'/ecomp/get_PSClosedLoopDataByName';
- return $http.get(url)
- .then(function(response) {
- if (typeof response.data === 'object') {
- return response.data;
- } else {
- return $q.reject(response.data);
- }
-
- }, function(response) {
- // something went wrong
- return $q.reject(response.data);
- });
- },
-
- getPSServiceDictionaryData: function(url) {
- console.log("url on the service js: " + url);
- var url = url+'/ecomp/get_PSServiceData';
- return $http.get(url)
- .then(function(response) {
- if (typeof response.data === 'object') {
- return response.data;
- } else {
- return $q.reject(response.data);
- }
-
- }, function(response) {
- // something went wrong
- return $q.reject(response.data);
- });
- },
-
- getPSServiceDictionaryDataByName: function(url) {
- console.log("url on the service js: " + url);
- var url = url+'/ecomp/get_PSServiceDataByName';
- return $http.get(url)
- .then(function(response) {
- if (typeof response.data === 'object') {
- return response.data;
- } else {
- return $q.reject(response.data);
- }
-
- }, function(response) {
- // something went wrong
- return $q.reject(response.data);
- });
- },
-
-
- getPSTypeDictionaryData : function(url){
- console.log("url on the service js: " + url);
- var url = url+'/ecomp/get_PSTypeData';
- return $http.get(url)
- .then(function(response) {
- if (typeof response.data === 'object') {
- return response.data;
- } else {
- return $q.reject(response.data);
- }
-
- }, function(response) {
- // something went wrong
- return $q.reject(response.data);
- });
- },
-
- getPSTypeDictionaryDataByName : function(url){
- console.log("url on the service js: " + url);
- var url = url+'/ecomp/get_PSTypeDataByName';
- return $http.get(url)
- .then(function(response) {
- if (typeof response.data === 'object') {
- return response.data;
- } else {
- return $q.reject(response.data);
- }
-
- }, function(response) {
- // something went wrong
- return $q.reject(response.data);
- });
- },
-
-
- getPSResourceDictionaryData : function(url){
- console.log("url on the service js: " + url);
- var url = url+'/ecomp/get_PSResourceData';
- return $http.get(url)
- .then(function(response) {
- if (typeof response.data === 'object') {
- return response.data;
- } else {
- return $q.reject(response.data);
- }
-
- }, function(response) {
- // something went wrong
- return $q.reject(response.data);
- });
- },
-
- getPSResourceDictionaryDataByName : function(url){
- console.log("url on the service js: " + url);
- var url = url+'/ecomp/get_PSResourceDataByName';
- return $http.get(url)
- .then(function(response) {
- if (typeof response.data === 'object') {
- return response.data;
- } else {
- return $q.reject(response.data);
- }
-
- }, function(response) {
- // something went wrong
- return $q.reject(response.data);
- });
- },
-
-
- getPSGroupPolicyScopeDictionaryData : function(url){
- console.log("url on the service js: " + url);
- var url = url+'/ecomp/get_GroupPolicyScopeData';
- return $http.get(url)
- .then(function(response) {
- if (typeof response.data === 'object') {
- return response.data;
- } else {
- return $q.reject(response.data);
- }
-
- }, function(response) {
- // something went wrong
- return $q.reject(response.data);
- });
- }
- };
-}); \ No newline at end of file
diff --git a/ecomp-sdk-app/src/main/webapp/app/policyApp/service/Dictionary/SafePolicyService.js b/ecomp-sdk-app/src/main/webapp/app/policyApp/service/Dictionary/SafePolicyService.js
deleted file mode 100644
index f2056a8c0..000000000
--- a/ecomp-sdk-app/src/main/webapp/app/policyApp/service/Dictionary/SafePolicyService.js
+++ /dev/null
@@ -1,92 +0,0 @@
-/*-
- * ============LICENSE_START=======================================================
- * ECOMP Policy Engine
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * 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.
- * ============LICENSE_END=========================================================
- */
-
-/**
- */
-app.factory('SafePolicyService', function ($http, $q) {
- return {
-
- getRiskTypeDictionaryData : function(url){
- console.log("url on the service js: " + url);
- var url = url+'/ecomp/get_RiskTypeData';
- return $http.get(url)
- .then(function(response) {
- if (typeof response.data === 'object') {
- return response.data;
- } else {
- return $q.reject(response.data);
- }
-
- }, function(response) {
- // something went wrong
- return $q.reject(response.data);
- });
- },
- getRiskTypeDictionaryDataByName : function(url){
- console.log("url on the service js: " + url);
- var url = url+'/ecomp/get_RiskTypeDataByName';
- return $http.get(url)
- .then(function(response) {
- if (typeof response.data === 'object') {
- return response.data;
- } else {
- return $q.reject(response.data);
- }
-
- }, function(response) {
- // something went wrong
- return $q.reject(response.data);
- });
- },
-
- getSafePolicyWarningDictionaryData : function(url){
- console.log("url on the service js: " + url);
- var url = url+'/ecomp/get_SafePolicyWarningData';
- return $http.get(url)
- .then(function(response) {
- if (typeof response.data === 'object') {
- return response.data;
- } else {
- return $q.reject(response.data);
- }
-
- }, function(response) {
- // something went wrong
- return $q.reject(response.data);
- });
- },
- getSafePolicyWarningDictionaryDataByName : function(url){
- console.log("url on the service js: " + url);
- var url = url+'/ecomp/get_SafePolicyWarningDataByName';
- return $http.get(url)
- .then(function(response) {
- if (typeof response.data === 'object') {
- return response.data;
- } else {
- return $q.reject(response.data);
- }
-
- }, function(response) {
- // something went wrong
- return $q.reject(response.data);
- });
- }
- };
-}); \ No newline at end of file