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 java.lang.String location, int startDateMonth, int startDateDay,
034 int startDateYear, int startDateHour, int startDateMinute,
035 int endDateMonth, int endDateDay, int endDateYear, int durationHour,
036 int durationMinute, boolean allDay, boolean timeZoneSensitive,
037 java.lang.String type, 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, location,
044 startDateMonth, startDateDay, startDateYear, startDateHour,
045 startDateMinute, endDateMonth, endDateDay, endDateYear,
046 durationHour, durationMinute, allDay, timeZoneSensitive, type,
047 repeating, recurrence, remindBy, firstReminder, secondReminder,
048 serviceContext);
049 }
050
051 public void deleteEvent(long eventId)
052 throws com.liferay.portal.kernel.exception.PortalException,
053 com.liferay.portal.kernel.exception.SystemException {
054 _calEventService.deleteEvent(eventId);
055 }
056
057 public java.io.File exportEvent(long eventId)
058 throws com.liferay.portal.kernel.exception.PortalException,
059 com.liferay.portal.kernel.exception.SystemException {
060 return _calEventService.exportEvent(eventId);
061 }
062
063 public java.io.File exportGroupEvents(long groupId,
064 java.lang.String fileName)
065 throws com.liferay.portal.kernel.exception.PortalException,
066 com.liferay.portal.kernel.exception.SystemException {
067 return _calEventService.exportGroupEvents(groupId, fileName);
068 }
069
070 public com.liferay.portlet.calendar.model.CalEvent getEvent(long eventId)
071 throws com.liferay.portal.kernel.exception.PortalException,
072 com.liferay.portal.kernel.exception.SystemException {
073 return _calEventService.getEvent(eventId);
074 }
075
076 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
077 long groupId, java.util.Calendar cal, java.lang.String type)
078 throws com.liferay.portal.kernel.exception.PortalException,
079 com.liferay.portal.kernel.exception.SystemException {
080 return _calEventService.getEvents(groupId, cal, type);
081 }
082
083 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
084 long groupId, java.util.Calendar cal, java.lang.String[] types)
085 throws com.liferay.portal.kernel.exception.PortalException,
086 com.liferay.portal.kernel.exception.SystemException {
087 return _calEventService.getEvents(groupId, cal, types);
088 }
089
090 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
091 long groupId, java.lang.String type, int start, int end)
092 throws com.liferay.portal.kernel.exception.SystemException {
093 return _calEventService.getEvents(groupId, type, start, end);
094 }
095
096 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
097 long groupId, java.lang.String[] types, int start, int end)
098 throws com.liferay.portal.kernel.exception.SystemException {
099 return _calEventService.getEvents(groupId, types, start, end);
100 }
101
102 public int getEventsCount(long groupId, java.lang.String type)
103 throws com.liferay.portal.kernel.exception.SystemException {
104 return _calEventService.getEventsCount(groupId, type);
105 }
106
107 public int getEventsCount(long groupId, java.lang.String[] types)
108 throws com.liferay.portal.kernel.exception.SystemException {
109 return _calEventService.getEventsCount(groupId, types);
110 }
111
112 public boolean hasEvents(long groupId, java.util.Calendar cal)
113 throws com.liferay.portal.kernel.exception.PortalException,
114 com.liferay.portal.kernel.exception.SystemException {
115 return _calEventService.hasEvents(groupId, cal);
116 }
117
118 public boolean hasEvents(long groupId, java.util.Calendar cal,
119 java.lang.String type)
120 throws com.liferay.portal.kernel.exception.PortalException,
121 com.liferay.portal.kernel.exception.SystemException {
122 return _calEventService.hasEvents(groupId, cal, type);
123 }
124
125 public boolean hasEvents(long groupId, java.util.Calendar cal,
126 java.lang.String[] types)
127 throws com.liferay.portal.kernel.exception.PortalException,
128 com.liferay.portal.kernel.exception.SystemException {
129 return _calEventService.hasEvents(groupId, cal, types);
130 }
131
132 public void importICal4j(long groupId, java.io.InputStream inputStream)
133 throws com.liferay.portal.kernel.exception.PortalException,
134 com.liferay.portal.kernel.exception.SystemException {
135 _calEventService.importICal4j(groupId, inputStream);
136 }
137
138 public com.liferay.portlet.calendar.model.CalEvent updateEvent(
139 long eventId, java.lang.String title, java.lang.String description,
140 java.lang.String location, int startDateMonth, int startDateDay,
141 int startDateYear, int startDateHour, int startDateMinute,
142 int endDateMonth, int endDateDay, int endDateYear, int durationHour,
143 int durationMinute, boolean allDay, boolean timeZoneSensitive,
144 java.lang.String type, boolean repeating,
145 com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
146 int firstReminder, int secondReminder,
147 com.liferay.portal.service.ServiceContext serviceContext)
148 throws com.liferay.portal.kernel.exception.PortalException,
149 com.liferay.portal.kernel.exception.SystemException {
150 return _calEventService.updateEvent(eventId, title, description,
151 location, startDateMonth, startDateDay, startDateYear,
152 startDateHour, startDateMinute, endDateMonth, endDateDay,
153 endDateYear, durationHour, durationMinute, allDay,
154 timeZoneSensitive, type, repeating, recurrence, remindBy,
155 firstReminder, secondReminder, serviceContext);
156 }
157
158 public CalEventService getWrappedCalEventService() {
159 return _calEventService;
160 }
161
162 public void setWrappedCalEventService(CalEventService calEventService) {
163 _calEventService = calEventService;
164 }
165
166 private CalEventService _calEventService;
167 }