I see that there is hard work on the solution of privacy problems, but I have no more time so I have created a quickfix.
I am not a Liferay developer, the solution may not the cleanest one, but it seems to work for me.
In PortalImpl.java there is a way to change the default name of the user from the full name to the screen name, but the problem is that some portlets, e.g. the activities and the message boards uses direct getFullName() calls, so changing the default name to screen name solves the problem on some places of the portal, but not on other places.
So I modified the UserImpl class in order to change the full name from the form of 'first name middle name last name' to 'screen name'
Steps to reproduce the fix:
- Donwload the source from sourceforge
- Edit the file portal-impl/src/com/liferay/portal/model/impl/UserImpl.java and change the method getFullName:
1*** ./portal-impl/src/com/liferay/portal/model/impl/UserImpl.java Wed Oct 21 10:16:00 2009
2--- ./portal-impl/src/com/liferay/portal/model/impl/UserImpl.java.orig Wed Oct 21 10:16:40 2009
3***************
4*** 150,156 ****
5 }
6
7 public String getFullName() {
8! return getScreenName();
9 }
10
11 public Group getGroup() {
12--- 150,157 ----
13 }
14
15 public String getFullName() {
16! return ContactConstants.getFullName(
17! getFirstName(), getMiddleName(), getLastName());
18 }
19
20 public Group getGroup() {
- Build the portal with calling ant
- move the file portal-impl/classes/com/liferay/portal/model/impl/UserImpl.class to your application server's WEB-INF/classes//com/liferay/portal/model/impl/ directory. You need to create the subdirectories starting from 'com'
- Restart the appserver
You can find the portal running with this mod under
http://battletac.com/web/guest/forum.
Thanks for the Liferay team for the great product!
Please sign in to flag this as inappropriate.