Class WikiUserDisplayName

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

public final class WikiUserDisplayName extends Object
Builds the name the wiki displays for a user, whatever the source that user comes from. A readable first and last name is preferred, then the email, then the technical identifier, so the same person is always rendered the same way.
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    of(fr.paris.lutece.plugins.mylutece.service.search.MyLuteceSearchUser user)
    Returns the name to display for a user found through the user search service.
    static String
    of(fr.paris.lutece.portal.service.security.LuteceUser user)
    Returns the name to display for a signed-in user.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • of

      public static String of(fr.paris.lutece.portal.service.security.LuteceUser user)
      Returns the name to display for a signed-in user.
      Parameters:
      user - the Lutece user
      Returns:
      the display name, null only when the user is null
    • of

      public static String of(fr.paris.lutece.plugins.mylutece.service.search.MyLuteceSearchUser user)
      Returns the name to display for a user found through the user search service.
      Parameters:
      user - the user found
      Returns:
      the display name, null only when the user is null