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="CalEventLocalService.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 interface defines the service. The default implementation is
36   * <code>com.liferay.portlet.calendar.service.impl.CalEventLocalServiceImpl</code>.
37   * Modify methods in that class and rerun ServiceBuilder to populate this class
38   * and all other generated classes.
39   * </p>
40   *
41   * <p>
42   * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
43   * </p>
44   *
45   * @author Brian Wing Shun Chan
46   *
47   * @see com.liferay.portlet.calendar.service.CalEventLocalServiceFactory
48   * @see com.liferay.portlet.calendar.service.CalEventLocalServiceUtil
49   *
50   */
51  public interface CalEventLocalService {
52      public com.liferay.portlet.calendar.model.CalEvent addCalEvent(
53          com.liferay.portlet.calendar.model.CalEvent calEvent)
54          throws com.liferay.portal.SystemException;
55  
56      public void deleteCalEvent(long eventId)
57          throws com.liferay.portal.SystemException,
58              com.liferay.portal.PortalException;
59  
60      public void deleteCalEvent(
61          com.liferay.portlet.calendar.model.CalEvent calEvent)
62          throws com.liferay.portal.SystemException;
63  
64      public java.util.List<Object> dynamicQuery(
65          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66          throws com.liferay.portal.SystemException;
67  
68      public java.util.List<Object> dynamicQuery(
69          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
70          int end) throws com.liferay.portal.SystemException;
71  
72      public com.liferay.portlet.calendar.model.CalEvent getCalEvent(long eventId)
73          throws com.liferay.portal.SystemException,
74              com.liferay.portal.PortalException;
75  
76      public com.liferay.portlet.calendar.model.CalEvent updateCalEvent(
77          com.liferay.portlet.calendar.model.CalEvent calEvent)
78          throws com.liferay.portal.SystemException;
79  
80      public com.liferay.portlet.calendar.model.CalEvent addEvent(long userId,
81          long plid, java.lang.String title, java.lang.String description,
82          int startDateMonth, int startDateDay, int startDateYear,
83          int startDateHour, int startDateMinute, int endDateMonth,
84          int endDateDay, int endDateYear, int durationHour, int durationMinute,
85          boolean allDay, boolean timeZoneSensitive, java.lang.String type,
86          boolean repeating, com.liferay.portal.kernel.cal.Recurrence recurrence,
87          java.lang.String remindBy, int firstReminder, int secondReminder,
88          boolean addCommunityPermissions, boolean addGuestPermissions)
89          throws com.liferay.portal.PortalException,
90              com.liferay.portal.SystemException;
91  
92      public com.liferay.portlet.calendar.model.CalEvent addEvent(
93          java.lang.String uuid, long userId, long plid, java.lang.String title,
94          java.lang.String description, int startDateMonth, int startDateDay,
95          int startDateYear, int startDateHour, int startDateMinute,
96          int endDateMonth, int endDateDay, int endDateYear, int durationHour,
97          int durationMinute, boolean allDay, boolean timeZoneSensitive,
98          java.lang.String type, boolean repeating,
99          com.liferay.portal.kernel.cal.Recurrence recurrence,
100         java.lang.String remindBy, int firstReminder, int secondReminder,
101         boolean addCommunityPermissions, boolean addGuestPermissions)
102         throws com.liferay.portal.PortalException,
103             com.liferay.portal.SystemException;
104 
105     public com.liferay.portlet.calendar.model.CalEvent addEvent(long userId,
106         long plid, java.lang.String title, java.lang.String description,
107         int startDateMonth, int startDateDay, int startDateYear,
108         int startDateHour, int startDateMinute, int endDateMonth,
109         int endDateDay, int endDateYear, int durationHour, int durationMinute,
110         boolean allDay, boolean timeZoneSensitive, java.lang.String type,
111         boolean repeating, com.liferay.portal.kernel.cal.Recurrence recurrence,
112         java.lang.String remindBy, int firstReminder, int secondReminder,
113         java.lang.String[] communityPermissions,
114         java.lang.String[] guestPermissions)
115         throws com.liferay.portal.PortalException,
116             com.liferay.portal.SystemException;
117 
118     public com.liferay.portlet.calendar.model.CalEvent addEvent(
119         java.lang.String uuid, long userId, long plid, java.lang.String title,
120         java.lang.String description, int startDateMonth, int startDateDay,
121         int startDateYear, int startDateHour, int startDateMinute,
122         int endDateMonth, int endDateDay, int endDateYear, int durationHour,
123         int durationMinute, boolean allDay, boolean timeZoneSensitive,
124         java.lang.String type, boolean repeating,
125         com.liferay.portal.kernel.cal.Recurrence recurrence,
126         java.lang.String remindBy, int firstReminder, int secondReminder,
127         java.lang.Boolean addCommunityPermissions,
128         java.lang.Boolean addGuestPermissions,
129         java.lang.String[] communityPermissions,
130         java.lang.String[] guestPermissions)
131         throws com.liferay.portal.PortalException,
132             com.liferay.portal.SystemException;
133 
134     public void addEventResources(long eventId,
135         boolean addCommunityPermissions, boolean addGuestPermissions)
136         throws com.liferay.portal.PortalException,
137             com.liferay.portal.SystemException;
138 
139     public void addEventResources(
140         com.liferay.portlet.calendar.model.CalEvent event,
141         boolean addCommunityPermissions, boolean addGuestPermissions)
142         throws com.liferay.portal.PortalException,
143             com.liferay.portal.SystemException;
144 
145     public void addEventResources(long eventId,
146         java.lang.String[] communityPermissions,
147         java.lang.String[] guestPermissions)
148         throws com.liferay.portal.PortalException,
149             com.liferay.portal.SystemException;
150 
151     public void addEventResources(
152         com.liferay.portlet.calendar.model.CalEvent event,
153         java.lang.String[] communityPermissions,
154         java.lang.String[] guestPermissions)
155         throws com.liferay.portal.PortalException,
156             com.liferay.portal.SystemException;
157 
158     public void checkEvents()
159         throws com.liferay.portal.PortalException,
160             com.liferay.portal.SystemException;
161 
162     public void deleteEvent(long eventId)
163         throws com.liferay.portal.PortalException,
164             com.liferay.portal.SystemException;
165 
166     public void deleteEvent(com.liferay.portlet.calendar.model.CalEvent event)
167         throws com.liferay.portal.PortalException,
168             com.liferay.portal.SystemException;
169 
170     public void deleteEvents(long groupId)
171         throws com.liferay.portal.PortalException,
172             com.liferay.portal.SystemException;
173 
174     public java.io.File exportEvent(long userId, long eventId)
175         throws com.liferay.portal.PortalException,
176             com.liferay.portal.SystemException;
177 
178     public java.io.File exportGroupEvents(long userId, long plid,
179         java.lang.String fileName)
180         throws com.liferay.portal.PortalException,
181             com.liferay.portal.SystemException;
182 
183     public com.liferay.portlet.calendar.model.CalEvent getEvent(long eventId)
184         throws com.liferay.portal.PortalException,
185             com.liferay.portal.SystemException;
186 
187     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
188         long groupId, java.lang.String type, int start, int end)
189         throws com.liferay.portal.SystemException;
190 
191     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
192         long groupId, java.util.Calendar cal)
193         throws com.liferay.portal.SystemException;
194 
195     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
196         long groupId, java.util.Calendar cal, java.lang.String type)
197         throws com.liferay.portal.SystemException;
198 
199     public int getEventsCount(long groupId, java.lang.String type)
200         throws com.liferay.portal.SystemException;
201 
202     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getRepeatingEvents(
203         long groupId) throws com.liferay.portal.SystemException;
204 
205     public boolean hasEvents(long groupId, java.util.Calendar cal)
206         throws com.liferay.portal.SystemException;
207 
208     public boolean hasEvents(long groupId, java.util.Calendar cal,
209         java.lang.String type) throws com.liferay.portal.SystemException;
210 
211     public void importICal4j(long userId, long plid, java.io.File file)
212         throws com.liferay.portal.PortalException,
213             com.liferay.portal.SystemException;
214 
215     public com.liferay.portlet.calendar.model.CalEvent updateEvent(
216         long userId, long eventId, java.lang.String title,
217         java.lang.String description, int startDateMonth, int startDateDay,
218         int startDateYear, int startDateHour, int startDateMinute,
219         int endDateMonth, int endDateDay, int endDateYear, int durationHour,
220         int durationMinute, boolean allDay, boolean timeZoneSensitive,
221         java.lang.String type, boolean repeating,
222         com.liferay.portal.kernel.cal.Recurrence recurrence,
223         java.lang.String remindBy, int firstReminder, int secondReminder)
224         throws com.liferay.portal.PortalException,
225             com.liferay.portal.SystemException;
226 }