Class GroupHelper

    • Field Detail

      • ROLE

        public static final String ROLE
        The Avalon role
    • Method Detail

      • group2JSON

        public Map<String,​Objectgroup2JSON​(Group group,
                                                   boolean users)
        Get group as JSON object
        Parameters:
        group - the group
        users - true to get users' group
        Returns:
        the group as JSON object
      • groups2JSON

        public List<Map<String,​Object>> groups2JSON​(List<Group> groups,
                                                          boolean users)
        Get groups as JSON object
        Parameters:
        groups - the groups
        users - true to get users' group
        Returns:
        the group as JSON object