public interface Searcher<T extends DirectoryEntity>
Modifier and Type | Method and Description |
---|---|
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.
|
List<T> doSearchByDirectory(long directoryID, Boolean active, String searchText, int resultsStartIndex, int resultsPerPage) throws OperationFailedException, DirectoryNotFoundException
directoryID
- The directory to searchactive
- 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.OperationFailedException
- if the directory could not be accessedDirectoryNotFoundException
- if the directory could not be foundList<T> doSearchByApplication(long applicationId, Boolean active, String searchText, int resultsStartIndex, int resultsPerPage) throws DirectoryNotFoundException, ApplicationNotFoundException
applicationId
- The application to searchactive
- 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.DirectoryNotFoundException
- if the directory could not be foundApplicationNotFoundException
- of the application could not be foundCopyright © 2020 Atlassian. All rights reserved.