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