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