Merge pull request #59 from glyptodon/root-consistency

GUAC-964: Ensure connections and connection groups only refer to the root group as "ROOT"
This commit is contained in:
James Muehlner
2015-01-05 08:53:38 -08:00
3 changed files with 16 additions and 2 deletions

View File

@@ -108,7 +108,7 @@ public class MySQLConnection extends AbstractConnection {
if (parentID != null)
this.setParentIdentifier(String.valueOf(parentID));
else
this.setParentIdentifier(null);
this.setParentIdentifier(MySQLConstants.CONNECTION_GROUP_ROOT_IDENTIFIER);
}

View File

@@ -129,7 +129,7 @@ public class MySQLConnectionGroup extends AbstractConnectionGroup {
if (parentID != null)
this.setParentIdentifier(String.valueOf(parentID));
else
this.setParentIdentifier(null);
this.setParentIdentifier(MySQLConstants.CONNECTION_GROUP_ROOT_IDENTIFIER);
}

View File

@@ -49,6 +49,20 @@ angular.module('manage').controller('manageController', ['$scope', '$injector',
}
};
/**
* All visible users.
*
* @type User[]
*/
$scope.users = null;
/**
* The root connection group of the connection group hierarchy.
*
* @type ConnectionGroup
*/
$scope.rootGroup = null;
/**
* Whether the current user can manage users. If the current permissions
* have not yet been loaded, this will be null.