1 package com.atlassian.user.search;
2
3 import com.atlassian.user.search.page.Pager;
4
5 import java.util.Set;
6
7 public interface SearchResult<T>
8 {
9 /**
10 * @return returns a {@link Pager} representing all results from the search.
11 */
12 Pager<T> pager();
13
14 /**
15 * @return a {@link Pager} holding results for the {@link com.atlassian.user.repository.RepositoryIdentifier} specified
16 * by {@link com.atlassian.user.repository.RepositoryIdentifier#getKey()}}
17 */
18 Pager<T> pager(String repoKey);
19
20 /**
21 * @return a list of {@link String} objects indicating the corresponding {@link com.atlassian.user.repository.RepositoryIdentifier}
22 * via its {@link com.atlassian.user.repository.RepositoryIdentifier#getKey()} with results in this object.
23 */
24 Set<String> repositoryKeyset();
25 }