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