Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
C M
Disable obligation to compile firstname - override UserLocalServiceImpl
July 25, 2011 2:48 AM
Answer

C M

Rank: New Member

Posts: 10

Join Date: June 15, 2011

Recent Posts

Hello experts,

In our portal we do not want that the first name is obligatory (because of an automatic syncronisation between our DB and Liferay). Therefore I'm trying to modify the validateFullName procedure in the UserLocalServiceImpl class.

The "Minimizing the ext environment" Blog entry (http://www.liferay.com/de/web/amos.fong/blog/-/blogs/4487213) says to use a hook and to extend the UserLocalServiceWrapper class to override a *ServiceImpl.java class. In my class the Blog entry says to generate the class using:

1public class TestUserLocalServiceImpl extends UserLocalServiceWrapper {


Unfortunately the UserLocalServiceWrapper has no declaration of validateFullName and therefore I'm not able to override the control function which makes the firstname obligatory.

Could you please give me an idea what steps I to take to override the validateFullName procedure?

Greetings,
CM