class RepositoryUserService implements UserService {

    @Override
    public List<User> getStaffMembersOfUser(@NonNull User user) {
        return getHierarchyForUser(user).getDirectStaff().stream()
                .map(HierarchyTreeNode::getUser)
                .collect(Collectors.toList());
    }

    public  RepositoryUserService(UserRepository userRepo,
                                 UserDataRepository dataRepo,
                                 LdapAdapter ldapAdapter,
                                 HierarchyTreeNodeRepository hierarchyTreeNodeRepo,
                                 HibernateSearchService hibernateSearchService);

}