【发布时间】:2015-09-11 21:22:26
【问题描述】:
我正在使用 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;
}
}
但没有找到任何方法来实现这一点。
有人可以帮忙吗??
提前致谢。
【问题讨论】: