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      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
74      public com.liferay.portlet.calendar.model.CalEvent getCalEvent(long eventId)
75          throws com.liferay.portal.PortalException,
76              com.liferay.portal.SystemException;
77  
78      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
79      public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getCalEvents(
80          int start, int end) throws com.liferay.portal.SystemException;
81  
82      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
83      public int getCalEventsCount() throws com.liferay.portal.SystemException;
84  
85      public com.liferay.portlet.calendar.model.CalEvent updateCalEvent(
86          com.liferay.portlet.calendar.model.CalEvent calEvent)
87          throws com.liferay.portal.SystemException;
88  
89      public com.liferay.portlet.calendar.model.CalEvent updateCalEvent(
90          com.liferay.portlet.calendar.model.CalEvent calEvent, boolean merge)
91          throws com.liferay.portal.SystemException;
92  
93      public com.liferay.portlet.calendar.model.CalEvent addEvent(long userId,
94          long plid, java.lang.String title, java.lang.String description,
95          int startDateMonth, int startDateDay, int startDateYear,
96          int startDateHour, int startDateMinute, int endDateMonth,
97          int endDateDay, int endDateYear, int durationHour, int durationMinute,
98          boolean allDay, boolean timeZoneSensitive, java.lang.String type,
99          boolean repeating,
100         com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
101         int firstReminder, int secondReminder, boolean addCommunityPermissions,
102         boolean addGuestPermissions)
103         throws com.liferay.portal.PortalException,
104             com.liferay.portal.SystemException;
105 
106     public com.liferay.portlet.calendar.model.CalEvent addEvent(long userId,
107         long plid, java.lang.String title, java.lang.String description,
108         int startDateMonth, int startDateDay, int startDateYear,
109         int startDateHour, int startDateMinute, int endDateMonth,
110         int endDateDay, int endDateYear, int durationHour, int durationMinute,
111         boolean allDay, boolean timeZoneSensitive, java.lang.String type,
112         boolean repeating,
113         com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
114         int firstReminder, int secondReminder,
115         java.lang.String[] communityPermissions,
116         java.lang.String[] guestPermissions)
117         throws com.liferay.portal.PortalException,
118             com.liferay.portal.SystemException;
119 
120     public com.liferay.portlet.calendar.model.CalEvent addEvent(
121         java.lang.String uuid, long userId, long plid, java.lang.String title,
122         java.lang.String description, int startDateMonth, int startDateDay,
123         int startDateYear, int startDateHour, int startDateMinute,
124         int endDateMonth, int endDateDay, int endDateYear, int durationHour,
125         int durationMinute, boolean allDay, boolean timeZoneSensitive,
126         java.lang.String type, boolean repeating,
127         com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
128         int firstReminder, int secondReminder, boolean addCommunityPermissions,
129         boolean addGuestPermissions)
130         throws com.liferay.portal.PortalException,
131             com.liferay.portal.SystemException;
132 
133     public com.liferay.portlet.calendar.model.CalEvent addEvent(
134         java.lang.String uuid, long userId, long plid, java.lang.String title,
135         java.lang.String description, int startDateMonth, int startDateDay,
136         int startDateYear, int startDateHour, int startDateMinute,
137         int endDateMonth, int endDateDay, int endDateYear, int durationHour,
138         int durationMinute, boolean allDay, boolean timeZoneSensitive,
139         java.lang.String type, boolean repeating,
140         com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
141         int firstReminder, int secondReminder,
142         java.lang.Boolean addCommunityPermissions,
143         java.lang.Boolean addGuestPermissions,
144         java.lang.String[] communityPermissions,
145         java.lang.String[] guestPermissions)
146         throws com.liferay.portal.PortalException,
147             com.liferay.portal.SystemException;
148 
149     public void addEventResources(
150         com.liferay.portlet.calendar.model.CalEvent event,
151         boolean addCommunityPermissions, boolean addGuestPermissions)
152         throws com.liferay.portal.PortalException,
153             com.liferay.portal.SystemException;
154 
155     public void addEventResources(
156         com.liferay.portlet.calendar.model.CalEvent event,
157         java.lang.String[] communityPermissions,
158         java.lang.String[] guestPermissions)
159         throws com.liferay.portal.PortalException,
160             com.liferay.portal.SystemException;
161 
162     public void addEventResources(long eventId,
163         boolean addCommunityPermissions, boolean addGuestPermissions)
164         throws com.liferay.portal.PortalException,
165             com.liferay.portal.SystemException;
166 
167     public void addEventResources(long eventId,
168         java.lang.String[] communityPermissions,
169         java.lang.String[] guestPermissions)
170         throws com.liferay.portal.PortalException,
171             com.liferay.portal.SystemException;
172 
173     public void checkEvents()
174         throws com.liferay.portal.PortalException,
175             com.liferay.portal.SystemException;
176 
177     public void deleteEvent(com.liferay.portlet.calendar.model.CalEvent event)
178         throws com.liferay.portal.PortalException,
179             com.liferay.portal.SystemException;
180 
181     public void deleteEvent(long eventId)
182         throws com.liferay.portal.PortalException,
183             com.liferay.portal.SystemException;
184 
185     public void deleteEvents(long groupId)
186         throws com.liferay.portal.PortalException,
187             com.liferay.portal.SystemException;
188 
189     public java.io.File exportEvent(long userId, long eventId)
190         throws com.liferay.portal.PortalException,
191             com.liferay.portal.SystemException;
192 
193     public java.io.File exportGroupEvents(long userId, long plid,
194         java.lang.String fileName)
195         throws com.liferay.portal.PortalException,
196             com.liferay.portal.SystemException;
197 
198     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
199     public com.liferay.portlet.calendar.model.CalEvent getEvent(long eventId)
200         throws com.liferay.portal.PortalException,
201             com.liferay.portal.SystemException;
202 
203     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
204     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
205         long groupId, java.util.Calendar cal)
206         throws com.liferay.portal.SystemException;
207 
208     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
209     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
210         long groupId, java.util.Calendar cal, java.lang.String type)
211         throws com.liferay.portal.SystemException;
212 
213     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
214     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
215         long groupId, java.lang.String type, int start, int end)
216         throws com.liferay.portal.SystemException;
217 
218     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
219     public int getEventsCount(long groupId, java.lang.String type)
220         throws com.liferay.portal.SystemException;
221 
222     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
223     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getRepeatingEvents(
224         long groupId) throws com.liferay.portal.SystemException;
225 
226     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
227     public boolean hasEvents(long groupId, java.util.Calendar cal)
228         throws com.liferay.portal.SystemException;
229 
230     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
231     public boolean hasEvents(long groupId, java.util.Calendar cal,
232         java.lang.String type) throws com.liferay.portal.SystemException;
233 
234     public void importICal4j(long userId, long plid, java.io.File file)
235         throws com.liferay.portal.PortalException,
236             com.liferay.portal.SystemException;
237 
238     public com.liferay.portlet.calendar.model.CalEvent updateEvent(
239         long userId, long eventId, java.lang.String title,
240         java.lang.String description, int startDateMonth, int startDateDay,
241         int startDateYear, int startDateHour, int startDateMinute,
242         int endDateMonth, int endDateDay, int endDateYear, int durationHour,
243         int durationMinute, boolean allDay, boolean timeZoneSensitive,
244         java.lang.String type, boolean repeating,
245         com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
246         int firstReminder, int secondReminder)
247         throws com.liferay.portal.PortalException,
248             com.liferay.portal.SystemException;
249 }