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="CalEventServiceUtil.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.CalEventService</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.CalEventService
45   *
46   */
47  public class CalEventServiceUtil {
48      public static com.liferay.portlet.calendar.model.CalEvent addEvent(
49          long plid, java.lang.String title, java.lang.String description,
50          int startDateMonth, int startDateDay, int startDateYear,
51          int startDateHour, int startDateMinute, int endDateMonth,
52          int endDateDay, int endDateYear, int durationHour, int durationMinute,
53          boolean allDay, boolean timeZoneSensitive, java.lang.String type,
54          boolean repeating, com.liferay.portal.kernel.cal.Recurrence recurrence,
55          java.lang.String remindBy, int firstReminder, int secondReminder,
56          boolean addCommunityPermissions, boolean addGuestPermissions)
57          throws com.liferay.portal.PortalException,
58              com.liferay.portal.SystemException, java.rmi.RemoteException {
59          return _service.addEvent(plid, title, description, startDateMonth,
60              startDateDay, startDateYear, startDateHour, startDateMinute,
61              endDateMonth, endDateDay, endDateYear, durationHour,
62              durationMinute, allDay, timeZoneSensitive, type, repeating,
63              recurrence, remindBy, firstReminder, secondReminder,
64              addCommunityPermissions, addGuestPermissions);
65      }
66  
67      public static com.liferay.portlet.calendar.model.CalEvent addEvent(
68          long plid, java.lang.String title, java.lang.String description,
69          int startDateMonth, int startDateDay, int startDateYear,
70          int startDateHour, int startDateMinute, int endDateMonth,
71          int endDateDay, int endDateYear, int durationHour, int durationMinute,
72          boolean allDay, boolean timeZoneSensitive, java.lang.String type,
73          boolean repeating, com.liferay.portal.kernel.cal.Recurrence recurrence,
74          java.lang.String remindBy, int firstReminder, int secondReminder,
75          java.lang.String[] communityPermissions,
76          java.lang.String[] guestPermissions)
77          throws com.liferay.portal.PortalException,
78              com.liferay.portal.SystemException, java.rmi.RemoteException {
79          return _service.addEvent(plid, title, description, startDateMonth,
80              startDateDay, startDateYear, startDateHour, startDateMinute,
81              endDateMonth, endDateDay, endDateYear, durationHour,
82              durationMinute, allDay, timeZoneSensitive, type, repeating,
83              recurrence, remindBy, firstReminder, secondReminder,
84              communityPermissions, guestPermissions);
85      }
86  
87      public static void deleteEvent(long eventId)
88          throws com.liferay.portal.PortalException,
89              com.liferay.portal.SystemException, java.rmi.RemoteException {
90          _service.deleteEvent(eventId);
91      }
92  
93      public static java.io.File exportEvent(long eventId)
94          throws com.liferay.portal.PortalException,
95              com.liferay.portal.SystemException, java.rmi.RemoteException {
96          return _service.exportEvent(eventId);
97      }
98  
99      public static java.io.File exportGroupEvents(long plid,
100         java.lang.String fileName)
101         throws com.liferay.portal.PortalException,
102             com.liferay.portal.SystemException, java.rmi.RemoteException {
103         return _service.exportGroupEvents(plid, fileName);
104     }
105 
106     public static com.liferay.portlet.calendar.model.CalEvent getEvent(
107         long eventId)
108         throws com.liferay.portal.PortalException,
109             com.liferay.portal.SystemException, java.rmi.RemoteException {
110         return _service.getEvent(eventId);
111     }
112 
113     public static void importICal4j(long plid, java.io.File file)
114         throws com.liferay.portal.PortalException,
115             com.liferay.portal.SystemException, java.rmi.RemoteException {
116         _service.importICal4j(plid, file);
117     }
118 
119     public static com.liferay.portlet.calendar.model.CalEvent updateEvent(
120         long eventId, 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, com.liferay.portal.kernel.cal.Recurrence recurrence,
126         java.lang.String remindBy, int firstReminder, int secondReminder)
127         throws com.liferay.portal.PortalException,
128             com.liferay.portal.SystemException, java.rmi.RemoteException {
129         return _service.updateEvent(eventId, title, description,
130             startDateMonth, startDateDay, startDateYear, startDateHour,
131             startDateMinute, endDateMonth, endDateDay, endDateYear,
132             durationHour, durationMinute, allDay, timeZoneSensitive, type,
133             repeating, recurrence, remindBy, firstReminder, secondReminder);
134     }
135 
136     public static CalEventService getService() {
137         return _service;
138     }
139 
140     public void setService(CalEventService service) {
141         _service = service;
142     }
143 
144     private static CalEventService _service;
145 }