com.atlassian.crowd.console.action
Interface Searcher<T extends DirectoryEntity>

All Known Implementing Classes:
UserSearcherImpl

public interface Searcher<T extends DirectoryEntity>


Method Summary
 List<T> doSearchByApplication(long applicationId, Boolean active, String searchText, int resultsStartIndex, int resultsPerPage)
          Performs a search for DirectoryEntities in the specified directory, returning a list of those that match.
 List<T> doSearchByDirectory(long directoryID, Boolean active, String searchText, int resultsStartIndex, int resultsPerPage)
          Performs a search for DirectoryEntities in the specified directory, returning a list of those that match.
 

Method Detail

doSearchByDirectory

List<T> doSearchByDirectory(long directoryID,
                            Boolean active,
                            String searchText,
                            int resultsStartIndex,
                            int resultsPerPage)
                                                    throws ObjectNotFoundException,
                                                           DirectoryAccessException
Performs a search for DirectoryEntities in the specified directory, returning a list of those that match.

Parameters:
directoryID - The directory to search
active - Boolean.TRUE for only active, Boolean.FALSE for disabled, null for both.
searchText - The text to search for.
resultsStartIndex - The index of the first result to return - used to avoid loading all results.
resultsPerPage - The number of results to return - used to avoid loading all results.
Returns:
a List of users or an empty List
Throws:
DirectoryAccessException - if the directory could not be accessed
ObjectNotFoundException - if the directory could not be found

doSearchByApplication

List<T> doSearchByApplication(long applicationId,
                              Boolean active,
                              String searchText,
                              int resultsStartIndex,
                              int resultsPerPage)
                                                      throws ObjectNotFoundException,
                                                             DirectoryAccessException
Performs a search for DirectoryEntities in the specified directory, returning a list of those that match.

Parameters:
applicationId - The application to search
active - Boolean.TRUE for only active, Boolean.FALSE for disabled, null for both.
searchText - The text to search for.
resultsStartIndex - The index of the first result to return - used to avoid loading all results.
resultsPerPage - The number of results to return - used to avoid loading all results.
Returns:
a List of users or an empty List
Throws:
DirectoryAccessException - if the directory could not be accessed
ObjectNotFoundException - if the directory could not be found


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.