diff options
Diffstat (limited to 'usecaseui-common/src/main/webapp/app/fusionapp/drools/services')
-rw-r--r-- | usecaseui-common/src/main/webapp/app/fusionapp/drools/services/droolsService.js | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/usecaseui-common/src/main/webapp/app/fusionapp/drools/services/droolsService.js b/usecaseui-common/src/main/webapp/app/fusionapp/drools/services/droolsService.js deleted file mode 100644 index 3b4ba3eb..00000000 --- a/usecaseui-common/src/main/webapp/app/fusionapp/drools/services/droolsService.js +++ /dev/null @@ -1,57 +0,0 @@ -app.factory('droolsService', function ($http, $q) { - return { - getDrools: function() { - return $http.get('getDrools') - .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); - }); - }, - - getDroolDetails: function(selectedFile) { - return $http.get('getDroolDetails'+'?selectedFile=' + selectedFile ) - .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); - }); - }, - - getRole: function(roleId) { - - return $http.get('get_role?role_id=' + roleId) - .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); - }); - }, - - getSelectedFile: function() { - return this.selectedFile; - }, - - setSelectedFile: function(_selectedFile) { - this.selectedFile = _selectedFile; - } - }; -});
\ No newline at end of file |