001
014
015 package com.liferay.portlet.calendar.service;
016
017
026 public class CalEventServiceWrapper implements CalEventService {
027 public CalEventServiceWrapper(CalEventService calEventService) {
028 _calEventService = calEventService;
029 }
030
031 public com.liferay.portlet.calendar.model.CalEvent addEvent(
032 java.lang.String title, java.lang.String description,
033 int startDateMonth, int startDateDay, int startDateYear,
034 int startDateHour, int startDateMinute, int endDateMonth,
035 int endDateDay, int endDateYear, int durationHour, int durationMinute,
036 boolean allDay, boolean timeZoneSensitive, java.lang.String type,
037 boolean repeating,
038 com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
039 int firstReminder, int secondReminder,
040 com.liferay.portal.service.ServiceContext serviceContext)
041 throws com.liferay.portal.kernel.exception.PortalException,
042 com.liferay.portal.kernel.exception.SystemException {
043 return _calEventService.addEvent(title, description, startDateMonth,
044 startDateDay, startDateYear, startDateHour, startDateMinute,
045 endDateMonth, endDateDay, endDateYear, durationHour,
046 durationMinute, allDay, timeZoneSensitive, type, repeating,
047 recurrence, remindBy, firstReminder, secondReminder, serviceContext);
048 }
049
050 public void deleteEvent(long eventId)
051 throws com.liferay.portal.kernel.exception.PortalException,
052 com.liferay.portal.kernel.exception.SystemException {
053 _calEventService.deleteEvent(eventId);
054 }
055
056 public java.io.File exportEvent(long eventId)
057 throws com.liferay.portal.kernel.exception.PortalException,
058 com.liferay.portal.kernel.exception.SystemException {
059 return _calEventService.exportEvent(eventId);
060 }
061
062 public java.io.File exportGroupEvents(long groupId,
063 java.lang.String fileName)
064 throws com.liferay.portal.kernel.exception.PortalException,
065 com.liferay.portal.kernel.exception.SystemException {
066 return _calEventService.exportGroupEvents(groupId, fileName);
067 }
068
069 public com.liferay.portlet.calendar.model.CalEvent getEvent(long eventId)
070 throws com.liferay.portal.kernel.exception.PortalException,
071 com.liferay.portal.kernel.exception.SystemException {
072 return _calEventService.getEvent(eventId);
073 }
074
075 public void importICal4j(long groupId, java.io.File file)
076 throws com.liferay.portal.kernel.exception.PortalException,
077 com.liferay.portal.kernel.exception.SystemException {
078 _calEventService.importICal4j(groupId, file);
079 }
080
081 public com.liferay.portlet.calendar.model.CalEvent updateEvent(
082 long eventId, java.lang.String title, java.lang.String description,
083 int startDateMonth, int startDateDay, int startDateYear,
084 int startDateHour, int startDateMinute, int endDateMonth,
085 int endDateDay, int endDateYear, int durationHour, int durationMinute,
086 boolean allDay, boolean timeZoneSensitive, java.lang.String type,
087 boolean repeating,
088 com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
089 int firstReminder, int secondReminder,
090 com.liferay.portal.service.ServiceContext serviceContext)
091 throws com.liferay.portal.kernel.exception.PortalException,
092 com.liferay.portal.kernel.exception.SystemException {
093 return _calEventService.updateEvent(eventId, title, description,
094 startDateMonth, startDateDay, startDateYear, startDateHour,
095 startDateMinute, endDateMonth, endDateDay, endDateYear,
096 durationHour, durationMinute, allDay, timeZoneSensitive, type,
097 repeating, recurrence, remindBy, firstReminder, secondReminder,
098 serviceContext);
099 }
100
101 public CalEventService getWrappedCalEventService() {
102 return _calEventService;
103 }
104
105 private CalEventService _calEventService;
106 }