1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights 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  import com.liferay.portal.PortalException;
26  import com.liferay.portal.SystemException;
27  import com.liferay.portal.kernel.annotation.Isolation;
28  import com.liferay.portal.kernel.annotation.Propagation;
29  import com.liferay.portal.kernel.annotation.Transactional;
30  
31  /**
32   * <a href="CalEventLocalService.java.html"><b><i>View Source</i></b></a>
33   *
34   * <p>
35   * ServiceBuilder generated this class. Modifications in this class will be
36   * overwritten the next time is generated.
37   * </p>
38   *
39   * <p>
40   * This interface defines the service. The default implementation is
41   * {@link
42   * com.liferay.portlet.calendar.service.impl.CalEventLocalServiceImpl}}.
43   * Modify methods in that class and rerun ServiceBuilder to populate this class
44   * and all other generated classes.
45   * </p>
46   *
47   * <p>
48   * 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.
49   * </p>
50   *
51   * @author    Brian Wing Shun Chan
52   * @see       CalEventLocalServiceUtil
53   * @generated
54   */
55  @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
56      PortalException.class, SystemException.class})
57  public interface CalEventLocalService {
58      public com.liferay.portlet.calendar.model.CalEvent addCalEvent(
59          com.liferay.portlet.calendar.model.CalEvent calEvent)
60          throws com.liferay.portal.SystemException;
61  
62      public com.liferay.portlet.calendar.model.CalEvent createCalEvent(
63          long eventId);
64  
65      public void deleteCalEvent(long eventId)
66          throws com.liferay.portal.PortalException,
67              com.liferay.portal.SystemException;
68  
69      public void deleteCalEvent(
70          com.liferay.portlet.calendar.model.CalEvent calEvent)
71          throws com.liferay.portal.SystemException;
72  
73      public java.util.List<Object> dynamicQuery(
74          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
75          throws com.liferay.portal.SystemException;
76  
77      public 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  
81      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
82      public com.liferay.portlet.calendar.model.CalEvent getCalEvent(long eventId)
83          throws com.liferay.portal.PortalException,
84              com.liferay.portal.SystemException;
85  
86      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87      public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getCalEvents(
88          int start, int end) throws com.liferay.portal.SystemException;
89  
90      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
91      public int getCalEventsCount() throws com.liferay.portal.SystemException;
92  
93      public com.liferay.portlet.calendar.model.CalEvent updateCalEvent(
94          com.liferay.portlet.calendar.model.CalEvent calEvent)
95          throws com.liferay.portal.SystemException;
96  
97      public com.liferay.portlet.calendar.model.CalEvent updateCalEvent(
98          com.liferay.portlet.calendar.model.CalEvent calEvent, boolean merge)
99          throws com.liferay.portal.SystemException;
100 
101     public com.liferay.portlet.calendar.model.CalEvent addEvent(long userId,
102         java.lang.String title, java.lang.String description,
103         int startDateMonth, int startDateDay, int startDateYear,
104         int startDateHour, int startDateMinute, int endDateMonth,
105         int endDateDay, int endDateYear, int durationHour, int durationMinute,
106         boolean allDay, boolean timeZoneSensitive, java.lang.String type,
107         boolean repeating,
108         com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
109         int firstReminder, int secondReminder,
110         com.liferay.portal.service.ServiceContext serviceContext)
111         throws com.liferay.portal.PortalException,
112             com.liferay.portal.SystemException;
113 
114     public com.liferay.portlet.calendar.model.CalEvent addEvent(
115         java.lang.String uuid, long userId, java.lang.String title,
116         java.lang.String description, int startDateMonth, int startDateDay,
117         int startDateYear, int startDateHour, int startDateMinute,
118         int endDateMonth, int endDateDay, int endDateYear, int durationHour,
119         int durationMinute, boolean allDay, boolean timeZoneSensitive,
120         java.lang.String type, boolean repeating,
121         com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
122         int firstReminder, int secondReminder,
123         com.liferay.portal.service.ServiceContext serviceContext)
124         throws com.liferay.portal.PortalException,
125             com.liferay.portal.SystemException;
126 
127     public void addEventResources(
128         com.liferay.portlet.calendar.model.CalEvent event,
129         boolean addCommunityPermissions, boolean addGuestPermissions)
130         throws com.liferay.portal.PortalException,
131             com.liferay.portal.SystemException;
132 
133     public void addEventResources(
134         com.liferay.portlet.calendar.model.CalEvent event,
135         java.lang.String[] communityPermissions,
136         java.lang.String[] guestPermissions)
137         throws com.liferay.portal.PortalException,
138             com.liferay.portal.SystemException;
139 
140     public void addEventResources(long eventId,
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 checkEvents()
152         throws com.liferay.portal.PortalException,
153             com.liferay.portal.SystemException;
154 
155     public void deleteEvent(com.liferay.portlet.calendar.model.CalEvent event)
156         throws com.liferay.portal.PortalException,
157             com.liferay.portal.SystemException;
158 
159     public void deleteEvent(long eventId)
160         throws com.liferay.portal.PortalException,
161             com.liferay.portal.SystemException;
162 
163     public void deleteEvents(long groupId)
164         throws com.liferay.portal.PortalException,
165             com.liferay.portal.SystemException;
166 
167     public java.io.File exportEvent(long userId, long eventId)
168         throws com.liferay.portal.PortalException,
169             com.liferay.portal.SystemException;
170 
171     public java.io.File exportGroupEvents(long userId, long groupId,
172         java.lang.String fileName)
173         throws com.liferay.portal.PortalException,
174             com.liferay.portal.SystemException;
175 
176     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
177     public com.liferay.portlet.calendar.model.CalEvent getEvent(long eventId)
178         throws com.liferay.portal.PortalException,
179             com.liferay.portal.SystemException;
180 
181     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
182     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
183         long groupId, java.util.Calendar cal)
184         throws com.liferay.portal.SystemException;
185 
186     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
187     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
188         long groupId, java.util.Calendar cal, java.lang.String type)
189         throws com.liferay.portal.SystemException;
190 
191     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
192     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
193         long groupId, java.lang.String type, int start, int end)
194         throws com.liferay.portal.SystemException;
195 
196     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
197     public int getEventsCount(long groupId, java.lang.String type)
198         throws com.liferay.portal.SystemException;
199 
200     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
201     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getRepeatingEvents(
202         long groupId) throws com.liferay.portal.SystemException;
203 
204     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
205     public boolean hasEvents(long groupId, java.util.Calendar cal)
206         throws com.liferay.portal.SystemException;
207 
208     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
209     public boolean hasEvents(long groupId, java.util.Calendar cal,
210         java.lang.String type) throws com.liferay.portal.SystemException;
211 
212     public void importICal4j(long userId, long groupId, java.io.File file)
213         throws com.liferay.portal.PortalException,
214             com.liferay.portal.SystemException;
215 
216     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
217     public void reIndex(com.liferay.portlet.calendar.model.CalEvent event)
218         throws com.liferay.portal.SystemException;
219 
220     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
221     public void reIndex(long eventId) throws com.liferay.portal.SystemException;
222 
223     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
224     public void reIndex(java.lang.String[] ids)
225         throws com.liferay.portal.SystemException;
226 
227     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
228     public com.liferay.portal.kernel.search.Hits search(long companyId,
229         long groupId, long userId, long ownerUserId, java.lang.String keywords,
230         int start, int end) throws com.liferay.portal.SystemException;
231 
232     public com.liferay.portlet.calendar.model.CalEvent updateEvent(
233         long userId, long eventId, java.lang.String title,
234         java.lang.String description, int startDateMonth, int startDateDay,
235         int startDateYear, int startDateHour, int startDateMinute,
236         int endDateMonth, int endDateDay, int endDateYear, int durationHour,
237         int durationMinute, boolean allDay, boolean timeZoneSensitive,
238         java.lang.String type, boolean repeating,
239         com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
240         int firstReminder, int secondReminder,
241         com.liferay.portal.service.ServiceContext serviceContext)
242         throws com.liferay.portal.PortalException,
243             com.liferay.portal.SystemException;
244 }