Class ExternalUserSearchService
java.lang.Object
fr.paris.lutece.plugins.wiki.service.user.ExternalUserSearchService
Service for searching external users via the MyLutece user provider
-
Method Summary
Modifier and TypeMethodDescriptionfr.paris.lutece.plugins.mylutece.service.search.MyLuteceSearchUsergetUserByProviderUserId(String strProviderUserId) Get a user by provider user IDbooleanCheck if external user search is availableList<fr.paris.lutece.plugins.mylutece.service.search.MyLuteceSearchUser>searchUsers(String strLastName, String strGivenName, String strEmail) Search for users matching the given criteriaList<fr.paris.lutece.plugins.mylutece.service.search.MyLuteceSearchUser>searchUsers(String strLastName, String strGivenName, String strEmail, fr.paris.lutece.util.ReferenceList listProviderAttributes) Search for users matching the given criteria including additional attributes
-
Method Details
-
searchUsers
public List<fr.paris.lutece.plugins.mylutece.service.search.MyLuteceSearchUser> searchUsers(String strLastName, String strGivenName, String strEmail) Search for users matching the given criteria- Parameters:
strLastName- the last name (can be null or empty)strGivenName- the given name (can be null or empty)strEmail- the email (can be null or empty)- Returns:
- the list of matching users
-
searchUsers
public List<fr.paris.lutece.plugins.mylutece.service.search.MyLuteceSearchUser> searchUsers(String strLastName, String strGivenName, String strEmail, fr.paris.lutece.util.ReferenceList listProviderAttributes) Search for users matching the given criteria including additional attributes- Parameters:
strLastName- the last name (can be null or empty)strGivenName- the given name (can be null or empty)strEmail- the email (can be null or empty)listProviderAttributes- additional provider attributes to search by (can be null)- Returns:
- the list of matching users
-
isAvailable
public boolean isAvailable()Check if external user search is available- Returns:
- true if a user provider is configured, false otherwise
-
getUserByProviderUserId
public fr.paris.lutece.plugins.mylutece.service.search.MyLuteceSearchUser getUserByProviderUserId(String strProviderUserId) Get a user by provider user ID- Parameters:
strProviderUserId- the provider user ID- Returns:
- the user, or null if not found
-