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 CalEventLocalService {
55 public com.liferay.portlet.calendar.model.CalEvent addCalEvent(
56 com.liferay.portlet.calendar.model.CalEvent calEvent)
57 throws com.liferay.portal.SystemException;
58
59 public com.liferay.portlet.calendar.model.CalEvent createCalEvent(
60 long eventId);
61
62 public void deleteCalEvent(long eventId)
63 throws com.liferay.portal.SystemException,
64 com.liferay.portal.PortalException;
65
66 public void deleteCalEvent(
67 com.liferay.portlet.calendar.model.CalEvent calEvent)
68 throws com.liferay.portal.SystemException;
69
70 public java.util.List<Object> dynamicQuery(
71 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
72 throws com.liferay.portal.SystemException;
73
74 public java.util.List<Object> dynamicQuery(
75 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
76 int end) throws com.liferay.portal.SystemException;
77
78 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
79 public com.liferay.portlet.calendar.model.CalEvent getCalEvent(long eventId)
80 throws com.liferay.portal.SystemException,
81 com.liferay.portal.PortalException;
82
83 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
84 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getCalEvents(
85 int start, int end) throws com.liferay.portal.SystemException;
86
87 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
88 public int getCalEventsCount() throws com.liferay.portal.SystemException;
89
90 public com.liferay.portlet.calendar.model.CalEvent updateCalEvent(
91 com.liferay.portlet.calendar.model.CalEvent calEvent)
92 throws com.liferay.portal.SystemException;
93
94 public com.liferay.portlet.calendar.model.CalEvent updateCalEvent(
95 com.liferay.portlet.calendar.model.CalEvent calEvent, boolean merge)
96 throws com.liferay.portal.SystemException;
97
98 public com.liferay.portlet.calendar.model.CalEvent addEvent(long userId,
99 long plid, java.lang.String title, java.lang.String description,
100 int startDateMonth, int startDateDay, int startDateYear,
101 int startDateHour, int startDateMinute, int endDateMonth,
102 int endDateDay, int endDateYear, int durationHour, int durationMinute,
103 boolean allDay, boolean timeZoneSensitive, java.lang.String type,
104 boolean repeating,
105 com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
106 int firstReminder, int secondReminder, boolean addCommunityPermissions,
107 boolean addGuestPermissions)
108 throws com.liferay.portal.PortalException,
109 com.liferay.portal.SystemException;
110
111 public com.liferay.portlet.calendar.model.CalEvent addEvent(
112 java.lang.String uuid, long userId, long plid, java.lang.String title,
113 java.lang.String description, int startDateMonth, int startDateDay,
114 int startDateYear, int startDateHour, int startDateMinute,
115 int endDateMonth, int endDateDay, int endDateYear, int durationHour,
116 int durationMinute, boolean allDay, boolean timeZoneSensitive,
117 java.lang.String type, boolean repeating,
118 com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
119 int firstReminder, int secondReminder, boolean addCommunityPermissions,
120 boolean addGuestPermissions)
121 throws com.liferay.portal.PortalException,
122 com.liferay.portal.SystemException;
123
124 public com.liferay.portlet.calendar.model.CalEvent addEvent(long userId,
125 long plid, java.lang.String title, java.lang.String description,
126 int startDateMonth, int startDateDay, int startDateYear,
127 int startDateHour, int startDateMinute, int endDateMonth,
128 int endDateDay, int endDateYear, int durationHour, int durationMinute,
129 boolean allDay, boolean timeZoneSensitive, java.lang.String type,
130 boolean repeating,
131 com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
132 int firstReminder, int secondReminder,
133 java.lang.String[] communityPermissions,
134 java.lang.String[] guestPermissions)
135 throws com.liferay.portal.PortalException,
136 com.liferay.portal.SystemException;
137
138 public com.liferay.portlet.calendar.model.CalEvent addEvent(
139 java.lang.String uuid, long userId, long plid, java.lang.String title,
140 java.lang.String description, int startDateMonth, int startDateDay,
141 int startDateYear, int startDateHour, int startDateMinute,
142 int endDateMonth, int endDateDay, int endDateYear, int durationHour,
143 int durationMinute, boolean allDay, boolean timeZoneSensitive,
144 java.lang.String type, boolean repeating,
145 com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
146 int firstReminder, int secondReminder,
147 java.lang.Boolean addCommunityPermissions,
148 java.lang.Boolean addGuestPermissions,
149 java.lang.String[] communityPermissions,
150 java.lang.String[] guestPermissions)
151 throws com.liferay.portal.PortalException,
152 com.liferay.portal.SystemException;
153
154 public void addEventResources(long eventId,
155 boolean addCommunityPermissions, boolean addGuestPermissions)
156 throws com.liferay.portal.PortalException,
157 com.liferay.portal.SystemException;
158
159 public void addEventResources(
160 com.liferay.portlet.calendar.model.CalEvent event,
161 boolean addCommunityPermissions, boolean addGuestPermissions)
162 throws com.liferay.portal.PortalException,
163 com.liferay.portal.SystemException;
164
165 public void addEventResources(long eventId,
166 java.lang.String[] communityPermissions,
167 java.lang.String[] guestPermissions)
168 throws com.liferay.portal.PortalException,
169 com.liferay.portal.SystemException;
170
171 public void addEventResources(
172 com.liferay.portlet.calendar.model.CalEvent event,
173 java.lang.String[] communityPermissions,
174 java.lang.String[] guestPermissions)
175 throws com.liferay.portal.PortalException,
176 com.liferay.portal.SystemException;
177
178 public void checkEvents()
179 throws com.liferay.portal.PortalException,
180 com.liferay.portal.SystemException;
181
182 public void deleteEvent(long eventId)
183 throws com.liferay.portal.PortalException,
184 com.liferay.portal.SystemException;
185
186 public void deleteEvent(com.liferay.portlet.calendar.model.CalEvent event)
187 throws com.liferay.portal.PortalException,
188 com.liferay.portal.SystemException;
189
190 public void deleteEvents(long groupId)
191 throws com.liferay.portal.PortalException,
192 com.liferay.portal.SystemException;
193
194 public java.io.File exportEvent(long userId, long eventId)
195 throws com.liferay.portal.PortalException,
196 com.liferay.portal.SystemException;
197
198 public java.io.File exportGroupEvents(long userId, long plid,
199 java.lang.String fileName)
200 throws com.liferay.portal.PortalException,
201 com.liferay.portal.SystemException;
202
203 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
204 public com.liferay.portlet.calendar.model.CalEvent getEvent(long eventId)
205 throws com.liferay.portal.PortalException,
206 com.liferay.portal.SystemException;
207
208 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
209 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
210 long groupId, java.lang.String type, int start, int end)
211 throws com.liferay.portal.SystemException;
212
213 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
214 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
215 long groupId, java.util.Calendar cal)
216 throws com.liferay.portal.SystemException;
217
218 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
219 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getEvents(
220 long groupId, java.util.Calendar cal, java.lang.String type)
221 throws com.liferay.portal.SystemException;
222
223 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
224 public int getEventsCount(long groupId, java.lang.String type)
225 throws com.liferay.portal.SystemException;
226
227 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
228 public java.util.List<com.liferay.portlet.calendar.model.CalEvent> getRepeatingEvents(
229 long groupId) throws com.liferay.portal.SystemException;
230
231 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
232 public boolean hasEvents(long groupId, java.util.Calendar cal)
233 throws com.liferay.portal.SystemException;
234
235 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
236 public boolean hasEvents(long groupId, java.util.Calendar cal,
237 java.lang.String type) throws com.liferay.portal.SystemException;
238
239 public void importICal4j(long userId, long plid, java.io.File file)
240 throws com.liferay.portal.PortalException,
241 com.liferay.portal.SystemException;
242
243 public com.liferay.portlet.calendar.model.CalEvent updateEvent(
244 long userId, long eventId, java.lang.String title,
245 java.lang.String description, int startDateMonth, int startDateDay,
246 int startDateYear, int startDateHour, int startDateMinute,
247 int endDateMonth, int endDateDay, int endDateYear, int durationHour,
248 int durationMinute, boolean allDay, boolean timeZoneSensitive,
249 java.lang.String type, boolean repeating,
250 com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
251 int firstReminder, int secondReminder)
252 throws com.liferay.portal.PortalException,
253 com.liferay.portal.SystemException;
254 }