com.atlassian.crowd.console.action
Class UserSearcherImpl
java.lang.Object
com.atlassian.crowd.console.action.UserSearcherImpl
- All Implemented Interfaces:
- Searcher<User>
public class UserSearcherImpl
- extends Object
- implements Searcher<User>
Method Summary |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UserSearcherImpl
public UserSearcherImpl(DirectoryManager directoryManager,
ApplicationService applicationService,
ApplicationManager applicationManager)
doSearchByDirectory
public List<User> doSearchByDirectory(long directoryID,
Boolean active,
String searchText,
int resultsStartIndex,
int resultsPerPage)
throws OperationFailedException,
DirectoryNotFoundException
- Description copied from interface:
Searcher
- Performs a search for DirectoryEntities in the specified directory, returning a list of those that match.
- Specified by:
doSearchByDirectory
in interface Searcher<User>
- Parameters:
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.
- Returns:
- a List of users or an empty List
- Throws:
OperationFailedException
- if the directory could not be accessed
DirectoryNotFoundException
- if the directory could not be found
doSearchByApplication
public List<User> doSearchByApplication(long applicationId,
Boolean active,
String searchText,
int resultsStartIndex,
int resultsPerPage)
throws ApplicationNotFoundException
- Description copied from interface:
Searcher
- Performs a search for DirectoryEntities in the specified directory, returning a list of those that match.
- Specified by:
doSearchByApplication
in interface Searcher<User>
- Parameters:
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.
- Returns:
- a List of users or an empty List
- Throws:
ApplicationNotFoundException
- of the application could not be found
Copyright © 2013 Atlassian. All Rights Reserved.