Fix sorting of included groups

Change-Id: I41be5f33c94d3248e6a2c922ebb412f643277050
This commit is contained in:
Shawn Pearce
2013-01-10 20:54:17 -08:00
parent edfc960938
commit 3d217418d4
3 changed files with 29 additions and 25 deletions

View File

@@ -41,10 +41,14 @@ public class GroupInfo {
*
* @param a the data store record holding the specific group details.
*/
public GroupInfo(final AccountGroup a) {
public GroupInfo(GroupDescription.Basic a) {
uuid = a.getGroupUUID();
name = a.getName();
description = a.getDescription();
if (a instanceof GroupDescription.Internal) {
AccountGroup group = ((GroupDescription.Internal) a).getAccountGroup();
description = group.getDescription();
}
}
/** @return the unique local id of the group */