Sha256: 56153c3703560cb7327cad9a9516152923d42be81dcff4a1533237892ff02488
Contents?: true
Size: 945 Bytes
Versions: 1
Compression:
Stored size: 945 Bytes
Contents
if (typeof $ === "undefined") { throw new Error("jQuery is required") } Record.Group = function(args) { var superArguments = Array.prototype.slice.call(arguments); superArguments.unshift("group"); Record.Generic.apply(this, superArguments); } Record.Group.prototype = Object.create(Record.Generic.prototype); Record.Group.prototype.constructor = Record.Group; Record.Group.prototype.fetch = function(callback) { var self = this; var id = this.id; async.parallel([ this.attributes.bind(this), this.ownedResources.bind(this), function(cb) { $.ajax({ url: "/api/authz/" + conjurConfiguration.account + "/roles/group/" + id + "?members", success: function(result) { cb(null, result); }, error: cb }); } ], function(err, results) { if ( err ) return errback(err); callback({ group: results[0], owned: results[1], members: results[2] }); }); }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
conjur-asset-ui-api-1.2.0 | public/js/models/groupRecord.js |