com.atlassian.user.search
Class DefaultSearchResult<T>

java.lang.Object
  extended by com.atlassian.user.search.DefaultSearchResult<T>
All Implemented Interfaces:
SearchResult<T>

public class DefaultSearchResult<T>
extends Object
implements SearchResult<T>


Constructor Summary
DefaultSearchResult()
           
DefaultSearchResult(Pager<T> result, String repositoryKey)
           
 
Method Summary
 void addToResults(String repositoryKey, Pager<T> pager)
           
 Pager<T> pager()
           
 Pager<T> pager(String repoKey)
           
 Set<String> repositoryKeyset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSearchResult

public DefaultSearchResult()

DefaultSearchResult

public DefaultSearchResult(Pager<T> result,
                           String repositoryKey)
Method Detail

pager

public Pager<T> pager()
Specified by:
pager in interface SearchResult<T>
Returns:
returns a Pager representing all results from the search.

addToResults

public void addToResults(String repositoryKey,
                         Pager<T> pager)

pager

public Pager<T> pager(String repoKey)
Specified by:
pager in interface SearchResult<T>
Returns:
a Pager holding results for the RepositoryIdentifier specified by RepositoryIdentifier.getKey()}

repositoryKeyset

public Set<String> repositoryKeyset()
Specified by:
repositoryKeyset in interface SearchResult<T>
Returns:
a list of String objects indcating the repositories with results in this object.


Copyright © 2005-2009 Atlassian Software Systems Pty Ltd. All Rights Reserved.