aboutsummaryrefslogtreecommitdiffstats
path: root/old/moon_gui/static/app/services/gui/security.pipeline.service.js
diff options
context:
space:
mode:
Diffstat (limited to 'old/moon_gui/static/app/services/gui/security.pipeline.service.js')
-rwxr-xr-xold/moon_gui/static/app/services/gui/security.pipeline.service.js29
1 files changed, 29 insertions, 0 deletions
diff --git a/old/moon_gui/static/app/services/gui/security.pipeline.service.js b/old/moon_gui/static/app/services/gui/security.pipeline.service.js
new file mode 100755
index 00000000..3831e487
--- /dev/null
+++ b/old/moon_gui/static/app/services/gui/security.pipeline.service.js
@@ -0,0 +1,29 @@
+(function() {
+
+ 'use strict';
+
+ angular
+ .module('moon')
+ .factory('securityPipelineService', securityPipelineService);
+
+ securityPipelineService.$inject = ['SECURITY_PIPELINE_CST','policyService'];
+
+ function securityPipelineService(SECURITY_PIPELINE_CST, policyService) {
+ var service = {};
+
+ service.findAll = findAll;
+
+ return service;
+
+ function findAll(type){
+ switch(type){
+ case SECURITY_PIPELINE_CST.TYPE.POLICY :
+ return policyService.findAll();
+ default :
+ return policyService.findAll();
+ }
+
+ }
+ }
+
+})();