public class GroupHelper extends Object implements Component
Group
Constructor and Description |
---|
GroupHelper() |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
group2JSON(Group group,
boolean users)
Get group as JSON object
|
List<Map<String,Object>> |
groups2JSON(List<Group> groups,
boolean users)
Get groups as JSON object
|
public GroupHelper()
public Map<String,Object> group2JSON(Group group, boolean users)
group
- the groupusers
- true to get users' group