Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Karel Teniska
My First EXT plugin - please help / prosím pomoc
June 26, 2012 10:18 PM
Answer

Karel Teniska

Rank: Junior Member

Posts: 68

Join Date: June 26, 2012

Recent Posts

Hello, i need create extension plugin on loigin process of liferay. Please tell me somebody , where i found some sample, etc. "hello word - ext plugin". I developing in Eclipse with liferay SDK.

Thanks

Petr
jaid shaik
RE: My First EXT plugin - please help / prosím pomoc
June 26, 2012 10:43 PM
Answer

jaid shaik

Rank: Regular Member

Posts: 170

Join Date: October 7, 2010

Recent Posts

Hi Petr Vašek,

check this links link2 link1
Chintan Akhani
RE: My First EXT plugin - please help / prosím pomoc
June 26, 2012 10:45 PM
Answer

Chintan Akhani

Rank: Regular Member

Posts: 111

Join Date: March 13, 2008

Recent Posts

I am not sure how to create ext plugin using Eclipse Liferay SDK, as I am not able to find out an option for ext plugin.

But through command prompt you can do it. Go to ext folder, execute a command called "create helloworld "Hello World" ". This will create an ext plugin for you.

Now if you want to override any portal-impl class than create same package structure inside this ext plugin and place your modified class. Either you can copy existing class and make your changes else you can create a new class which extend your existing class and just create method for which you want different behavior .

For example, if you want to modify UserLocalServiceImpl than you can achieve it through ext plugin. For any Jsp change, hook is a good option.
Karel Teniska
RE: My First EXT plugin - please help / prosím pomoc
June 27, 2012 3:28 AM
Answer

Karel Teniska

Rank: Junior Member

Posts: 68

Join Date: June 26, 2012

Recent Posts

Thank you very much guys. I have next question emoticon . Please, i need before login process ..in "com.liferay.portlet.login.action.LoginAction.java" get actual logiing user's info (company etc.). Is it possible?

Thank you very much

Petr
Chintan Akhani
RE: My First EXT plugin - please help / prosím pomoc
June 27, 2012 10:32 PM
Answer

Chintan Akhani

Rank: Regular Member

Posts: 111

Join Date: March 13, 2008

Recent Posts

long userId = UserLocalServiceUtil.authenticateForBasic(companyId, {Auth Type}, login, password)

Auth Type = CompanyConstants.AUTH_TYPE_EA / CompanyConstants.AUTH_TYPE_SN / CompanyConstants.AUTH_TYPE_ID

You can get the user object based on userId. UserLocalServiceUtil.getUser(long userId)
Karel Teniska
RE: My First EXT plugin - please help / prosím pomoc
June 28, 2012 2:43 AM
Answer

Karel Teniska

Rank: Junior Member

Posts: 68

Join Date: June 26, 2012

Recent Posts

Thats it.

Thank you very much guys.