001
014
015 package com.liferay.portlet.calendar.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
033 public class CalEventServiceUtil {
034
039
040
045 public static java.lang.String getBeanIdentifier() {
046 return getService().getBeanIdentifier();
047 }
048
049
054 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
055 getService().setBeanIdentifier(beanIdentifier);
056 }
057
058 public static com.liferay.portlet.calendar.model.CalEvent addEvent(
059 java.lang.String title, java.lang.String description,
060 java.lang.String location, int startDateMonth, int startDateDay,
061 int startDateYear, int startDateHour, int startDateMinute,
062 int durationHour, int durationMinute, boolean allDay,
063 boolean timeZoneSensitive, java.lang.String type, boolean repeating,
064 com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
065 int firstReminder, int secondReminder,
066 com.liferay.portal.service.ServiceContext serviceContext)
067 throws com.liferay.portal.kernel.exception.PortalException,
068 com.liferay.portal.kernel.exception.SystemException {
069 return getService()
070 .addEvent(title, description, location, startDateMonth,
071 startDateDay, startDateYear, startDateHour, startDateMinute,
072 durationHour, durationMinute, allDay, timeZoneSensitive, type,
073 repeating, recurrence, remindBy, firstReminder, secondReminder,
074 serviceContext);
075 }
076
077
083 public static com.liferay.portlet.calendar.model.CalEvent addEvent(
084 java.lang.String title, java.lang.String description,
085 java.lang.String location, int startDateMonth, int startDateDay,
086 int startDateYear, int startDateHour, int startDateMinute,
087 int endDateMonth, int endDateDay, int endDateYear, int durationHour,
088 int durationMinute, boolean allDay, boolean timeZoneSensitive,
089 java.lang.String type, boolean repeating,
090 com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
091 int firstReminder, int secondReminder,
092 com.liferay.portal.service.ServiceContext serviceContext)
093 throws com.liferay.portal.kernel.exception.PortalException,
094 com.liferay.portal.kernel.exception.SystemException {
095 return getService()
096 .addEvent(title, description, location, startDateMonth,
097 startDateDay, startDateYear, startDateHour, startDateMinute,
098 endDateMonth, endDateDay, endDateYear, durationHour,
099 durationMinute, allDay, timeZoneSensitive, type, repeating,
100 recurrence, remindBy, firstReminder, secondReminder, serviceContext);
101 }
102
103 public static void deleteEvent(long eventId)
104 throws com.liferay.portal.kernel.exception.PortalException,
105 com.liferay.portal.kernel.exception.SystemException {
106 getService().deleteEvent(eventId);
107 }
108
109 public static java.io.File exportEvent(long eventId)
110 throws com.liferay.portal.kernel.exception.PortalException,
111 com.liferay.portal.kernel.exception.SystemException {
112 return getService().exportEvent(eventId);
113 }
114
115 public static java.io.File exportEvents(
116 java.util.List<com.liferay.portlet.calendar.model.CalEvent> events,
117 java.lang.String fileName)
118 throws com.liferay.portal.kernel.exception.PortalException,
119 com.liferay.portal.kernel.exception.SystemException {
120 return getService().exportEvents(events, fileName);
121 }
122
123 public static java.io.File exportGroupEvents(long groupId,
124 java.lang.String fileName)
125 throws com.liferay.portal.kernel.exception.PortalException,
126 com.liferay.portal.kernel.exception.SystemException {
127 return getService().exportGroupEvents(groupId, fileName);
128 }
129
130 public static com.liferay.portlet.calendar.model.CalEvent getEvent(
131 long eventId)
132 throws com.liferay.portal.kernel.exception.PortalException,
133 com.liferay.portal.kernel.exception.SystemException {
134 return getService().getEvent(eventId);
135 }
136
137 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
138 long groupId, java.util.Calendar cal, java.lang.String type)
139 throws com.liferay.portal.kernel.exception.PortalException,
140 com.liferay.portal.kernel.exception.SystemException {
141 return getService().getEvents(groupId, cal, type);
142 }
143
144 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
145 long groupId, java.util.Calendar cal, java.lang.String[] types)
146 throws com.liferay.portal.kernel.exception.PortalException,
147 com.liferay.portal.kernel.exception.SystemException {
148 return getService().getEvents(groupId, cal, types);
149 }
150
151 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
152 long groupId, java.lang.String type, int start, int end)
153 throws com.liferay.portal.kernel.exception.SystemException {
154 return getService().getEvents(groupId, type, start, end);
155 }
156
157 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
158 long groupId, java.lang.String[] types, int start, int end)
159 throws com.liferay.portal.kernel.exception.SystemException {
160 return getService().getEvents(groupId, types, start, end);
161 }
162
163 public static int getEventsCount(long groupId, java.lang.String type)
164 throws com.liferay.portal.kernel.exception.SystemException {
165 return getService().getEventsCount(groupId, type);
166 }
167
168 public static int getEventsCount(long groupId, java.lang.String[] types)
169 throws com.liferay.portal.kernel.exception.SystemException {
170 return getService().getEventsCount(groupId, types);
171 }
172
173 public static boolean hasEvents(long groupId, java.util.Calendar cal)
174 throws com.liferay.portal.kernel.exception.PortalException,
175 com.liferay.portal.kernel.exception.SystemException {
176 return getService().hasEvents(groupId, cal);
177 }
178
179 public static boolean hasEvents(long groupId, java.util.Calendar cal,
180 java.lang.String type)
181 throws com.liferay.portal.kernel.exception.PortalException,
182 com.liferay.portal.kernel.exception.SystemException {
183 return getService().hasEvents(groupId, cal, type);
184 }
185
186 public static boolean hasEvents(long groupId, java.util.Calendar cal,
187 java.lang.String[] types)
188 throws com.liferay.portal.kernel.exception.PortalException,
189 com.liferay.portal.kernel.exception.SystemException {
190 return getService().hasEvents(groupId, cal, types);
191 }
192
193 public static void importICal4j(long groupId,
194 java.io.InputStream inputStream)
195 throws com.liferay.portal.kernel.exception.PortalException,
196 com.liferay.portal.kernel.exception.SystemException {
197 getService().importICal4j(groupId, inputStream);
198 }
199
200 public static com.liferay.portlet.calendar.model.CalEvent updateEvent(
201 long eventId, java.lang.String title, java.lang.String description,
202 java.lang.String location, int startDateMonth, int startDateDay,
203 int startDateYear, int startDateHour, int startDateMinute,
204 int durationHour, int durationMinute, boolean allDay,
205 boolean timeZoneSensitive, java.lang.String type, boolean repeating,
206 com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
207 int firstReminder, int secondReminder,
208 com.liferay.portal.service.ServiceContext serviceContext)
209 throws com.liferay.portal.kernel.exception.PortalException,
210 com.liferay.portal.kernel.exception.SystemException {
211 return getService()
212 .updateEvent(eventId, title, description, location,
213 startDateMonth, startDateDay, startDateYear, startDateHour,
214 startDateMinute, durationHour, durationMinute, allDay,
215 timeZoneSensitive, type, repeating, recurrence, remindBy,
216 firstReminder, secondReminder, serviceContext);
217 }
218
219
225 public static com.liferay.portlet.calendar.model.CalEvent updateEvent(
226 long eventId, java.lang.String title, java.lang.String description,
227 java.lang.String location, int startDateMonth, int startDateDay,
228 int startDateYear, int startDateHour, int startDateMinute,
229 int endDateMonth, int endDateDay, int endDateYear, int durationHour,
230 int durationMinute, boolean allDay, boolean timeZoneSensitive,
231 java.lang.String type, boolean repeating,
232 com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
233 int firstReminder, int secondReminder,
234 com.liferay.portal.service.ServiceContext serviceContext)
235 throws com.liferay.portal.kernel.exception.PortalException,
236 com.liferay.portal.kernel.exception.SystemException {
237 return getService()
238 .updateEvent(eventId, title, description, location,
239 startDateMonth, startDateDay, startDateYear, startDateHour,
240 startDateMinute, endDateMonth, endDateDay, endDateYear,
241 durationHour, durationMinute, allDay, timeZoneSensitive, type,
242 repeating, recurrence, remindBy, firstReminder, secondReminder,
243 serviceContext);
244 }
245
246 public static CalEventService getService() {
247 if (_service == null) {
248 _service = (CalEventService)PortalBeanLocatorUtil.locate(CalEventService.class.getName());
249
250 ReferenceRegistry.registerReference(CalEventServiceUtil.class,
251 "_service");
252 }
253
254 return _service;
255 }
256
257
260 public void setService(CalEventService service) {
261 }
262
263 private static CalEventService _service;
264 }