Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,18 @@ default ListAccess<User> findUsersByQuery(Query query, List<String> groupIds, Us
throw new UnsupportedOperationException();
}

/**
* This method return the list of the users in a given
* group.
*
* @param groupId id of the group.
* @return return a list of identifiers of users in the group
* @throws Exception any exception
*/
default List<String> findUserNamesByGroupId(String groupId) {
throw new UnsupportedOperationException();
}

/**
* This method should search and return the list of the users in a given
* group.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,11 @@ public ListAccess<User> findUsersByQuery(Query query, UserStatus status) throws
{
return findAllUsers(status);
}

@Override
public List<String> findUserNamesByGroupId(String groupId) {
return Arrays.stream(new String[] {"john", "test"}).toList();
}
}

public static class GroupHandlerImpl implements GroupHandler
Expand Down
Loading