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