|
|
|
@ -288,12 +288,17 @@ public class ComponentCollector implements XMLable {
|
|
|
|
|
|
|
|
|
|
private JSONArray getGroupingDetail() { |
|
|
|
|
JSONArray ja = JSONFactory.createJSON(JSON.ARRAY); |
|
|
|
|
Group[] groups = DefaultShareGroupManager.getInstance().getAllGroup(); |
|
|
|
|
for(Group group : groups) { |
|
|
|
|
JSONObject jo = JSONFactory.createJSON(JSON.OBJECT); |
|
|
|
|
jo.put(GROUP_NAME, group.getGroupName()); |
|
|
|
|
jo.put(CONTAIN_AMOUNT, group.getAllBindInfoList().length); |
|
|
|
|
ja.add(jo); |
|
|
|
|
try { |
|
|
|
|
DefaultShareGroupManager.getInstance().refresh(); |
|
|
|
|
Group[] groups = DefaultShareGroupManager.getInstance().getAllGroup(); |
|
|
|
|
for(Group group : groups) { |
|
|
|
|
JSONObject jo = JSONFactory.createJSON(JSON.OBJECT); |
|
|
|
|
jo.put(GROUP_NAME, group.getGroupName()); |
|
|
|
|
jo.put(CONTAIN_AMOUNT, group.getAllBindInfoList().length); |
|
|
|
|
ja.add(jo); |
|
|
|
|
} |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
e.printStackTrace(); |
|
|
|
|
} |
|
|
|
|
return ja; |
|
|
|
|
} |
|
|
|
|