[英]How override calendar portlet in liferay?
我正在使用liferay 6.1 CE,我想在日历portlet中覆盖事件的remiderUser
方法。 我试图找到,但我找到了覆盖CalEventLocalService
的方法,但我没有找到任何方法将eventReminder
发送给用户。
我已经通过以下链接。
https://dev.liferay.com/develop/tutorials/-/knowledge_base/6-2/overriding-a-portal-service-using-a-hook https://www.liferay.com/community/forums/- / message_boards / message / 29120467 https://www.liferay.com/community/forums/-/message_boards/message/29120467
更新
在我创建的类之后,我试图覆盖checkEvents
方法
public class MyCalEventServiceImple extends CalEventLocalServiceWrapper {
public MyCalEventServiceImple(CalEventLocalService calEventLocalService) {
super(calEventLocalService);
// TODO Auto-generated constructor stub
}
public CalEvent addEvent(
long userId, String title, String description, String location,
int startDateMonth, int startDateDay, int startDateYear,
int startDateHour, int startDateMinute, int endDateMonth,
int endDateDay, int endDateYear, int durationHour,
int durationMinute, boolean allDay, boolean timeZoneSensitive,
String type, boolean repeating, TZSRecurrence recurrence,
int remindBy, int firstReminder, int secondReminder,
ServiceContext serviceContext)
throws PortalException, SystemException {
// Event
System.out.println("*****************CALLED Success.....**********");
return null;
}
}
但没有找到任何方法来实现这一目标。
有谁可以帮忙?
提前致谢。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.