1
22
23 package com.liferay.portlet.calendar.service;
24
25
26
53 public class CalEventLocalServiceUtil {
54 public static com.liferay.portlet.calendar.model.CalEvent addCalEvent(
55 com.liferay.portlet.calendar.model.CalEvent calEvent)
56 throws com.liferay.portal.SystemException {
57 CalEventLocalService calEventLocalService = CalEventLocalServiceFactory.getService();
58
59 return calEventLocalService.addCalEvent(calEvent);
60 }
61
62 public static void deleteCalEvent(long eventId)
63 throws com.liferay.portal.PortalException,
64 com.liferay.portal.SystemException {
65 CalEventLocalService calEventLocalService = CalEventLocalServiceFactory.getService();
66
67 calEventLocalService.deleteCalEvent(eventId);
68 }
69
70 public static void deleteCalEvent(
71 com.liferay.portlet.calendar.model.CalEvent calEvent)
72 throws com.liferay.portal.SystemException {
73 CalEventLocalService calEventLocalService = CalEventLocalServiceFactory.getService();
74
75 calEventLocalService.deleteCalEvent(calEvent);
76 }
77
78 public static java.util.List<Object> dynamicQuery(
79 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
80 throws com.liferay.portal.SystemException {
81 CalEventLocalService calEventLocalService = CalEventLocalServiceFactory.getService();
82
83 return calEventLocalService.dynamicQuery(dynamicQuery);
84 }
85
86 public static java.util.List<Object> dynamicQuery(
87 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
88 int end) throws com.liferay.portal.SystemException {
89 CalEventLocalService calEventLocalService = CalEventLocalServiceFactory.getService();
90
91 return calEventLocalService.dynamicQuery(dynamicQuery, start, end);
92 }
93
94 public static com.liferay.portlet.calendar.model.CalEvent getCalEvent(
95 long eventId)
96 throws com.liferay.portal.PortalException,
97 com.liferay.portal.SystemException {
98 CalEventLocalService calEventLocalService = CalEventLocalServiceFactory.getService();
99
100 return calEventLocalService.getCalEvent(eventId);
101 }
102
103 public static com.liferay.portlet.calendar.model.CalEvent updateCalEvent(
104 com.liferay.portlet.calendar.model.CalEvent calEvent)
105 throws com.liferay.portal.SystemException {
106 CalEventLocalService calEventLocalService = CalEventLocalServiceFactory.getService();
107
108 return calEventLocalService.updateCalEvent(calEvent);
109 }
110
111 public static com.liferay.portlet.calendar.model.CalEvent addEvent(
112 long userId, long plid, java.lang.String title,
113 java.lang.String description, int startDateMonth, int startDateDay,
114 int startDateYear, int startDateHour, int startDateMinute,
115 int endDateMonth, int endDateDay, int endDateYear, int durationHour,
116 int durationMinute, boolean allDay, boolean timeZoneSensitive,
117 java.lang.String type, boolean repeating,
118 com.liferay.portal.kernel.cal.Recurrence recurrence,
119 java.lang.String remindBy, int firstReminder, int secondReminder,
120 boolean addCommunityPermissions, boolean addGuestPermissions)
121 throws com.liferay.portal.PortalException,
122 com.liferay.portal.SystemException {
123 CalEventLocalService calEventLocalService = CalEventLocalServiceFactory.getService();
124
125 return calEventLocalService.addEvent(userId, plid, title, description,
126 startDateMonth, startDateDay, startDateYear, startDateHour,
127 startDateMinute, endDateMonth, endDateDay, endDateYear,
128 durationHour, durationMinute, allDay, timeZoneSensitive, type,
129 repeating, recurrence, remindBy, firstReminder, secondReminder,
130 addCommunityPermissions, addGuestPermissions);
131 }
132
133 public static com.liferay.portlet.calendar.model.CalEvent addEvent(
134 java.lang.String uuid, long userId, long plid, java.lang.String title,
135 java.lang.String description, int startDateMonth, int startDateDay,
136 int startDateYear, int startDateHour, int startDateMinute,
137 int endDateMonth, int endDateDay, int endDateYear, int durationHour,
138 int durationMinute, boolean allDay, boolean timeZoneSensitive,
139 java.lang.String type, boolean repeating,
140 com.liferay.portal.kernel.cal.Recurrence recurrence,
141 java.lang.String remindBy, int firstReminder, int secondReminder,
142 boolean addCommunityPermissions, boolean addGuestPermissions)
143 throws com.liferay.portal.PortalException,
144 com.liferay.portal.SystemException {
145 CalEventLocalService calEventLocalService = CalEventLocalServiceFactory.getService();
146
147 return calEventLocalService.addEvent(uuid, userId, plid, title,
148 description, startDateMonth, startDateDay, startDateYear,
149 startDateHour, startDateMinute, endDateMonth, endDateDay,
150 endDateYear, durationHour, durationMinute, allDay,
151 timeZoneSensitive, type, repeating, recurrence, remindBy,
152 firstReminder, secondReminder, addCommunityPermissions,
153 addGuestPermissions);
154 }
155
156 public static com.liferay.portlet.calendar.model.CalEvent addEvent(
157 long userId, long plid, java.lang.String title,
158 java.lang.String description, int startDateMonth, int startDateDay,
159 int startDateYear, int startDateHour, int startDateMinute,
160 int endDateMonth, int endDateDay, int endDateYear, int durationHour,
161 int durationMinute, boolean allDay, boolean timeZoneSensitive,
162 java.lang.String type, boolean repeating,
163 com.liferay.portal.kernel.cal.Recurrence recurrence,
164 java.lang.String remindBy, int firstReminder, int secondReminder,
165 java.lang.String[] communityPermissions,
166 java.lang.String[] guestPermissions)
167 throws com.liferay.portal.PortalException,
168 com.liferay.portal.SystemException {
169 CalEventLocalService calEventLocalService = CalEventLocalServiceFactory.getService();
170
171 return calEventLocalService.addEvent(userId, plid, title, description,
172 startDateMonth, startDateDay, startDateYear, startDateHour,
173 startDateMinute, endDateMonth, endDateDay, endDateYear,
174 durationHour, durationMinute, allDay, timeZoneSensitive, type,
175 repeating, recurrence, remindBy, firstReminder, secondReminder,
176 communityPermissions, guestPermissions);
177 }
178
179 public static com.liferay.portlet.calendar.model.CalEvent addEvent(
180 java.lang.String uuid, long userId, long plid, java.lang.String title,
181 java.lang.String description, int startDateMonth, int startDateDay,
182 int startDateYear, int startDateHour, int startDateMinute,
183 int endDateMonth, int endDateDay, int endDateYear, int durationHour,
184 int durationMinute, boolean allDay, boolean timeZoneSensitive,
185 java.lang.String type, boolean repeating,
186 com.liferay.portal.kernel.cal.Recurrence recurrence,
187 java.lang.String remindBy, int firstReminder, int secondReminder,
188 java.lang.Boolean addCommunityPermissions,
189 java.lang.Boolean addGuestPermissions,
190 java.lang.String[] communityPermissions,
191 java.lang.String[] guestPermissions)
192 throws com.liferay.portal.PortalException,
193 com.liferay.portal.SystemException {
194 CalEventLocalService calEventLocalService = CalEventLocalServiceFactory.getService();
195
196 return calEventLocalService.addEvent(uuid, userId, plid, title,
197 description, startDateMonth, startDateDay, startDateYear,
198 startDateHour, startDateMinute, endDateMonth, endDateDay,
199 endDateYear, durationHour, durationMinute, allDay,
200 timeZoneSensitive, type, repeating, recurrence, remindBy,
201 firstReminder, secondReminder, addCommunityPermissions,
202 addGuestPermissions, communityPermissions, guestPermissions);
203 }
204
205 public static void addEventResources(long eventId,
206 boolean addCommunityPermissions, boolean addGuestPermissions)
207 throws com.liferay.portal.PortalException,
208 com.liferay.portal.SystemException {
209 CalEventLocalService calEventLocalService = CalEventLocalServiceFactory.getService();
210
211 calEventLocalService.addEventResources(eventId,
212 addCommunityPermissions, addGuestPermissions);
213 }
214
215 public static void addEventResources(
216 com.liferay.portlet.calendar.model.CalEvent event,
217 boolean addCommunityPermissions, boolean addGuestPermissions)
218 throws com.liferay.portal.PortalException,
219 com.liferay.portal.SystemException {
220 CalEventLocalService calEventLocalService = CalEventLocalServiceFactory.getService();
221
222 calEventLocalService.addEventResources(event, addCommunityPermissions,
223 addGuestPermissions);
224 }
225
226 public static void addEventResources(long eventId,
227 java.lang.String[] communityPermissions,
228 java.lang.String[] guestPermissions)
229 throws com.liferay.portal.PortalException,
230 com.liferay.portal.SystemException {
231 CalEventLocalService calEventLocalService = CalEventLocalServiceFactory.getService();
232
233 calEventLocalService.addEventResources(eventId, communityPermissions,
234 guestPermissions);
235 }
236
237 public static void addEventResources(
238 com.liferay.portlet.calendar.model.CalEvent event,
239 java.lang.String[] communityPermissions,
240 java.lang.String[] guestPermissions)
241 throws com.liferay.portal.PortalException,
242 com.liferay.portal.SystemException {
243 CalEventLocalService calEventLocalService = CalEventLocalServiceFactory.getService();
244
245 calEventLocalService.addEventResources(event, communityPermissions,
246 guestPermissions);
247 }
248
249 public static void checkEvents()
250 throws com.liferay.portal.PortalException,
251 com.liferay.portal.SystemException {
252 CalEventLocalService calEventLocalService = CalEventLocalServiceFactory.getService();
253
254 calEventLocalService.checkEvents();
255 }
256
257 public static void deleteEvent(long eventId)
258 throws com.liferay.portal.PortalException,
259 com.liferay.portal.SystemException {
260 CalEventLocalService calEventLocalService = CalEventLocalServiceFactory.getService();
261
262 calEventLocalService.deleteEvent(eventId);
263 }
264
265 public static void deleteEvent(
266 com.liferay.portlet.calendar.model.CalEvent event)
267 throws com.liferay.portal.PortalException,
268 com.liferay.portal.SystemException {
269 CalEventLocalService calEventLocalService = CalEventLocalServiceFactory.getService();
270
271 calEventLocalService.deleteEvent(event);
272 }
273
274 public static void deleteEvents(long groupId)
275 throws com.liferay.portal.PortalException,
276 com.liferay.portal.SystemException {
277 CalEventLocalService calEventLocalService = CalEventLocalServiceFactory.getService();
278
279 calEventLocalService.deleteEvents(groupId);
280 }
281
282 public static java.io.File exportEvent(long userId, long eventId)
283 throws com.liferay.portal.PortalException,
284 com.liferay.portal.SystemException {
285 CalEventLocalService calEventLocalService = CalEventLocalServiceFactory.getService();
286
287 return calEventLocalService.exportEvent(userId, eventId);
288 }
289
290 public static java.io.File exportGroupEvents(long userId, long plid,
291 java.lang.String fileName)
292 throws com.liferay.portal.PortalException,
293 com.liferay.portal.SystemException {
294 CalEventLocalService calEventLocalService = CalEventLocalServiceFactory.getService();
295
296 return calEventLocalService.exportGroupEvents(userId, plid, fileName);
297 }
298
299 public static com.liferay.portlet.calendar.model.CalEvent getEvent(
300 long eventId)
301 throws com.liferay.portal.PortalException,
302 com.liferay.portal.SystemException {
303 CalEventLocalService calEventLocalService = CalEventLocalServiceFactory.getService();
304
305 return calEventLocalService.getEvent(eventId);
306 }
307
308 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
309 long groupId, java.lang.String type, int start, int end)
310 throws com.liferay.portal.SystemException {
311 CalEventLocalService calEventLocalService = CalEventLocalServiceFactory.getService();
312
313 return calEventLocalService.getEvents(groupId, type, start, end);
314 }
315
316 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
317 long groupId, java.util.Calendar cal)
318 throws com.liferay.portal.SystemException {
319 CalEventLocalService calEventLocalService = CalEventLocalServiceFactory.getService();
320
321 return calEventLocalService.getEvents(groupId, cal);
322 }
323
324 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
325 long groupId, java.util.Calendar cal, java.lang.String type)
326 throws com.liferay.portal.SystemException {
327 CalEventLocalService calEventLocalService = CalEventLocalServiceFactory.getService();
328
329 return calEventLocalService.getEvents(groupId, cal, type);
330 }
331
332 public static int getEventsCount(long groupId, java.lang.String type)
333 throws com.liferay.portal.SystemException {
334 CalEventLocalService calEventLocalService = CalEventLocalServiceFactory.getService();
335
336 return calEventLocalService.getEventsCount(groupId, type);
337 }
338
339 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getRepeatingEvents(
340 long groupId) throws com.liferay.portal.SystemException {
341 CalEventLocalService calEventLocalService = CalEventLocalServiceFactory.getService();
342
343 return calEventLocalService.getRepeatingEvents(groupId);
344 }
345
346 public static boolean hasEvents(long groupId, java.util.Calendar cal)
347 throws com.liferay.portal.SystemException {
348 CalEventLocalService calEventLocalService = CalEventLocalServiceFactory.getService();
349
350 return calEventLocalService.hasEvents(groupId, cal);
351 }
352
353 public static boolean hasEvents(long groupId, java.util.Calendar cal,
354 java.lang.String type) throws com.liferay.portal.SystemException {
355 CalEventLocalService calEventLocalService = CalEventLocalServiceFactory.getService();
356
357 return calEventLocalService.hasEvents(groupId, cal, type);
358 }
359
360 public static void importICal4j(long userId, long plid, java.io.File file)
361 throws com.liferay.portal.PortalException,
362 com.liferay.portal.SystemException {
363 CalEventLocalService calEventLocalService = CalEventLocalServiceFactory.getService();
364
365 calEventLocalService.importICal4j(userId, plid, file);
366 }
367
368 public static com.liferay.portlet.calendar.model.CalEvent updateEvent(
369 long userId, long eventId, java.lang.String title,
370 java.lang.String description, int startDateMonth, int startDateDay,
371 int startDateYear, int startDateHour, int startDateMinute,
372 int endDateMonth, int endDateDay, int endDateYear, int durationHour,
373 int durationMinute, boolean allDay, boolean timeZoneSensitive,
374 java.lang.String type, boolean repeating,
375 com.liferay.portal.kernel.cal.Recurrence recurrence,
376 java.lang.String remindBy, int firstReminder, int secondReminder)
377 throws com.liferay.portal.PortalException,
378 com.liferay.portal.SystemException {
379 CalEventLocalService calEventLocalService = CalEventLocalServiceFactory.getService();
380
381 return calEventLocalService.updateEvent(userId, eventId, title,
382 description, startDateMonth, startDateDay, startDateYear,
383 startDateHour, startDateMinute, endDateMonth, endDateDay,
384 endDateYear, durationHour, durationMinute, allDay,
385 timeZoneSensitive, type, repeating, recurrence, remindBy,
386 firstReminder, secondReminder);
387 }
388 }