1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.calendar.service;
16  
17  import com.liferay.portal.kernel.annotation.Isolation;
18  import com.liferay.portal.kernel.annotation.Propagation;
19  import com.liferay.portal.kernel.annotation.Transactional;
20  import com.liferay.portal.kernel.exception.PortalException;
21  import com.liferay.portal.kernel.exception.SystemException;
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.kernel.exception.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.kernel.exception.PortalException,
59              com.liferay.portal.kernel.exception.SystemException;
60  
61      public void deleteCalEvent(
62          com.liferay.portlet.calendar.model.CalEvent calEvent)
63          throws com.liferay.portal.kernel.exception.SystemException;
64  
65      @SuppressWarnings("unchecked")
66      public java.util.List dynamicQuery(
67          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68          throws com.liferay.portal.kernel.exception.SystemException;
69  
70      @SuppressWarnings("unchecked")
71      public java.util.List dynamicQuery(
72          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73          int end) throws com.liferay.portal.kernel.exception.SystemException;
74  
75      @SuppressWarnings("unchecked")
76      public java.util.List dynamicQuery(
77          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
78          int end,
79          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
80          throws com.liferay.portal.kernel.exception.SystemException;
81  
82      public long dynamicQueryCount(
83          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
84          throws com.liferay.portal.kernel.exception.SystemException;
85  
86      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87      public com.liferay.portlet.calendar.model.CalEvent getCalEvent(long eventId)
88          throws com.liferay.portal.kernel.exception.PortalException,
89              com.liferay.portal.kernel.exception.SystemException;
90  
91      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
92      public com.liferay.portlet.calendar.model.CalEvent getCalEventByUuidAndGroupId(
93          java.lang.String uuid, long groupId)
94          throws com.liferay.portal.kernel.exception.PortalException,
95              com.liferay.portal.kernel.exception.SystemException;
96  
97      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
98      public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getCalEvents(
99          int start, int end)
100         throws com.liferay.portal.kernel.exception.SystemException;
101 
102     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
103     public int getCalEventsCount()
104         throws com.liferay.portal.kernel.exception.SystemException;
105 
106     public com.liferay.portlet.calendar.model.CalEvent updateCalEvent(
107         com.liferay.portlet.calendar.model.CalEvent calEvent)
108         throws com.liferay.portal.kernel.exception.SystemException;
109 
110     public com.liferay.portlet.calendar.model.CalEvent updateCalEvent(
111         com.liferay.portlet.calendar.model.CalEvent calEvent, boolean merge)
112         throws com.liferay.portal.kernel.exception.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.kernel.exception.PortalException,
125             com.liferay.portal.kernel.exception.SystemException;
126 
127     public void addEventResources(
128         com.liferay.portlet.calendar.model.CalEvent event,
129         boolean addCommunityPermissions, boolean addGuestPermissions)
130         throws com.liferay.portal.kernel.exception.PortalException,
131             com.liferay.portal.kernel.exception.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.kernel.exception.PortalException,
138             com.liferay.portal.kernel.exception.SystemException;
139 
140     public void addEventResources(long eventId,
141         boolean addCommunityPermissions, boolean addGuestPermissions)
142         throws com.liferay.portal.kernel.exception.PortalException,
143             com.liferay.portal.kernel.exception.SystemException;
144 
145     public void addEventResources(long eventId,
146         java.lang.String[] communityPermissions,
147         java.lang.String[] guestPermissions)
148         throws com.liferay.portal.kernel.exception.PortalException,
149             com.liferay.portal.kernel.exception.SystemException;
150 
151     public void checkEvents()
152         throws com.liferay.portal.kernel.exception.PortalException,
153             com.liferay.portal.kernel.exception.SystemException;
154 
155     public void deleteEvent(com.liferay.portlet.calendar.model.CalEvent event)
156         throws com.liferay.portal.kernel.exception.PortalException,
157             com.liferay.portal.kernel.exception.SystemException;
158 
159     public void deleteEvent(long eventId)
160         throws com.liferay.portal.kernel.exception.PortalException,
161             com.liferay.portal.kernel.exception.SystemException;
162 
163     public void deleteEvents(long groupId)
164         throws com.liferay.portal.kernel.exception.PortalException,
165             com.liferay.portal.kernel.exception.SystemException;
166 
167     public java.io.File exportEvent(long userId, long eventId)
168         throws com.liferay.portal.kernel.exception.PortalException,
169             com.liferay.portal.kernel.exception.SystemException;
170 
171     public java.io.File exportGroupEvents(long userId, long groupId,
172         java.lang.String fileName)
173         throws com.liferay.portal.kernel.exception.PortalException,
174             com.liferay.portal.kernel.exception.SystemException;
175 
176     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
177     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getCompanyEvents(
178         long companyId, int start, int end)
179         throws com.liferay.portal.kernel.exception.SystemException;
180 
181     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
182     public int getCompanyEventsCount(long companyId)
183         throws com.liferay.portal.kernel.exception.SystemException;
184 
185     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
186     public com.liferay.portlet.calendar.model.CalEvent getEvent(long eventId)
187         throws com.liferay.portal.kernel.exception.PortalException,
188             com.liferay.portal.kernel.exception.SystemException;
189 
190     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
191     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
192         long groupId, java.util.Calendar cal)
193         throws com.liferay.portal.kernel.exception.SystemException;
194 
195     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
196     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
197         long groupId, java.util.Calendar cal, java.lang.String type)
198         throws com.liferay.portal.kernel.exception.SystemException;
199 
200     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
201     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
202         long groupId, java.lang.String type, int start, int end)
203         throws com.liferay.portal.kernel.exception.SystemException;
204 
205     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
206     public int getEventsCount(long groupId, java.lang.String type)
207         throws com.liferay.portal.kernel.exception.SystemException;
208 
209     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
210     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getNoAssetEvents()
211         throws com.liferay.portal.kernel.exception.SystemException;
212 
213     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
214     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getRepeatingEvents(
215         long groupId)
216         throws com.liferay.portal.kernel.exception.SystemException;
217 
218     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
219     public boolean hasEvents(long groupId, java.util.Calendar cal)
220         throws com.liferay.portal.kernel.exception.SystemException;
221 
222     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
223     public boolean hasEvents(long groupId, java.util.Calendar cal,
224         java.lang.String type)
225         throws com.liferay.portal.kernel.exception.SystemException;
226 
227     public void importICal4j(long userId, long groupId, java.io.File file)
228         throws com.liferay.portal.kernel.exception.PortalException,
229             com.liferay.portal.kernel.exception.SystemException;
230 
231     public void updateAsset(long userId,
232         com.liferay.portlet.calendar.model.CalEvent event,
233         long[] assetCategoryIds, java.lang.String[] assetTagNames)
234         throws com.liferay.portal.kernel.exception.PortalException,
235             com.liferay.portal.kernel.exception.SystemException;
236 
237     public com.liferay.portlet.calendar.model.CalEvent updateEvent(
238         long userId, long eventId, java.lang.String title,
239         java.lang.String description, int startDateMonth, int startDateDay,
240         int startDateYear, int startDateHour, int startDateMinute,
241         int endDateMonth, int endDateDay, int endDateYear, int durationHour,
242         int durationMinute, boolean allDay, boolean timeZoneSensitive,
243         java.lang.String type, boolean repeating,
244         com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
245         int firstReminder, int secondReminder,
246         com.liferay.portal.service.ServiceContext serviceContext)
247         throws com.liferay.portal.kernel.exception.PortalException,
248             com.liferay.portal.kernel.exception.SystemException;
249 }