Class WikiUserDisplayName
java.lang.Object
fr.paris.lutece.plugins.wiki.service.user.WikiUserDisplayName
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 TypeMethodDescriptionstatic Stringof(fr.paris.lutece.plugins.mylutece.service.search.MyLuteceSearchUser user) Returns the name to display for a user found through the user search service.static Stringof(fr.paris.lutece.portal.service.security.LuteceUser user) Returns the name to display for a signed-in user.
-
Method Details
-
of
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
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
-