001
014
015 package com.liferay.portlet.calendar.service.http;
016
017 import com.liferay.portal.kernel.log.Log;
018 import com.liferay.portal.kernel.log.LogFactoryUtil;
019
020 import com.liferay.portlet.calendar.service.CalEventServiceUtil;
021
022 import java.rmi.RemoteException;
023
024
066 public class CalEventServiceSoap {
067 public static com.liferay.portlet.calendar.model.CalEventSoap addEvent(
068 java.lang.String title, java.lang.String description,
069 java.lang.String location, int startDateMonth, int startDateDay,
070 int startDateYear, int startDateHour, int startDateMinute,
071 int durationHour, int durationMinute, boolean allDay,
072 boolean timeZoneSensitive, java.lang.String type, boolean repeating,
073 com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
074 int firstReminder, int secondReminder,
075 com.liferay.portal.service.ServiceContext serviceContext)
076 throws RemoteException {
077 try {
078 com.liferay.portlet.calendar.model.CalEvent returnValue = CalEventServiceUtil.addEvent(title,
079 description, location, startDateMonth, startDateDay,
080 startDateYear, startDateHour, startDateMinute,
081 durationHour, durationMinute, allDay, timeZoneSensitive,
082 type, repeating, recurrence, remindBy, firstReminder,
083 secondReminder, serviceContext);
084
085 return com.liferay.portlet.calendar.model.CalEventSoap.toSoapModel(returnValue);
086 }
087 catch (Exception e) {
088 _log.error(e, e);
089
090 throw new RemoteException(e.getMessage());
091 }
092 }
093
094
099 public static com.liferay.portlet.calendar.model.CalEventSoap addEvent(
100 java.lang.String title, java.lang.String description,
101 java.lang.String location, int startDateMonth, int startDateDay,
102 int startDateYear, int startDateHour, int startDateMinute,
103 int endDateMonth, int endDateDay, int endDateYear, int durationHour,
104 int durationMinute, boolean allDay, boolean timeZoneSensitive,
105 java.lang.String type, boolean repeating,
106 com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
107 int firstReminder, int secondReminder,
108 com.liferay.portal.service.ServiceContext serviceContext)
109 throws RemoteException {
110 try {
111 com.liferay.portlet.calendar.model.CalEvent returnValue = CalEventServiceUtil.addEvent(title,
112 description, location, startDateMonth, startDateDay,
113 startDateYear, startDateHour, startDateMinute,
114 endDateMonth, endDateDay, endDateYear, durationHour,
115 durationMinute, allDay, timeZoneSensitive, type, repeating,
116 recurrence, remindBy, firstReminder, secondReminder,
117 serviceContext);
118
119 return com.liferay.portlet.calendar.model.CalEventSoap.toSoapModel(returnValue);
120 }
121 catch (Exception e) {
122 _log.error(e, e);
123
124 throw new RemoteException(e.getMessage());
125 }
126 }
127
128 public static void deleteEvent(long eventId) throws RemoteException {
129 try {
130 CalEventServiceUtil.deleteEvent(eventId);
131 }
132 catch (Exception e) {
133 _log.error(e, e);
134
135 throw new RemoteException(e.getMessage());
136 }
137 }
138
139 public static com.liferay.portlet.calendar.model.CalEventSoap getEvent(
140 long eventId) throws RemoteException {
141 try {
142 com.liferay.portlet.calendar.model.CalEvent returnValue = CalEventServiceUtil.getEvent(eventId);
143
144 return com.liferay.portlet.calendar.model.CalEventSoap.toSoapModel(returnValue);
145 }
146 catch (Exception e) {
147 _log.error(e, e);
148
149 throw new RemoteException(e.getMessage());
150 }
151 }
152
153 public static com.liferay.portlet.calendar.model.CalEventSoap[] getEvents(
154 long groupId, java.util.Calendar cal, java.lang.String type)
155 throws RemoteException {
156 try {
157 java.util.List<com.liferay.portlet.calendar.model.CalEvent> returnValue =
158 CalEventServiceUtil.getEvents(groupId, cal, type);
159
160 return com.liferay.portlet.calendar.model.CalEventSoap.toSoapModels(returnValue);
161 }
162 catch (Exception e) {
163 _log.error(e, e);
164
165 throw new RemoteException(e.getMessage());
166 }
167 }
168
169 public static com.liferay.portlet.calendar.model.CalEventSoap[] getEvents(
170 long groupId, java.util.Calendar cal, java.lang.String[] types)
171 throws RemoteException {
172 try {
173 java.util.List<com.liferay.portlet.calendar.model.CalEvent> returnValue =
174 CalEventServiceUtil.getEvents(groupId, cal, types);
175
176 return com.liferay.portlet.calendar.model.CalEventSoap.toSoapModels(returnValue);
177 }
178 catch (Exception e) {
179 _log.error(e, e);
180
181 throw new RemoteException(e.getMessage());
182 }
183 }
184
185 public static com.liferay.portlet.calendar.model.CalEventSoap[] getEvents(
186 long groupId, java.lang.String type, int start, int end)
187 throws RemoteException {
188 try {
189 java.util.List<com.liferay.portlet.calendar.model.CalEvent> returnValue =
190 CalEventServiceUtil.getEvents(groupId, type, start, end);
191
192 return com.liferay.portlet.calendar.model.CalEventSoap.toSoapModels(returnValue);
193 }
194 catch (Exception e) {
195 _log.error(e, e);
196
197 throw new RemoteException(e.getMessage());
198 }
199 }
200
201 public static com.liferay.portlet.calendar.model.CalEventSoap[] getEvents(
202 long groupId, java.lang.String[] types, int start, int end)
203 throws RemoteException {
204 try {
205 java.util.List<com.liferay.portlet.calendar.model.CalEvent> returnValue =
206 CalEventServiceUtil.getEvents(groupId, types, start, end);
207
208 return com.liferay.portlet.calendar.model.CalEventSoap.toSoapModels(returnValue);
209 }
210 catch (Exception e) {
211 _log.error(e, e);
212
213 throw new RemoteException(e.getMessage());
214 }
215 }
216
217 public static int getEventsCount(long groupId, java.lang.String type)
218 throws RemoteException {
219 try {
220 int returnValue = CalEventServiceUtil.getEventsCount(groupId, type);
221
222 return returnValue;
223 }
224 catch (Exception e) {
225 _log.error(e, e);
226
227 throw new RemoteException(e.getMessage());
228 }
229 }
230
231 public static int getEventsCount(long groupId, java.lang.String[] types)
232 throws RemoteException {
233 try {
234 int returnValue = CalEventServiceUtil.getEventsCount(groupId, types);
235
236 return returnValue;
237 }
238 catch (Exception e) {
239 _log.error(e, e);
240
241 throw new RemoteException(e.getMessage());
242 }
243 }
244
245 public static boolean hasEvents(long groupId, java.util.Calendar cal)
246 throws RemoteException {
247 try {
248 boolean returnValue = CalEventServiceUtil.hasEvents(groupId, cal);
249
250 return returnValue;
251 }
252 catch (Exception e) {
253 _log.error(e, e);
254
255 throw new RemoteException(e.getMessage());
256 }
257 }
258
259 public static boolean hasEvents(long groupId, java.util.Calendar cal,
260 java.lang.String type) throws RemoteException {
261 try {
262 boolean returnValue = CalEventServiceUtil.hasEvents(groupId, cal,
263 type);
264
265 return returnValue;
266 }
267 catch (Exception e) {
268 _log.error(e, e);
269
270 throw new RemoteException(e.getMessage());
271 }
272 }
273
274 public static boolean hasEvents(long groupId, java.util.Calendar cal,
275 java.lang.String[] types) throws RemoteException {
276 try {
277 boolean returnValue = CalEventServiceUtil.hasEvents(groupId, cal,
278 types);
279
280 return returnValue;
281 }
282 catch (Exception e) {
283 _log.error(e, e);
284
285 throw new RemoteException(e.getMessage());
286 }
287 }
288
289 public static com.liferay.portlet.calendar.model.CalEventSoap updateEvent(
290 long eventId, java.lang.String title, java.lang.String description,
291 java.lang.String location, int startDateMonth, int startDateDay,
292 int startDateYear, int startDateHour, int startDateMinute,
293 int durationHour, int durationMinute, boolean allDay,
294 boolean timeZoneSensitive, java.lang.String type, boolean repeating,
295 com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
296 int firstReminder, int secondReminder,
297 com.liferay.portal.service.ServiceContext serviceContext)
298 throws RemoteException {
299 try {
300 com.liferay.portlet.calendar.model.CalEvent returnValue = CalEventServiceUtil.updateEvent(eventId,
301 title, description, location, startDateMonth, startDateDay,
302 startDateYear, startDateHour, startDateMinute,
303 durationHour, durationMinute, allDay, timeZoneSensitive,
304 type, repeating, recurrence, remindBy, firstReminder,
305 secondReminder, serviceContext);
306
307 return com.liferay.portlet.calendar.model.CalEventSoap.toSoapModel(returnValue);
308 }
309 catch (Exception e) {
310 _log.error(e, e);
311
312 throw new RemoteException(e.getMessage());
313 }
314 }
315
316
321 public static com.liferay.portlet.calendar.model.CalEventSoap updateEvent(
322 long eventId, java.lang.String title, java.lang.String description,
323 java.lang.String location, int startDateMonth, int startDateDay,
324 int startDateYear, int startDateHour, int startDateMinute,
325 int endDateMonth, int endDateDay, int endDateYear, int durationHour,
326 int durationMinute, boolean allDay, boolean timeZoneSensitive,
327 java.lang.String type, boolean repeating,
328 com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
329 int firstReminder, int secondReminder,
330 com.liferay.portal.service.ServiceContext serviceContext)
331 throws RemoteException {
332 try {
333 com.liferay.portlet.calendar.model.CalEvent returnValue = CalEventServiceUtil.updateEvent(eventId,
334 title, description, location, startDateMonth, startDateDay,
335 startDateYear, startDateHour, startDateMinute,
336 endDateMonth, endDateDay, endDateYear, durationHour,
337 durationMinute, allDay, timeZoneSensitive, type, repeating,
338 recurrence, remindBy, firstReminder, secondReminder,
339 serviceContext);
340
341 return com.liferay.portlet.calendar.model.CalEventSoap.toSoapModel(returnValue);
342 }
343 catch (Exception e) {
344 _log.error(e, e);
345
346 throw new RemoteException(e.getMessage());
347 }
348 }
349
350 private static Log _log = LogFactoryUtil.getLog(CalEventServiceSoap.class);
351 }