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(long plid,
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, boolean addCommunityPermissions,
64 boolean addGuestPermissions)
65 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
66 com.liferay.portal.SystemException;
67
68 public com.liferay.portlet.calendar.model.CalEvent addEvent(long plid,
69 java.lang.String title, java.lang.String description,
70 int startDateMonth, int startDateDay, int startDateYear,
71 int startDateHour, int startDateMinute, int endDateMonth,
72 int endDateDay, int endDateYear, int durationHour, int durationMinute,
73 boolean allDay, boolean timeZoneSensitive, java.lang.String type,
74 boolean repeating,
75 com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
76 int firstReminder, int secondReminder,
77 java.lang.String[] communityPermissions,
78 java.lang.String[] guestPermissions)
79 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
80 com.liferay.portal.SystemException;
81
82 public void deleteEvent(long eventId)
83 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
84 com.liferay.portal.SystemException;
85
86 public java.io.File exportEvent(long eventId)
87 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
88 com.liferay.portal.SystemException;
89
90 public java.io.File exportGroupEvents(long plid, java.lang.String fileName)
91 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
92 com.liferay.portal.SystemException;
93
94 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
95 public com.liferay.portlet.calendar.model.CalEvent getEvent(long eventId)
96 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
97 com.liferay.portal.SystemException;
98
99 public void importICal4j(long plid, java.io.File file)
100 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
101 com.liferay.portal.SystemException;
102
103 public com.liferay.portlet.calendar.model.CalEvent updateEvent(
104 long eventId, java.lang.String title, java.lang.String description,
105 int startDateMonth, int startDateDay, int startDateYear,
106 int startDateHour, int startDateMinute, int endDateMonth,
107 int endDateDay, int endDateYear, int durationHour, int durationMinute,
108 boolean allDay, boolean timeZoneSensitive, java.lang.String type,
109 boolean repeating,
110 com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
111 int firstReminder, int secondReminder)
112 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
113 com.liferay.portal.SystemException;
114 }