Interface IUserSearchProvider
-
public interface IUserSearchProviderIUserSearchProvider Interface Provides methods for searching and retrieving user information
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.util.List<MyLuteceSearchUser>findUsers(java.lang.String strParameterLastName, java.lang.String strParameterGivenName, java.lang.String strParameterCriteriaMail, fr.paris.lutece.util.ReferenceList listProviderAttribute)Find users matching the given criteriajava.util.List<java.lang.String>getAllAttributes()Get all available attributesdefault java.util.List<java.util.Map<java.lang.String,java.lang.String>>getAttributeValues(java.util.List<java.lang.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.MyLuteceSearchUsergetUserById(java.lang.String strUserId)Get a user by IDjava.util.List<MyLuteceSearchUser>getUsersByIds(java.util.List<java.lang.String> userIds)Get multiple users by their IDs
-
-
-
Method Detail
-
findUsers
java.util.List<MyLuteceSearchUser> findUsers(java.lang.String strParameterLastName, java.lang.String strParameterGivenName, java.lang.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
java.util.List<java.lang.String> getAllAttributes()
Get all available attributes- Returns:
- List of attribute names
-
getUserById
MyLuteceSearchUser getUserById(java.lang.String strUserId)
Get a user by ID- Parameters:
strUserId- The user ID- Returns:
- The MyLuteceSearchUser, or null if not found
-
getUsersByIds
java.util.List<MyLuteceSearchUser> getUsersByIds(java.util.List<java.lang.String> userIds)
Get multiple users by their IDs- Parameters:
userIds- The list of user IDs- Returns:
- The list of MyLuteceSearchUser found
-
getAttributeValues
default java.util.List<java.util.Map<java.lang.String,java.lang.String>> getAttributeValues(java.util.List<java.lang.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. 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
-
-