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 addEvent(
107 long userId, long plid, java.lang.String title,
108 java.lang.String description, int startDateMonth, int startDateDay,
109 int startDateYear, int startDateHour, int startDateMinute,
110 int endDateMonth, int endDateDay, int endDateYear, int durationHour,
111 int durationMinute, boolean allDay, boolean timeZoneSensitive,
112 java.lang.String type, boolean repeating,
113 com.liferay.portal.kernel.cal.TZSRecurrence recurrence,
114 java.lang.String remindBy, int firstReminder, int secondReminder,
115 boolean addCommunityPermissions, boolean addGuestPermissions)
116 throws com.liferay.portal.PortalException,
117 com.liferay.portal.SystemException {
118 return getService()
119 .addEvent(userId, plid, title, description, startDateMonth,
120 startDateDay, startDateYear, startDateHour, startDateMinute,
121 endDateMonth, endDateDay, endDateYear, durationHour,
122 durationMinute, allDay, timeZoneSensitive, type, repeating,
123 recurrence, remindBy, firstReminder, secondReminder,
124 addCommunityPermissions, addGuestPermissions);
125 }
126
127 public static com.liferay.portlet.calendar.model.CalEvent addEvent(
128 java.lang.String uuid, long userId, long plid, java.lang.String title,
129 java.lang.String description, int startDateMonth, int startDateDay,
130 int startDateYear, int startDateHour, int startDateMinute,
131 int endDateMonth, int endDateDay, int endDateYear, int durationHour,
132 int durationMinute, boolean allDay, boolean timeZoneSensitive,
133 java.lang.String type, boolean repeating,
134 com.liferay.portal.kernel.cal.TZSRecurrence recurrence,
135 java.lang.String remindBy, int firstReminder, int secondReminder,
136 boolean addCommunityPermissions, boolean addGuestPermissions)
137 throws com.liferay.portal.PortalException,
138 com.liferay.portal.SystemException {
139 return getService()
140 .addEvent(uuid, userId, plid, title, description,
141 startDateMonth, startDateDay, startDateYear, startDateHour,
142 startDateMinute, endDateMonth, endDateDay, endDateYear,
143 durationHour, durationMinute, allDay, timeZoneSensitive, type,
144 repeating, recurrence, remindBy, firstReminder, secondReminder,
145 addCommunityPermissions, 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.TZSRecurrence 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 return getService()
162 .addEvent(userId, plid, title, description, startDateMonth,
163 startDateDay, startDateYear, startDateHour, startDateMinute,
164 endDateMonth, endDateDay, endDateYear, durationHour,
165 durationMinute, allDay, timeZoneSensitive, type, repeating,
166 recurrence, remindBy, firstReminder, secondReminder,
167 communityPermissions, guestPermissions);
168 }
169
170 public static com.liferay.portlet.calendar.model.CalEvent addEvent(
171 java.lang.String uuid, long userId, long plid, java.lang.String title,
172 java.lang.String description, int startDateMonth, int startDateDay,
173 int startDateYear, int startDateHour, int startDateMinute,
174 int endDateMonth, int endDateDay, int endDateYear, int durationHour,
175 int durationMinute, boolean allDay, boolean timeZoneSensitive,
176 java.lang.String type, boolean repeating,
177 com.liferay.portal.kernel.cal.TZSRecurrence recurrence,
178 java.lang.String remindBy, int firstReminder, int secondReminder,
179 java.lang.Boolean addCommunityPermissions,
180 java.lang.Boolean addGuestPermissions,
181 java.lang.String[] communityPermissions,
182 java.lang.String[] guestPermissions)
183 throws com.liferay.portal.PortalException,
184 com.liferay.portal.SystemException {
185 return getService()
186 .addEvent(uuid, userId, plid, title, description,
187 startDateMonth, startDateDay, startDateYear, startDateHour,
188 startDateMinute, endDateMonth, endDateDay, endDateYear,
189 durationHour, durationMinute, allDay, timeZoneSensitive, type,
190 repeating, recurrence, remindBy, firstReminder, secondReminder,
191 addCommunityPermissions, addGuestPermissions, communityPermissions,
192 guestPermissions);
193 }
194
195 public static void addEventResources(long eventId,
196 boolean addCommunityPermissions, boolean addGuestPermissions)
197 throws com.liferay.portal.PortalException,
198 com.liferay.portal.SystemException {
199 getService()
200 .addEventResources(eventId, addCommunityPermissions,
201 addGuestPermissions);
202 }
203
204 public static void addEventResources(
205 com.liferay.portlet.calendar.model.CalEvent event,
206 boolean addCommunityPermissions, boolean addGuestPermissions)
207 throws com.liferay.portal.PortalException,
208 com.liferay.portal.SystemException {
209 getService()
210 .addEventResources(event, addCommunityPermissions,
211 addGuestPermissions);
212 }
213
214 public static void addEventResources(long eventId,
215 java.lang.String[] communityPermissions,
216 java.lang.String[] guestPermissions)
217 throws com.liferay.portal.PortalException,
218 com.liferay.portal.SystemException {
219 getService()
220 .addEventResources(eventId, communityPermissions, guestPermissions);
221 }
222
223 public static void addEventResources(
224 com.liferay.portlet.calendar.model.CalEvent event,
225 java.lang.String[] communityPermissions,
226 java.lang.String[] guestPermissions)
227 throws com.liferay.portal.PortalException,
228 com.liferay.portal.SystemException {
229 getService()
230 .addEventResources(event, communityPermissions, guestPermissions);
231 }
232
233 public static void checkEvents()
234 throws com.liferay.portal.PortalException,
235 com.liferay.portal.SystemException {
236 getService().checkEvents();
237 }
238
239 public static void deleteEvent(long eventId)
240 throws com.liferay.portal.PortalException,
241 com.liferay.portal.SystemException {
242 getService().deleteEvent(eventId);
243 }
244
245 public static void deleteEvent(
246 com.liferay.portlet.calendar.model.CalEvent event)
247 throws com.liferay.portal.PortalException,
248 com.liferay.portal.SystemException {
249 getService().deleteEvent(event);
250 }
251
252 public static void deleteEvents(long groupId)
253 throws com.liferay.portal.PortalException,
254 com.liferay.portal.SystemException {
255 getService().deleteEvents(groupId);
256 }
257
258 public static java.io.File exportEvent(long userId, long eventId)
259 throws com.liferay.portal.PortalException,
260 com.liferay.portal.SystemException {
261 return getService().exportEvent(userId, eventId);
262 }
263
264 public static java.io.File exportGroupEvents(long userId, long plid,
265 java.lang.String fileName)
266 throws com.liferay.portal.PortalException,
267 com.liferay.portal.SystemException {
268 return getService().exportGroupEvents(userId, plid, fileName);
269 }
270
271 public static com.liferay.portlet.calendar.model.CalEvent getEvent(
272 long eventId)
273 throws com.liferay.portal.PortalException,
274 com.liferay.portal.SystemException {
275 return getService().getEvent(eventId);
276 }
277
278 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
279 long groupId, java.lang.String type, int start, int end)
280 throws com.liferay.portal.SystemException {
281 return getService().getEvents(groupId, type, start, end);
282 }
283
284 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
285 long groupId, java.util.Calendar cal)
286 throws com.liferay.portal.SystemException {
287 return getService().getEvents(groupId, cal);
288 }
289
290 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
291 long groupId, java.util.Calendar cal, java.lang.String type)
292 throws com.liferay.portal.SystemException {
293 return getService().getEvents(groupId, cal, type);
294 }
295
296 public static int getEventsCount(long groupId, java.lang.String type)
297 throws com.liferay.portal.SystemException {
298 return getService().getEventsCount(groupId, type);
299 }
300
301 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getRepeatingEvents(
302 long groupId) throws com.liferay.portal.SystemException {
303 return getService().getRepeatingEvents(groupId);
304 }
305
306 public static boolean hasEvents(long groupId, java.util.Calendar cal)
307 throws com.liferay.portal.SystemException {
308 return getService().hasEvents(groupId, cal);
309 }
310
311 public static boolean hasEvents(long groupId, java.util.Calendar cal,
312 java.lang.String type) throws com.liferay.portal.SystemException {
313 return getService().hasEvents(groupId, cal, type);
314 }
315
316 public static void importICal4j(long userId, long plid, java.io.File file)
317 throws com.liferay.portal.PortalException,
318 com.liferay.portal.SystemException {
319 getService().importICal4j(userId, plid, file);
320 }
321
322 public static com.liferay.portlet.calendar.model.CalEvent updateEvent(
323 long userId, long eventId, java.lang.String title,
324 java.lang.String description, int startDateMonth, int startDateDay,
325 int startDateYear, int startDateHour, int startDateMinute,
326 int endDateMonth, int endDateDay, int endDateYear, int durationHour,
327 int durationMinute, boolean allDay, boolean timeZoneSensitive,
328 java.lang.String type, boolean repeating,
329 com.liferay.portal.kernel.cal.TZSRecurrence recurrence,
330 java.lang.String remindBy, int firstReminder, int secondReminder)
331 throws com.liferay.portal.PortalException,
332 com.liferay.portal.SystemException {
333 return getService()
334 .updateEvent(userId, eventId, title, description,
335 startDateMonth, startDateDay, startDateYear, startDateHour,
336 startDateMinute, endDateMonth, endDateDay, endDateYear,
337 durationHour, durationMinute, allDay, timeZoneSensitive, type,
338 repeating, recurrence, remindBy, firstReminder, secondReminder);
339 }
340
341 public static CalEventLocalService getService() {
342 if (_service == null) {
343 throw new RuntimeException("CalEventLocalService is not set");
344 }
345
346 return _service;
347 }
348
349 public void setService(CalEventLocalService service) {
350 _service = service;
351 }
352
353 private static CalEventLocalService _service;
354 }