1
19
20 package com.liferay.portlet.calendar.service;
21
22 import com.liferay.portal.PortalException;
23 import com.liferay.portal.SystemException;
24 import com.liferay.portal.kernel.annotation.Isolation;
25 import com.liferay.portal.kernel.annotation.Propagation;
26 import com.liferay.portal.kernel.annotation.Transactional;
27
28
52 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
53 PortalException.class, SystemException.class})
54 public interface CalEventService {
55 public com.liferay.portlet.calendar.model.CalEvent addEvent(
56 java.lang.String title, java.lang.String description,
57 int startDateMonth, int startDateDay, int startDateYear,
58 int startDateHour, int startDateMinute, int endDateMonth,
59 int endDateDay, int endDateYear, int durationHour, int durationMinute,
60 boolean allDay, boolean timeZoneSensitive, java.lang.String type,
61 boolean repeating,
62 com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
63 int firstReminder, int secondReminder,
64 com.liferay.portal.service.ServiceContext serviceContext)
65 throws com.liferay.portal.PortalException,
66 com.liferay.portal.SystemException;
67
68 public void deleteEvent(long eventId)
69 throws com.liferay.portal.PortalException,
70 com.liferay.portal.SystemException;
71
72 public java.io.File exportEvent(long eventId)
73 throws com.liferay.portal.PortalException,
74 com.liferay.portal.SystemException;
75
76 public java.io.File exportGroupEvents(long groupId,
77 java.lang.String fileName)
78 throws com.liferay.portal.PortalException,
79 com.liferay.portal.SystemException;
80
81 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
82 public com.liferay.portlet.calendar.model.CalEvent getEvent(long eventId)
83 throws com.liferay.portal.PortalException,
84 com.liferay.portal.SystemException;
85
86 public void importICal4j(long groupId, java.io.File file)
87 throws com.liferay.portal.PortalException,
88 com.liferay.portal.SystemException;
89
90 public com.liferay.portlet.calendar.model.CalEvent updateEvent(
91 long eventId, java.lang.String title, java.lang.String description,
92 int startDateMonth, int startDateDay, int startDateYear,
93 int startDateHour, int startDateMinute, int endDateMonth,
94 int endDateDay, int endDateYear, int durationHour, int durationMinute,
95 boolean allDay, boolean timeZoneSensitive, java.lang.String type,
96 boolean repeating,
97 com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
98 int firstReminder, int secondReminder,
99 com.liferay.portal.service.ServiceContext serviceContext)
100 throws com.liferay.portal.PortalException,
101 com.liferay.portal.SystemException;
102 }