public GroupPage fetchGroups()

in service/src/main/java/org/apache/fineract/cn/group/internal/service/GroupService.java [85:99]


  public GroupPage fetchGroups(final String employee, final Pageable pageable) {
    final Page<GroupEntity> page;
    if (employee != null) {
      page = this.groupRepository.findByAssignedEmployee(employee, pageable);
    } else {
      page = this.groupRepository.findAll(pageable);
    }

    final GroupPage groupPage = new GroupPage();
    groupPage.setGroups(page.map(GroupMapper::map).getContent());
    groupPage.setTotalPages(page.getTotalPages());
    groupPage.setTotalElements(page.getTotalElements());

    return groupPage;
  }