Class ExternalUserSearchService

java.lang.Object
fr.paris.lutece.plugins.wiki.service.user.ExternalUserSearchService

@ApplicationScoped public class ExternalUserSearchService extends Object
Service for searching external users via the MyLutece user provider
  • Method Summary

    Modifier and Type
    Method
    Description
    fr.paris.lutece.plugins.mylutece.service.search.MyLuteceSearchUser
    getUserByProviderUserId(String strProviderUserId)
    Get a user by provider user ID
    boolean
    Check if external user search is available
    List<fr.paris.lutece.plugins.mylutece.service.search.MyLuteceSearchUser>
    searchUsers(String strLastName, String strGivenName, String strEmail)
    Search for users matching the given criteria
    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

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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