aboutsummaryrefslogtreecommitdiffstats
path: root/ecomp-sdk-app/src/main/webapp/app/policyApp/service
diff options
context:
space:
mode:
Diffstat (limited to 'ecomp-sdk-app/src/main/webapp/app/policyApp/service')
-rw-r--r--ecomp-sdk-app/src/main/webapp/app/policyApp/service/AdminTabService.js56
-rw-r--r--ecomp-sdk-app/src/main/webapp/app/policyApp/service/AutoPushService.js41
-rw-r--r--ecomp-sdk-app/src/main/webapp/app/policyApp/service/ClosedLoopPMService.js42
-rw-r--r--ecomp-sdk-app/src/main/webapp/app/policyApp/service/DashboardService.js99
-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
-rw-r--r--ecomp-sdk-app/src/main/webapp/app/policyApp/service/ExportPolicyService.js41
-rw-r--r--ecomp-sdk-app/src/main/webapp/app/policyApp/service/PDPService.js53
-rw-r--r--ecomp-sdk-app/src/main/webapp/app/policyApp/service/PapUrlService.js39
-rw-r--r--ecomp-sdk-app/src/main/webapp/app/policyApp/service/RolesTabService.js56
14 files changed, 1416 insertions, 0 deletions
diff --git a/ecomp-sdk-app/src/main/webapp/app/policyApp/service/AdminTabService.js b/ecomp-sdk-app/src/main/webapp/app/policyApp/service/AdminTabService.js
new file mode 100644
index 000000000..d9e22edb3
--- /dev/null
+++ b/ecomp-sdk-app/src/main/webapp/app/policyApp/service/AdminTabService.js
@@ -0,0 +1,56 @@
+/*-
+ * ============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=========================================================
+ */
+
+/**
+ *
+ */
+angular.module("abs").factory('AdminTabService', function ($http, $q) {
+ return {
+ getData: function() {
+ return $http.get('get_LockDownData')
+ .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);
+ });
+ },
+
+ getRolesData: function() {
+ return $http.get('get_UserRolesData')
+ .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/AutoPushService.js b/ecomp-sdk-app/src/main/webapp/app/policyApp/service/AutoPushService.js
new file mode 100644
index 000000000..e79506f75
--- /dev/null
+++ b/ecomp-sdk-app/src/main/webapp/app/policyApp/service/AutoPushService.js
@@ -0,0 +1,41 @@
+/*-
+ * ============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('AutoPushService', function ($http, $q) {
+ return {
+ getAutoPushPoliciesData: function() {
+ return $http.get('get_AutoPushPoliciesContainerData')
+ .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/ClosedLoopPMService.js b/ecomp-sdk-app/src/main/webapp/app/policyApp/service/ClosedLoopPMService.js
new file mode 100644
index 000000000..06a28fc41
--- /dev/null
+++ b/ecomp-sdk-app/src/main/webapp/app/policyApp/service/ClosedLoopPMService.js
@@ -0,0 +1,42 @@
+/*-
+ * ============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=========================================================
+ */
+
+/**
+ *
+ */
+angular.module("abs").factory('ClosedLoopPMService', function($http, $q){
+ return{
+ getPMJSONBodyData : function(){
+ return $http.get('app/policyApp/JSONDataFiles/JSONConfig.json')
+ .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/DashboardService.js b/ecomp-sdk-app/src/main/webapp/app/policyApp/service/DashboardService.js
new file mode 100644
index 000000000..cad4abcdb
--- /dev/null
+++ b/ecomp-sdk-app/src/main/webapp/app/policyApp/service/DashboardService.js
@@ -0,0 +1,99 @@
+/*-
+ * ============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('DashboardService', function ($http, $q) {
+ return {
+ getData: function() {
+ return $http.get('get_DashboardLoggingData')
+ .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);
+ });
+ },
+
+ getSystemAlertData: function() {
+ return $http.get('get_DashboardSystemAlertData')
+ .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);
+ });
+ },
+
+ getPAPStatusData: function() {
+ return $http.get('get_DashboardPAPStatusData')
+ .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);
+ });
+ },
+
+ getPDPStatusData: function() {
+ return $http.get('get_DashboardPDPStatusData')
+ .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);
+ });
+ },
+
+ getPolicyActivityData: function() {
+ return $http.get('get_DashboardPolicyActivityData')
+ .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/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
diff --git a/ecomp-sdk-app/src/main/webapp/app/policyApp/service/ExportPolicyService.js b/ecomp-sdk-app/src/main/webapp/app/policyApp/service/ExportPolicyService.js
new file mode 100644
index 000000000..71fa512d2
--- /dev/null
+++ b/ecomp-sdk-app/src/main/webapp/app/policyApp/service/ExportPolicyService.js
@@ -0,0 +1,41 @@
+/*-
+ * ============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=========================================================
+ */
+
+/**
+ */
+var app = angular.module('abs');
+app.factory('ExportPolicyService', function ($http, $q) {
+ return {
+ getAutoPushPoliciesData: function() {
+ return $http.get('get_AutoPushPoliciesContainerData')
+ .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/PDPService.js b/ecomp-sdk-app/src/main/webapp/app/policyApp/service/PDPService.js
new file mode 100644
index 000000000..7650e0fe3
--- /dev/null
+++ b/ecomp-sdk-app/src/main/webapp/app/policyApp/service/PDPService.js
@@ -0,0 +1,53 @@
+/*-
+ * ============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('PDPService', function ($http, $q) {
+ return {
+ getPDPGroupEntityData: function() {
+ return $http.get('get_PDPGroupData')
+ .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);
+ });
+ },
+
+ getPDPData: function() {
+ return $http.get('get_PDPGroupContainerData')
+ .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/PapUrlService.js b/ecomp-sdk-app/src/main/webapp/app/policyApp/service/PapUrlService.js
new file mode 100644
index 000000000..ca250a9f7
--- /dev/null
+++ b/ecomp-sdk-app/src/main/webapp/app/policyApp/service/PapUrlService.js
@@ -0,0 +1,39 @@
+/*-
+ * ============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=========================================================
+ */
+
+angular.module("abs").factory('PapUrlService', function($http, $q){
+ return{
+ getPapUrl : function(){
+ return $http.get('app/policyApp/Properties/config.json')
+ .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/RolesTabService.js b/ecomp-sdk-app/src/main/webapp/app/policyApp/service/RolesTabService.js
new file mode 100644
index 000000000..2462ebd98
--- /dev/null
+++ b/ecomp-sdk-app/src/main/webapp/app/policyApp/service/RolesTabService.js
@@ -0,0 +1,56 @@
+/*-
+ * ============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=========================================================
+ */
+
+/**
+ *
+ */
+angular.module("abs").factory('RolesTabService', function ($http, $q) {
+ return {
+ getRolesData: function() {
+ return $http.get('get_RolesData')
+ .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);
+ });
+ },
+
+ getPolicyScopesData: function() {
+ return $http.get('get_PolicyRolesScopeData')
+ .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