GUAC-800: Update REST services to allow read/write of attributes on users, connections, and groups.

This commit is contained in:
Michael Jumper
2015-05-24 15:56:49 -07:00
parent 7d13731ffa
commit c5364f4bff
12 changed files with 173 additions and 4 deletions

View File

@@ -79,7 +79,16 @@ angular.module('rest').factory('Connection', [function defineConnection() {
* @type Object.<String, String>
*/
this.parameters = template.parameters;
/**
* Arbitrary name/value pairs which further describe this connection.
* The semantics and validity of these attributes are dictated by the
* extension which defines them.
*
* @type Object.<String, String>
*/
this.attributes = {};
/**
* The count of currently active connections using this connection.
* This field will be returned from the REST API during a get

View File

@@ -91,6 +91,15 @@ angular.module('rest').factory('ConnectionGroup', [function defineConnectionGrou
*/
this.childConnectionGroups = template.childConnectionGroups;
/**
* Arbitrary name/value pairs which further describe this connection
* group. The semantics and validity of these attributes are dictated
* by the extension which defines them.
*
* @type Object.<String, String>
*/
this.attributes = {};
/**
* The count of currently active connections using this connection
* group. This field will be returned from the REST API during a get

View File

@@ -56,6 +56,15 @@ angular.module('rest').factory('User', [function defineUser() {
*/
this.password = template.password;
/**
* Arbitrary name/value pairs which further describe this user. The
* semantics and validity of these attributes are dictated by the
* extension which defines them.
*
* @type Object.<String, String>
*/
this.attributes = {};
};
return User;