couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject [09/50] jquery-couch commit: updated refs/heads/import-master to 66dbcbf
Date Tue, 01 Apr 2014 08:52:14 GMT
Database-level security.

This patch builds on the DB-admins feature to store lists of database admin and reader names
and roles, as well as a security object which can be used for configuration in validation
functions.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@905436 13f79535-47bb-0310-9956-ffa450edef68


Project: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/commit/fc22cb2c
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/tree/fc22cb2c
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/diff/fc22cb2c

Branch: refs/heads/import-master
Commit: fc22cb2ce765277e000af24c8f86cbed9ac063f3
Parents: 53401db
Author: John Christopher Anderson <jchris@apache.org>
Authored: Mon Feb 1 22:51:15 2010 +0000
Committer: Alexander Shorin <kxepal@gmail.com>
Committed: Mon Feb 1 22:51:15 2010 +0000

----------------------------------------------------------------------
 jquery.couch.js | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/blob/fc22cb2c/jquery.couch.js
----------------------------------------------------------------------
diff --git a/jquery.couch.js b/jquery.couch.js
index 10c1e4b..39bef76 100644
--- a/jquery.couch.js
+++ b/jquery.couch.js
@@ -371,6 +371,25 @@
             },
             options, "An error occurred accessing the view"
           );
+        },
+        getDbProperty: function(propName, options, ajaxOptions) {
+          ajax({url: this.uri + propName + encodeOptions(options)},
+            options,
+            "The property could not be retrieved",
+            ajaxOptions
+          );
+        },
+
+        setDbProperty: function(propName, propValue, options, ajaxOptions) {
+          ajax({
+            type: "PUT",
+            url: this.uri + propName + encodeOptions(options),
+            data : JSON.stringify(propValue)
+          },
+            options,
+            "The property could not be updated",
+            ajaxOptions
+          );
         }
       };
     },


Mime
View raw message