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