Class UserAndGroupSearchManager

    • Field Detail

      • ROLE

        public static final String ROLE
        The avalon role
    • Method Detail

      • searchUsersAndGroupByContext

        public Map<String,​ObjectsearchUsersAndGroupByContext​(Set<String> contexts,
                                                                     int limit,
                                                                     Map<String,​Object> searchData,
                                                                     Map<String,​Object> params)
        Mixed users and groups sorted search, with multiple offsets
        Parameters:
        contexts - The context of the search
        limit - The maximum number of results per group directory and population
        searchData - The search data to fetch the next batch of the search. Must be null on the first search.
        params - The parameters to pass to the group directories and user populations when retrieving their contents
        Returns:
        An object with the list of results, sorted, and the search data required to fetch the following batch
      • searchUsersAndGroup

        public Map<String,​ObjectsearchUsersAndGroup​(Set<String> availablePopulations,
                                                            Set<String> availableDirectories,
                                                            int limit,
                                                            Map<String,​Object> searchData,
                                                            Map<String,​Object> params)
        Mixed users and groups sorted search, with multiple offsets
        Parameters:
        availablePopulations - The populations of users available for search. On first search, all populations will be used
        availableDirectories - The directories of groups available for search. On first search, all directories will be used
        limit - The maximum number of results per group directory and population
        searchData - The search data to fetch the next batch of the search. Must be null on the first search.
        params - The parameters to pass to the group directories and user populations when retrieving their contents
        Returns:
        An object with the list of results, sorted, and the search data required to fetch the following batch
      • _getSortableName

        protected static String _getSortableName​(Map<String,​Object> o)
        Get the sortable name for the json object
        Parameters:
        o - The object
        Returns:
        The sortable name, or an empty string if no name was found