Interface GroupLookupProvider

    • Method Detail

      • getGroupById

        GroupModel getGroupById​(RealmModel realm,
                                String id)
        Returns a group from the given realm with the corresponding id
        Parameters:
        realm - Realm.
        id - Id.
        Returns:
        GroupModel with the corresponding id.
      • searchForGroupByName

        @Deprecated
        default List<GroupModel> searchForGroupByName​(RealmModel realm,
                                                      String search,
                                                      Integer firstResult,
                                                      Integer maxResults)
        Deprecated.
        Returns groups with the given string in name for the given realm.
        Parameters:
        realm - Realm.
        search - Case sensitive searched string.
        firstResult - First result to return. Ignored if null.
        maxResults - Maximum number of results to return. Ignored if null.
        Returns:
        List of groups with the given string in name.
      • searchForGroupByNameStream

        Stream<GroupModel> searchForGroupByNameStream​(RealmModel realm,
                                                      String search,
                                                      Integer firstResult,
                                                      Integer maxResults)
        Returns the group hierarchy with the given string in name for the given realm. For a matching group node the parent group is fetched by id (with all children) and added to the result stream. This is done until the group node does not have a parent (root group)
        Parameters:
        realm - Realm.
        search - Case sensitive searched string.
        firstResult - First result to return. Ignored if negative or null.
        maxResults - Maximum number of results to return. Ignored if negative or null.
        Returns:
        Stream of root groups that have the given string in their name themself or a group in their child-collection has. The returned hierarchy contains siblings that do not necessarily have a matching name. Never returns null.