1
14
15 package com.liferay.portlet.calendar.service;
16
17
18
34 public class CalEventServiceWrapper implements CalEventService {
35 public CalEventServiceWrapper(CalEventService calEventService) {
36 _calEventService = calEventService;
37 }
38
39 public com.liferay.portlet.calendar.model.CalEvent addEvent(
40 java.lang.String title, java.lang.String description,
41 int startDateMonth, int startDateDay, int startDateYear,
42 int startDateHour, int startDateMinute, int endDateMonth,
43 int endDateDay, int endDateYear, int durationHour, int durationMinute,
44 boolean allDay, boolean timeZoneSensitive, java.lang.String type,
45 boolean repeating,
46 com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
47 int firstReminder, int secondReminder,
48 com.liferay.portal.service.ServiceContext serviceContext)
49 throws com.liferay.portal.kernel.exception.PortalException,
50 com.liferay.portal.kernel.exception.SystemException {
51 return _calEventService.addEvent(title, description, startDateMonth,
52 startDateDay, startDateYear, startDateHour, startDateMinute,
53 endDateMonth, endDateDay, endDateYear, durationHour,
54 durationMinute, allDay, timeZoneSensitive, type, repeating,
55 recurrence, remindBy, firstReminder, secondReminder, serviceContext);
56 }
57
58 public void deleteEvent(long eventId)
59 throws com.liferay.portal.kernel.exception.PortalException,
60 com.liferay.portal.kernel.exception.SystemException {
61 _calEventService.deleteEvent(eventId);
62 }
63
64 public java.io.File exportEvent(long eventId)
65 throws com.liferay.portal.kernel.exception.PortalException,
66 com.liferay.portal.kernel.exception.SystemException {
67 return _calEventService.exportEvent(eventId);
68 }
69
70 public java.io.File exportGroupEvents(long groupId,
71 java.lang.String fileName)
72 throws com.liferay.portal.kernel.exception.PortalException,
73 com.liferay.portal.kernel.exception.SystemException {
74 return _calEventService.exportGroupEvents(groupId, fileName);
75 }
76
77 public com.liferay.portlet.calendar.model.CalEvent getEvent(long eventId)
78 throws com.liferay.portal.kernel.exception.PortalException,
79 com.liferay.portal.kernel.exception.SystemException {
80 return _calEventService.getEvent(eventId);
81 }
82
83 public void importICal4j(long groupId, java.io.File file)
84 throws com.liferay.portal.kernel.exception.PortalException,
85 com.liferay.portal.kernel.exception.SystemException {
86 _calEventService.importICal4j(groupId, file);
87 }
88
89 public com.liferay.portlet.calendar.model.CalEvent updateEvent(
90 long eventId, java.lang.String title, java.lang.String description,
91 int startDateMonth, int startDateDay, int startDateYear,
92 int startDateHour, int startDateMinute, int endDateMonth,
93 int endDateDay, int endDateYear, int durationHour, int durationMinute,
94 boolean allDay, boolean timeZoneSensitive, java.lang.String type,
95 boolean repeating,
96 com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
97 int firstReminder, int secondReminder,
98 com.liferay.portal.service.ServiceContext serviceContext)
99 throws com.liferay.portal.kernel.exception.PortalException,
100 com.liferay.portal.kernel.exception.SystemException {
101 return _calEventService.updateEvent(eventId, title, description,
102 startDateMonth, startDateDay, startDateYear, startDateHour,
103 startDateMinute, endDateMonth, endDateDay, endDateYear,
104 durationHour, durationMinute, allDay, timeZoneSensitive, type,
105 repeating, recurrence, remindBy, firstReminder, secondReminder,
106 serviceContext);
107 }
108
109 public CalEventService getWrappedCalEventService() {
110 return _calEventService;
111 }
112
113 private CalEventService _calEventService;
114 }