Sunday, June 16, 2013

can you list out some portal event actions where you can place your hooks?

We can write a hook that is executed at some portal events. something you want to execute your class when a portal start up, during portal shut down, when user sing in, when user signout...etc


when you create your hooks, mention the event name and your class name. Liferay will execute that event in addition to one by default mentioned in portal.properties file





Default portal.properties events

application.startup.events=com.liferay.portal.events.AppStartupAction
application.shutdown.events=com.liferay.portal.events.AppShutdownAction


 login.events.pre=com.liferay.portal.events.LoginPreAction
 login.events.post=com.liferay.portal.events.LoginPostAction,com.liferay.portal.events.DefaultLandingPageAction

 logout.events.pre=com.liferay.portal.events.LogoutPreAction
 logout.events.post=com.liferay.portal.events.LogoutPostAction,com.liferay.portal.events.DefaultLogoutPageAction,com.liferay.portal.events.SiteMinderLogoutAction



 # The default logic is coded in com.liferay.portal.events.ServicePreAction
 servlet.session.create.events=com.liferay.portal.events.SessionCreateAction
 servlet.session.destroy.events=com.liferay.portal.events.SessionDestroyAction



 global.startup.events=com.liferay.portal.events.GlobalStartupAction
 global.shutdown.events=com.liferay.portal.events.GlobalShutdownAction




 servlet.service.events.pre=com.liferay.portal.events.ServicePreAction
 servlet.service.events.post=com.liferay.portal.events.ServicePostAction

  servlet.service.events.pre.error.page=/common/error.jsp


No comments:

Post a Comment