aboutsummaryrefslogtreecommitdiffstats
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, 989 insertions, 0 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
new file mode 100644
index 000000000..c6e24065b
--- /dev/null
+++ b/ecomp-sdk-app/src/main/webapp/app/policyApp/service/Dictionary/CLDictionaryService.js
@@ -0,0 +1,132 @@
+/*-
+ * ============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
new file mode 100644
index 000000000..ec12b337e
--- /dev/null
+++ b/ecomp-sdk-app/src/main/webapp/app/policyApp/service/Dictionary/DictionaryService.js
@@ -0,0 +1,148 @@
+/*-
+ * ============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
new file mode 100644
index 000000000..de294cd16
--- /dev/null
+++ b/ecomp-sdk-app/src/main/webapp/app/policyApp/service/Dictionary/FWDictionaryService.js
@@ -0,0 +1,339 @@
+/*-
+ * ============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
new file mode 100644
index 000000000..1ca8d2696
--- /dev/null
+++ b/ecomp-sdk-app/src/main/webapp/app/policyApp/service/Dictionary/MSDictionaryService.js
@@ -0,0 +1,96 @@
+/*-
+ * ============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
new file mode 100644
index 000000000..ef07cd237
--- /dev/null
+++ b/ecomp-sdk-app/src/main/webapp/app/policyApp/service/Dictionary/PolicyScopeService.js
@@ -0,0 +1,182 @@
+/*-
+ * ============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
new file mode 100644
index 000000000..f2056a8c0
--- /dev/null
+++ b/ecomp-sdk-app/src/main/webapp/app/policyApp/service/Dictionary/SafePolicyService.js
@@ -0,0 +1,92 @@
+/*-
+ * ============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