Interface IUserSearchProvider
public interface IUserSearchProvider
IUserSearchProvider Interface
Provides methods for searching and retrieving user information
-
Method Summary
Modifier and TypeMethodDescriptionfindUsers(String strParameterLastName, String strParameterGivenName, String strParameterCriteriaMail, fr.paris.lutece.util.ReferenceList listProviderAttribute) Find users matching the given criteriaGet all available attributesgetAttributeValues(List<String> listAttributeNames) Get the distinct combinations of values the given attributes take across the directory, to feed suggestion lists that narrow each other: knowing which values coexist tells which offices belong to a direction.getUserById(String strUserId) Get a user by IDgetUsersByIds(List<String> userIds) Get multiple users by their IDs
-
Method Details
-
findUsers
List<MyLuteceSearchUser> findUsers(String strParameterLastName, String strParameterGivenName, String strParameterCriteriaMail, fr.paris.lutece.util.ReferenceList listProviderAttribute) Find users matching the given criteria- Parameters:
strParameterLastName- Last namestrParameterGivenName- Given namestrParameterCriteriaMail- EmaillistProviderAttribute- Attributes- Returns:
- List of matching MyLuteceSearchUser objects
-
getAllAttributes
Get all available attributes- Returns:
- List of attribute names
-
getUserById
Get a user by ID- Parameters:
strUserId- The user ID- Returns:
- The MyLuteceSearchUser, or null if not found
-
getUsersByIds
Get multiple users by their IDs- Parameters:
userIds- The list of user IDs- Returns:
- The list of MyLuteceSearchUser found
-
getAttributeValues
Get the distinct combinations of values the given attributes take across the directory, to feed suggestion lists that narrow each other: knowing which values coexist tells which offices belong to a direction. Callers must not have to load every user to discover them. One element of the returned list is one combination, keyed by attribute name. An attribute missing from a directory entry is missing from its combination. Providers unable to enumerate values return an empty list.- Parameters:
listAttributeNames- The attributes to enumerate together- Returns:
- The distinct combinations, empty when the provider cannot enumerate them
-