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