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