last day (14 days later) » 

12:15 PM
0
A: How override calendar portlet in liferay?

Lucky BoyIf you look at the liferay source code remindUser (which is protected) is the method that sends reminder to user about events. If you dig more into the liferay source code you can find that checkEvents (which is public) is the method which ultimately calls remindUser method. So, I think you can u...

 
Thanks for your response. Can you please let me know how can I override/access checkEvents method using hook?
 
I updated my answer please check it
 
I have already done this but I am not able to find checkEvents in CalEventLocalServiceWrapper class which I am extending in my custom class.
 
Can you post(code) what you have done?
 
See my updated answer.
 
12:15 PM
looks OK. Can you please type checkEvents and press ctrl + space and check if you get suggestions related to checkEvents method?
 
Ok let me check
yes I am able to get that.
Hi
Are you there?
 
yes
so problem resolved?
 
nope, I have override following method to check
@Override
public CalEvent addCalEvent(CalEvent calEvent) throws SystemException {
System.out.println("Add Event Called Successfully");
return super.addCalEvent(calEvent);
}
When I have created new event then I am not able to get my message in console.
Still I think its not calling my method.
 
show your liferay-hook.xml
 
<hook>
<service>
<service-type>com.liferay.portlet.calendar.service.CalEventLocalService</service-type>
<service-impl>com.sa.sample.MyCalEventServiceImple</service-impl>
</service>
</hook>
Is it fine?
 
1:10 PM
Hi
I am able to call checkEvent method successfully.
Thank you very much.
I have one question related to scheduler...which sending reminder to user...
Can we change scheduler cron expression?
 

last day (14 days later) »