Rework UI
[clamp.git] / src / main / resources / META-INF / resources / designer / scripts / importSchemaService.js
index 8c23f1f..c355d75 100644 (file)
@@ -46,4 +46,16 @@ app.service('svnservice', ['$http', '$q', function ($http, $q) {
         
         return def.promise;
     };
+    
+       this.saveOpPolicyProperties = function(form) {
+               var modelName = getLoopName();
+                var def = $q.defer();
+                var svcUrl = "/restservices/clds/v2/loop/updateOperationalPolicies/" + modelName;
+                $http.post(svcUrl, form).success(function(data) {
+                        def.resolve(data);
+                }).error(function(data) {
+                        def.reject("Save Operational Policy not successful");
+                });
+              return def.promise;
+       };
 }]);
\ No newline at end of file