1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.calendar.service;
24  
25  
26  /**
27   * <a href="CalEventLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This class provides static methods for the
36   * <code>com.liferay.portlet.calendar.service.CalEventLocalService</code>
37   * bean. The static methods of this class calls the same methods of the bean
38   * instance. It's convenient to be able to just write one line to call a method
39   * on a bean instead of writing a lookup call and a method call.
40   * </p>
41   *
42   * @author Brian Wing Shun Chan
43   *
44   * @see com.liferay.portlet.calendar.service.CalEventLocalService
45   *
46   */
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 _service.addCalEvent(calEvent);
52      }
53  
54      public static void deleteCalEvent(long eventId)
55          throws com.liferay.portal.PortalException,
56              com.liferay.portal.SystemException {
57          _service.deleteCalEvent(eventId);
58      }
59  
60      public static void deleteCalEvent(
61          com.liferay.portlet.calendar.model.CalEvent calEvent)
62          throws com.liferay.portal.SystemException {
63          _service.deleteCalEvent(calEvent);
64      }
65  
66      public static java.util.List<Object> dynamicQuery(
67          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68          throws com.liferay.portal.SystemException {
69          return _service.dynamicQuery(dynamicQuery);
70      }
71  
72      public static java.util.List<Object> dynamicQuery(
73          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
74          int end) throws com.liferay.portal.SystemException {
75          return _service.dynamicQuery(dynamicQuery, start, end);
76      }
77  
78      public static com.liferay.portlet.calendar.model.CalEvent getCalEvent(
79          long eventId)
80          throws com.liferay.portal.PortalException,
81              com.liferay.portal.SystemException {
82          return _service.getCalEvent(eventId);
83      }
84  
85      public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getCalEvents(
86          int start, int end) throws com.liferay.portal.SystemException {
87          return _service.getCalEvents(start, end);
88      }
89  
90      public static int getCalEventsCount()
91          throws com.liferay.portal.SystemException {
92          return _service.getCalEventsCount();
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          return _service.updateCalEvent(calEvent);
99      }
100 
101     public static com.liferay.portlet.calendar.model.CalEvent addEvent(
102         long userId, long plid, java.lang.String title,
103         java.lang.String description, int startDateMonth, int startDateDay,
104         int startDateYear, int startDateHour, int startDateMinute,
105         int endDateMonth, int endDateDay, int endDateYear, int durationHour,
106         int durationMinute, boolean allDay, boolean timeZoneSensitive,
107         java.lang.String type, boolean repeating,
108         com.liferay.portal.kernel.cal.Recurrence recurrence,
109         java.lang.String remindBy, int firstReminder, int secondReminder,
110         boolean addCommunityPermissions, boolean addGuestPermissions)
111         throws com.liferay.portal.PortalException,
112             com.liferay.portal.SystemException {
113         return _service.addEvent(userId, plid, title, description,
114             startDateMonth, startDateDay, startDateYear, startDateHour,
115             startDateMinute, endDateMonth, endDateDay, endDateYear,
116             durationHour, durationMinute, allDay, timeZoneSensitive, type,
117             repeating, recurrence, remindBy, firstReminder, secondReminder,
118             addCommunityPermissions, addGuestPermissions);
119     }
120 
121     public static com.liferay.portlet.calendar.model.CalEvent addEvent(
122         java.lang.String uuid, long userId, long plid, java.lang.String title,
123         java.lang.String description, int startDateMonth, int startDateDay,
124         int startDateYear, int startDateHour, int startDateMinute,
125         int endDateMonth, int endDateDay, int endDateYear, int durationHour,
126         int durationMinute, boolean allDay, boolean timeZoneSensitive,
127         java.lang.String type, boolean repeating,
128         com.liferay.portal.kernel.cal.Recurrence recurrence,
129         java.lang.String remindBy, int firstReminder, int secondReminder,
130         boolean addCommunityPermissions, boolean addGuestPermissions)
131         throws com.liferay.portal.PortalException,
132             com.liferay.portal.SystemException {
133         return _service.addEvent(uuid, userId, plid, title, description,
134             startDateMonth, startDateDay, startDateYear, startDateHour,
135             startDateMinute, endDateMonth, endDateDay, endDateYear,
136             durationHour, durationMinute, allDay, timeZoneSensitive, type,
137             repeating, recurrence, remindBy, firstReminder, secondReminder,
138             addCommunityPermissions, addGuestPermissions);
139     }
140 
141     public static com.liferay.portlet.calendar.model.CalEvent addEvent(
142         long userId, long plid, java.lang.String title,
143         java.lang.String description, int startDateMonth, int startDateDay,
144         int startDateYear, int startDateHour, int startDateMinute,
145         int endDateMonth, int endDateDay, int endDateYear, int durationHour,
146         int durationMinute, boolean allDay, boolean timeZoneSensitive,
147         java.lang.String type, boolean repeating,
148         com.liferay.portal.kernel.cal.Recurrence recurrence,
149         java.lang.String remindBy, int firstReminder, int secondReminder,
150         java.lang.String[] communityPermissions,
151         java.lang.String[] guestPermissions)
152         throws com.liferay.portal.PortalException,
153             com.liferay.portal.SystemException {
154         return _service.addEvent(userId, plid, title, description,
155             startDateMonth, startDateDay, startDateYear, startDateHour,
156             startDateMinute, endDateMonth, endDateDay, endDateYear,
157             durationHour, durationMinute, allDay, timeZoneSensitive, type,
158             repeating, recurrence, remindBy, firstReminder, secondReminder,
159             communityPermissions, guestPermissions);
160     }
161 
162     public static com.liferay.portlet.calendar.model.CalEvent addEvent(
163         java.lang.String uuid, long userId, long plid, java.lang.String title,
164         java.lang.String description, int startDateMonth, int startDateDay,
165         int startDateYear, int startDateHour, int startDateMinute,
166         int endDateMonth, int endDateDay, int endDateYear, int durationHour,
167         int durationMinute, boolean allDay, boolean timeZoneSensitive,
168         java.lang.String type, boolean repeating,
169         com.liferay.portal.kernel.cal.Recurrence recurrence,
170         java.lang.String remindBy, int firstReminder, int secondReminder,
171         java.lang.Boolean addCommunityPermissions,
172         java.lang.Boolean addGuestPermissions,
173         java.lang.String[] communityPermissions,
174         java.lang.String[] guestPermissions)
175         throws com.liferay.portal.PortalException,
176             com.liferay.portal.SystemException {
177         return _service.addEvent(uuid, userId, plid, title, description,
178             startDateMonth, startDateDay, startDateYear, startDateHour,
179             startDateMinute, endDateMonth, endDateDay, endDateYear,
180             durationHour, durationMinute, allDay, timeZoneSensitive, type,
181             repeating, recurrence, remindBy, firstReminder, secondReminder,
182             addCommunityPermissions, addGuestPermissions, communityPermissions,
183             guestPermissions);
184     }
185 
186     public static void addEventResources(long eventId,
187         boolean addCommunityPermissions, boolean addGuestPermissions)
188         throws com.liferay.portal.PortalException,
189             com.liferay.portal.SystemException {
190         _service.addEventResources(eventId, addCommunityPermissions,
191             addGuestPermissions);
192     }
193 
194     public static void addEventResources(
195         com.liferay.portlet.calendar.model.CalEvent event,
196         boolean addCommunityPermissions, boolean addGuestPermissions)
197         throws com.liferay.portal.PortalException,
198             com.liferay.portal.SystemException {
199         _service.addEventResources(event, addCommunityPermissions,
200             addGuestPermissions);
201     }
202 
203     public static void addEventResources(long eventId,
204         java.lang.String[] communityPermissions,
205         java.lang.String[] guestPermissions)
206         throws com.liferay.portal.PortalException,
207             com.liferay.portal.SystemException {
208         _service.addEventResources(eventId, communityPermissions,
209             guestPermissions);
210     }
211 
212     public static void addEventResources(
213         com.liferay.portlet.calendar.model.CalEvent event,
214         java.lang.String[] communityPermissions,
215         java.lang.String[] guestPermissions)
216         throws com.liferay.portal.PortalException,
217             com.liferay.portal.SystemException {
218         _service.addEventResources(event, communityPermissions, guestPermissions);
219     }
220 
221     public static void checkEvents()
222         throws com.liferay.portal.PortalException,
223             com.liferay.portal.SystemException {
224         _service.checkEvents();
225     }
226 
227     public static void deleteEvent(long eventId)
228         throws com.liferay.portal.PortalException,
229             com.liferay.portal.SystemException {
230         _service.deleteEvent(eventId);
231     }
232 
233     public static void deleteEvent(
234         com.liferay.portlet.calendar.model.CalEvent event)
235         throws com.liferay.portal.PortalException,
236             com.liferay.portal.SystemException {
237         _service.deleteEvent(event);
238     }
239 
240     public static void deleteEvents(long groupId)
241         throws com.liferay.portal.PortalException,
242             com.liferay.portal.SystemException {
243         _service.deleteEvents(groupId);
244     }
245 
246     public static java.io.File exportEvent(long userId, long eventId)
247         throws com.liferay.portal.PortalException,
248             com.liferay.portal.SystemException {
249         return _service.exportEvent(userId, eventId);
250     }
251 
252     public static java.io.File exportGroupEvents(long userId, long plid,
253         java.lang.String fileName)
254         throws com.liferay.portal.PortalException,
255             com.liferay.portal.SystemException {
256         return _service.exportGroupEvents(userId, plid, fileName);
257     }
258 
259     public static com.liferay.portlet.calendar.model.CalEvent getEvent(
260         long eventId)
261         throws com.liferay.portal.PortalException,
262             com.liferay.portal.SystemException {
263         return _service.getEvent(eventId);
264     }
265 
266     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
267         long groupId, java.lang.String type, int start, int end)
268         throws com.liferay.portal.SystemException {
269         return _service.getEvents(groupId, type, start, end);
270     }
271 
272     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
273         long groupId, java.util.Calendar cal)
274         throws com.liferay.portal.SystemException {
275         return _service.getEvents(groupId, cal);
276     }
277 
278     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
279         long groupId, java.util.Calendar cal, java.lang.String type)
280         throws com.liferay.portal.SystemException {
281         return _service.getEvents(groupId, cal, type);
282     }
283 
284     public static int getEventsCount(long groupId, java.lang.String type)
285         throws com.liferay.portal.SystemException {
286         return _service.getEventsCount(groupId, type);
287     }
288 
289     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> getRepeatingEvents(
290         long groupId) throws com.liferay.portal.SystemException {
291         return _service.getRepeatingEvents(groupId);
292     }
293 
294     public static boolean hasEvents(long groupId, java.util.Calendar cal)
295         throws com.liferay.portal.SystemException {
296         return _service.hasEvents(groupId, cal);
297     }
298 
299     public static boolean hasEvents(long groupId, java.util.Calendar cal,
300         java.lang.String type) throws com.liferay.portal.SystemException {
301         return _service.hasEvents(groupId, cal, type);
302     }
303 
304     public static void importICal4j(long userId, long plid, java.io.File file)
305         throws com.liferay.portal.PortalException,
306             com.liferay.portal.SystemException {
307         _service.importICal4j(userId, plid, file);
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.Recurrence recurrence,
318         java.lang.String remindBy, int firstReminder, int secondReminder)
319         throws com.liferay.portal.PortalException,
320             com.liferay.portal.SystemException {
321         return _service.updateEvent(userId, eventId, title, description,
322             startDateMonth, startDateDay, startDateYear, startDateHour,
323             startDateMinute, endDateMonth, endDateDay, endDateYear,
324             durationHour, durationMinute, allDay, timeZoneSensitive, type,
325             repeating, recurrence, remindBy, firstReminder, secondReminder);
326     }
327 
328     public static CalEventLocalService getService() {
329         return _service;
330     }
331 
332     public void setService(CalEventLocalService service) {
333         _service = service;
334     }
335 
336     private static CalEventLocalService _service;
337 }