Bug 794235 (JBEPP-1291) - The display name of login user should be configurable in UIUserInfoPortlet
Summary: The display name of login user should be configurable in UIUserInfoPortlet
Keywords:
Status: CLOSED UPSTREAM
Alias: JBEPP-1291
Product: JBoss Enterprise Portal Platform 5
Classification: JBoss
Component: Portal
Version: 5.1.1.GA
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 5.2.1.ER02
Assignee: mposolda
QA Contact: vramik
URL: http://jira.jboss.org/jira/browse/JBE...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-14 08:10 UTC by Takayuki Konishi
Modified: 2025-02-10 03:15 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-02-10 03:15:18 UTC
Type: Feature Request
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker GTNPORTAL-2358 0 Major Resolved Adding new field displayName for User 2018-08-03 09:16:18 UTC
Red Hat Issue Tracker JBEPP-1291 0 Major Closed The display name of login user should be configurable in UIUserInfoPortlet 2018-08-03 09:16:18 UTC

Description Takayuki Konishi 2011-10-14 08:10:47 UTC
Affects: Documentation (Ref Guide, User Guide, etc.)
Help Desk Ticket Reference: https://na7.salesforce.com/500A0000008RT5S
project_key: JBEPP

The UIUserInfoPortlet shows the full name of login user[1] and the full name is fixed to given-name-first order[2].
Like Japanese name, It's not always true that the full name of user is given-name-first order.
So, display name should be configurable.

[1]
EPP_5_1_0_GA/portlet/exoadmin/src/main/webapp/groovy/admintoolbar/webui/component/UIUserInfoPortlet.gtmpl
line 11:         <a href="$accountSetting"><%=uicomponent.getUser().getFullName()%></a>

[2]
exocore/2.3.6-GA/exo.core.component.organization.api/src/main/java/org/exoplatform/services/organization/impl/UserImpl.java
line 137:    public String getFullName()
line 138:    {
line 139:       return getFirstName() + " " + getLastName();
line 140:    }

Comment 2 Jared MORGAN 2011-11-15 23:18:31 UTC
Release Notes Docs Status: Added: Not Yet Documented
Primary SME: Added: theute
Forum Reference: Removed: https://na7.salesforce.com/500A0000008RT5S Added: https://na7.salesforce.com/500A0000008RT5S


Comment 3 Takayuki Konishi 2011-12-07 06:05:20 UTC
Help Desk Ticket Reference: Added: https://na7.salesforce.com/500A0000008RT5S
Forum Reference: Removed: https://na7.salesforce.com/500A0000008RT5S 


Comment 4 Thomas Heute 2011-12-15 10:42:15 UTC
Need more info, logic can easily be changed in the groovy file by customer.

We can't tell if a name is Japanese or English and order firstname/lastname accordingly as a generic rule.


Comment 5 Takayuki Konishi 2011-12-20 05:40:45 UTC
The customer requested this requires editable display name.
In my opinion, it would be better to add "display" field like addressbook of thunderbird.
https://wiki.mozilla.org/Thunderbird:Help_Documentation:Using_the_Address_Book#Contact_Tab

I agree that there is no generic rule. On the the other hand, in case of mixed name style, I cannot change groovy template easily.

Comment 6 hfnukal@redhat.com 2012-01-10 13:12:17 UTC
Labels: Removed: portal Added: EPP_5_2_1_Candidate portal


Comment 7 Thomas Heute 2012-01-13 15:34:31 UTC
Labels: Removed: EPP_5_2_1_Candidate portal Added: EPP_5_2_1_Candidate


Comment 8 Martin Weiler 2012-01-16 08:12:14 UTC
An additional 'display name' field for each user would be required to meet these requirements.

Comment 10 Thomas Heute 2012-02-16 09:37:38 UTC
Labels: Removed: EPP_5_2_1_Candidate 


Comment 11 JBoss JIRA Server 2012-02-24 09:31:54 UTC
Marek Posolda <mposolda> made a comment on jira GTNPORTAL-2358

I am adding new patch GTNPORTAL-2358-fullName.patch as previous patches can work only with "displayName" support in OrganizationService API on interface User, which is not option for now.

New patch is using fullName as temporary persistent field, so fullName is placeholder for non-existing displayName. What exactly is done in patch is:
- Adding new UI field with name "displayName" to all UI forms, where you can create or edit user ( UIRegisterInputSet, UIAccountProfiles, UIAccountInputSet, UIAccountEditInputSet ). So name of UI field is "displayName" and name of localization label is also "displayName". I added localizations only for "en" and "cs" properties bundles as I don't know other languages :)

- UI components are communicating with User interface via "setFullName" and "getFullName". So fullName is now used as temporary placeholder until methods "getDisplayName" and "setDisplayName" will be available in Organization API. I added "TODO: GTNPORTAL-2358" in all pieces of code, which needs to be changed once displayName will be available in Organization API. This will allow us to use getDisplayName and setDisplayName and get rid of fullName as temporary placeholder.

- IDM integration is changed to support persistent implementations of "getFullName" and "setFullName". For this purpose I forked class UserImpl from Organization API (I made a subclass of eXo UserImpl class with overriden methods getFullName and setFullName). Again, name of new attribute at DB level is "displayName", which will assure compatibility with future versions (after support for displayName in Organization API will be added).

Comment 12 mposolda 2012-02-28 17:33:46 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
CAUSE: When user login, he can see his fullname in right top corner. This is his fullName according to format "firstName lastName" and it's hardcoded so that users can't use different format. It is also quite bad for some languages like Japanese, where is common to use opposite order as fullName.

FIX: There is new field "Display Name" in UI in all screens where is possible to create or edit user. So user is able to fill his displayName and this displayName will be used in right top corner instead of fullName. DisplayName is not mandatory and when user is not using it, it fallback to fullName (old behaviour). This also ensure backward compatibility with older versions of EPP. Name of new attribute in Picketlink IDM database is "displayName" but as said before, attribute is not mandatory.

Comment 13 JBoss JIRA Server 2012-03-14 15:50:40 UTC
Marek Posolda <mposolda> updated the status of jira GTNPORTAL-2358 to Resolved

Comment 15 Jared MORGAN 2012-03-21 02:03:08 UTC
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1,3 +1 @@
-CAUSE: When user login, he can see his fullname in right top corner. This is his fullName according to format "firstName lastName" and it's hardcoded so that users can't use different format. It is also quite bad for some languages like Japanese, where is common to use opposite order as fullName.
+The way the display name of authenticated users presented in portal screens used the firstName lastName format (commonly referred to as Western Order). Customers in regions where Eastern Order is prevalent reported issues with configuring upper-name requirements in portal UI screens. The fix introduces the Display Name (displayName) field, which is available in all UI screens. When configuring a user account, the user can specify their preferred display name, which overrides the fullName value retrieved by default.-
-FIX: There is new field "Display Name" in UI in all screens where is possible to create or edit user. So user is able to fill his displayName and this displayName will be used in right top corner instead of fullName. DisplayName is not mandatory and when user is not using it, it fallback to fullName (old behaviour). This also ensure backward compatibility with older versions of EPP. Name of new attribute in Picketlink IDM database is "displayName" but as said before, attribute is not mandatory.

Comment 16 Thomas Heute 2012-04-03 12:42:45 UTC
Nothing to add on the technical note, what should I do ?

Comment 18 vramik 2012-04-10 19:04:31 UTC
verified:

There is new input field "Display Name" when creating or editing user. The field is mandatory and if you leave it blank the display name is constructed from first name and last name. The display name is shown in right top corner when user is logged.

Comment 20 Red Hat Bugzilla 2025-02-10 03:15:18 UTC
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.


Note You need to log in before you can comment on or make changes to this bug.