Constructor and Description |
---|
UserSearcherImpl(DirectoryManager directoryManager,
ApplicationService applicationService,
ApplicationManager applicationManager) |
Modifier and Type | Method and Description |
---|---|
List<User> |
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<User> |
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.
|
public UserSearcherImpl(DirectoryManager directoryManager, ApplicationService applicationService, ApplicationManager applicationManager)
public List<User> doSearchByDirectory(long directoryID, Boolean active, String searchText, int resultsStartIndex, int resultsPerPage) throws OperationFailedException, DirectoryNotFoundException
Searcher
doSearchByDirectory
in interface Searcher<User>
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 foundpublic List<User> doSearchByApplication(long applicationId, Boolean active, String searchText, int resultsStartIndex, int resultsPerPage) throws ApplicationNotFoundException
Searcher
doSearchByApplication
in interface Searcher<User>
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.ApplicationNotFoundException
- of the application could not be foundCopyright © 2021 Atlassian. All rights reserved.