001
014
015 package com.liferay.portlet.calendar.service;
016
017 import com.liferay.portal.kernel.annotation.Isolation;
018 import com.liferay.portal.kernel.annotation.Propagation;
019 import com.liferay.portal.kernel.annotation.Transactional;
020 import com.liferay.portal.kernel.exception.PortalException;
021 import com.liferay.portal.kernel.exception.SystemException;
022
023
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface CalEventLocalService {
043
050 public com.liferay.portlet.calendar.model.CalEvent addCalEvent(
051 com.liferay.portlet.calendar.model.CalEvent calEvent)
052 throws com.liferay.portal.kernel.exception.SystemException;
053
054
060 public com.liferay.portlet.calendar.model.CalEvent createCalEvent(
061 long eventId);
062
063
070 public void deleteCalEvent(long eventId)
071 throws com.liferay.portal.kernel.exception.PortalException,
072 com.liferay.portal.kernel.exception.SystemException;
073
074
080 public void deleteCalEvent(
081 com.liferay.portlet.calendar.model.CalEvent calEvent)
082 throws com.liferay.portal.kernel.exception.SystemException;
083
084
091 @SuppressWarnings("rawtypes")
092 public java.util.List dynamicQuery(
093 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
094 throws com.liferay.portal.kernel.exception.SystemException;
095
096
109 @SuppressWarnings("rawtypes")
110 public java.util.List dynamicQuery(
111 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
112 int end) throws com.liferay.portal.kernel.exception.SystemException;
113
114
128 @SuppressWarnings("rawtypes")
129 public java.util.List dynamicQuery(
130 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
131 int end,
132 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
133 throws com.liferay.portal.kernel.exception.SystemException;
134
135
142 public long dynamicQueryCount(
143 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
144 throws com.liferay.portal.kernel.exception.SystemException;
145
146
154 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
155 public com.liferay.portlet.calendar.model.CalEvent getCalEvent(long eventId)
156 throws com.liferay.portal.kernel.exception.PortalException,
157 com.liferay.portal.kernel.exception.SystemException;
158
159
168 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
169 public com.liferay.portlet.calendar.model.CalEvent getCalEventByUuidAndGroupId(
170 java.lang.String uuid, long groupId)
171 throws com.liferay.portal.kernel.exception.PortalException,
172 com.liferay.portal.kernel.exception.SystemException;
173
174
186 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
187 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getCalEvents(
188 int start, int end)
189 throws com.liferay.portal.kernel.exception.SystemException;
190
191
197 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
198 public int getCalEventsCount()
199 throws com.liferay.portal.kernel.exception.SystemException;
200
201
208 public com.liferay.portlet.calendar.model.CalEvent updateCalEvent(
209 com.liferay.portlet.calendar.model.CalEvent calEvent)
210 throws com.liferay.portal.kernel.exception.SystemException;
211
212
220 public com.liferay.portlet.calendar.model.CalEvent updateCalEvent(
221 com.liferay.portlet.calendar.model.CalEvent calEvent, boolean merge)
222 throws com.liferay.portal.kernel.exception.SystemException;
223
224 public com.liferay.portlet.calendar.model.CalEvent addEvent(long userId,
225 java.lang.String title, java.lang.String description,
226 int startDateMonth, int startDateDay, int startDateYear,
227 int startDateHour, int startDateMinute, int endDateMonth,
228 int endDateDay, int endDateYear, int durationHour, int durationMinute,
229 boolean allDay, boolean timeZoneSensitive, java.lang.String type,
230 boolean repeating,
231 com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
232 int firstReminder, int secondReminder,
233 com.liferay.portal.service.ServiceContext serviceContext)
234 throws com.liferay.portal.kernel.exception.PortalException,
235 com.liferay.portal.kernel.exception.SystemException;
236
237 public void addEventResources(
238 com.liferay.portlet.calendar.model.CalEvent event,
239 boolean addCommunityPermissions, boolean addGuestPermissions)
240 throws com.liferay.portal.kernel.exception.PortalException,
241 com.liferay.portal.kernel.exception.SystemException;
242
243 public void addEventResources(
244 com.liferay.portlet.calendar.model.CalEvent event,
245 java.lang.String[] communityPermissions,
246 java.lang.String[] guestPermissions)
247 throws com.liferay.portal.kernel.exception.PortalException,
248 com.liferay.portal.kernel.exception.SystemException;
249
250 public void addEventResources(long eventId,
251 boolean addCommunityPermissions, boolean addGuestPermissions)
252 throws com.liferay.portal.kernel.exception.PortalException,
253 com.liferay.portal.kernel.exception.SystemException;
254
255 public void addEventResources(long eventId,
256 java.lang.String[] communityPermissions,
257 java.lang.String[] guestPermissions)
258 throws com.liferay.portal.kernel.exception.PortalException,
259 com.liferay.portal.kernel.exception.SystemException;
260
261 public void checkEvents()
262 throws com.liferay.portal.kernel.exception.PortalException,
263 com.liferay.portal.kernel.exception.SystemException;
264
265 public void deleteEvent(com.liferay.portlet.calendar.model.CalEvent event)
266 throws com.liferay.portal.kernel.exception.PortalException,
267 com.liferay.portal.kernel.exception.SystemException;
268
269 public void deleteEvent(long eventId)
270 throws com.liferay.portal.kernel.exception.PortalException,
271 com.liferay.portal.kernel.exception.SystemException;
272
273 public void deleteEvents(long groupId)
274 throws com.liferay.portal.kernel.exception.PortalException,
275 com.liferay.portal.kernel.exception.SystemException;
276
277 public java.io.File exportEvent(long userId, long eventId)
278 throws com.liferay.portal.kernel.exception.PortalException,
279 com.liferay.portal.kernel.exception.SystemException;
280
281 public java.io.File exportGroupEvents(long userId, long groupId,
282 java.lang.String fileName)
283 throws com.liferay.portal.kernel.exception.PortalException,
284 com.liferay.portal.kernel.exception.SystemException;
285
286 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
287 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getCompanyEvents(
288 long companyId, int start, int end)
289 throws com.liferay.portal.kernel.exception.SystemException;
290
291 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
292 public int getCompanyEventsCount(long companyId)
293 throws com.liferay.portal.kernel.exception.SystemException;
294
295 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
296 public com.liferay.portlet.calendar.model.CalEvent getEvent(long eventId)
297 throws com.liferay.portal.kernel.exception.PortalException,
298 com.liferay.portal.kernel.exception.SystemException;
299
300 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
301 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
302 long groupId, java.util.Calendar cal)
303 throws com.liferay.portal.kernel.exception.SystemException;
304
305 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
306 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
307 long groupId, java.util.Calendar cal, java.lang.String type)
308 throws com.liferay.portal.kernel.exception.SystemException;
309
310 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
311 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
312 long groupId, java.lang.String type, int start, int end)
313 throws com.liferay.portal.kernel.exception.SystemException;
314
315 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
316 public int getEventsCount(long groupId, java.lang.String type)
317 throws com.liferay.portal.kernel.exception.SystemException;
318
319 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
320 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getNoAssetEvents()
321 throws com.liferay.portal.kernel.exception.SystemException;
322
323 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
324 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getRepeatingEvents(
325 long groupId)
326 throws com.liferay.portal.kernel.exception.SystemException;
327
328 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
329 public boolean hasEvents(long groupId, java.util.Calendar cal)
330 throws com.liferay.portal.kernel.exception.SystemException;
331
332 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
333 public boolean hasEvents(long groupId, java.util.Calendar cal,
334 java.lang.String type)
335 throws com.liferay.portal.kernel.exception.SystemException;
336
337 public void importICal4j(long userId, long groupId, java.io.File file)
338 throws com.liferay.portal.kernel.exception.PortalException,
339 com.liferay.portal.kernel.exception.SystemException;
340
341 public void updateAsset(long userId,
342 com.liferay.portlet.calendar.model.CalEvent event,
343 long[] assetCategoryIds, java.lang.String[] assetTagNames)
344 throws com.liferay.portal.kernel.exception.PortalException,
345 com.liferay.portal.kernel.exception.SystemException;
346
347 public com.liferay.portlet.calendar.model.CalEvent updateEvent(
348 long userId, long eventId, java.lang.String title,
349 java.lang.String description, int startDateMonth, int startDateDay,
350 int startDateYear, int startDateHour, int startDateMinute,
351 int endDateMonth, int endDateDay, int endDateYear, int durationHour,
352 int durationMinute, boolean allDay, boolean timeZoneSensitive,
353 java.lang.String type, boolean repeating,
354 com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
355 int firstReminder, int secondReminder,
356 com.liferay.portal.service.ServiceContext serviceContext)
357 throws com.liferay.portal.kernel.exception.PortalException,
358 com.liferay.portal.kernel.exception.SystemException;
359 }