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