GUAC-997 Added active user count to REST API and UI.

This commit is contained in:
James Muehlner
2015-01-27 22:20:03 -08:00
parent 4573677880
commit f7e1f3a303
9 changed files with 86 additions and 2 deletions

View File

@@ -100,6 +100,14 @@ angular.module('groupList').factory('GroupListItem', ['ConnectionGroup', functio
* @type Boolean
*/
this.isExpanded = template.isExpanded;
/**
* The number of currently active users for this connection. This field
* has no meaning for a connection group, and may be null or undefined.
*
* @type Number
*/
this.activeUsers = template.activeUsers;
/**
* The connection or connection group whose data is exposed within
@@ -134,6 +142,9 @@ angular.module('groupList').factory('GroupListItem', ['ConnectionGroup', functio
// Type information
isConnection : true,
isConnectionGroup : false,
// Count of currently active users
activeUsers : connection.activeUsers,
// Wrapped item
wrappedItem : connection