diff options
author | ITSERVICES\rb7147 <rb7147@att.com> | 2017-04-25 11:46:00 -0400 |
---|---|---|
committer | ITSERVICES\rb7147 <rb7147@att.com> | 2017-05-03 09:58:17 -0400 |
commit | e0addf5b588a1244f9679becd90999dfcb4c3a94 (patch) | |
tree | 1212772d6366730266ff0e093c874b07aa716c29 /ecomp-sdk-app/src/main/webapp/app/policyApp/service | |
parent | 39fb0f30472777e4b60d6a7ac8aa4eb9773961ff (diff) |
Policy 1707 commit to LF
Change-Id: Ibe6f01d92f9a434c040abb05d5386e89d675ae65
Signed-off-by: ITSERVICES\rb7147 <rb7147@att.com>
Diffstat (limited to 'ecomp-sdk-app/src/main/webapp/app/policyApp/service')
14 files changed, 0 insertions, 1416 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 deleted file mode 100644 index d9e22edb3..000000000 --- a/ecomp-sdk-app/src/main/webapp/app/policyApp/service/AdminTabService.js +++ /dev/null @@ -1,56 +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========================================================= - */ - -/** - * - */ -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 deleted file mode 100644 index e79506f75..000000000 --- a/ecomp-sdk-app/src/main/webapp/app/policyApp/service/AutoPushService.js +++ /dev/null @@ -1,41 +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('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 deleted file mode 100644 index 06a28fc41..000000000 --- a/ecomp-sdk-app/src/main/webapp/app/policyApp/service/ClosedLoopPMService.js +++ /dev/null @@ -1,42 +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========================================================= - */ - -/** - * - */ -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 deleted file mode 100644 index cad4abcdb..000000000 --- a/ecomp-sdk-app/src/main/webapp/app/policyApp/service/DashboardService.js +++ /dev/null @@ -1,99 +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('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 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 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 deleted file mode 100644 index 71fa512d2..000000000 --- a/ecomp-sdk-app/src/main/webapp/app/policyApp/service/ExportPolicyService.js +++ /dev/null @@ -1,41 +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========================================================= - */ - -/** - */ -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 deleted file mode 100644 index 7650e0fe3..000000000 --- a/ecomp-sdk-app/src/main/webapp/app/policyApp/service/PDPService.js +++ /dev/null @@ -1,53 +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('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 deleted file mode 100644 index ca250a9f7..000000000 --- a/ecomp-sdk-app/src/main/webapp/app/policyApp/service/PapUrlService.js +++ /dev/null @@ -1,39 +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========================================================= - */ - -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 deleted file mode 100644 index 2462ebd98..000000000 --- a/ecomp-sdk-app/src/main/webapp/app/policyApp/service/RolesTabService.js +++ /dev/null @@ -1,56 +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========================================================= - */ - -/** - * - */ -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 |