1
19
20 package com.liferay.portlet.calendar.service.http;
21
22 import com.liferay.portal.kernel.log.Log;
23 import com.liferay.portal.kernel.log.LogFactoryUtil;
24
25 import com.liferay.portlet.calendar.service.CalEventServiceUtil;
26
27 import java.rmi.RemoteException;
28
29
80 public class CalEventServiceSoap {
81 public static com.liferay.portlet.calendar.model.CalEventSoap addEvent(
82 java.lang.String title, java.lang.String description,
83 int startDateMonth, int startDateDay, int startDateYear,
84 int startDateHour, int startDateMinute, int endDateMonth,
85 int endDateDay, int endDateYear, int durationHour, int durationMinute,
86 boolean allDay, boolean timeZoneSensitive, java.lang.String type,
87 boolean repeating,
88 com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
89 int firstReminder, int secondReminder,
90 com.liferay.portal.service.ServiceContext serviceContext)
91 throws RemoteException {
92 try {
93 com.liferay.portlet.calendar.model.CalEvent returnValue = CalEventServiceUtil.addEvent(title,
94 description, startDateMonth, startDateDay, startDateYear,
95 startDateHour, startDateMinute, endDateMonth, endDateDay,
96 endDateYear, durationHour, durationMinute, allDay,
97 timeZoneSensitive, type, repeating, recurrence, remindBy,
98 firstReminder, secondReminder, serviceContext);
99
100 return com.liferay.portlet.calendar.model.CalEventSoap.toSoapModel(returnValue);
101 }
102 catch (Exception e) {
103 _log.error(e, e);
104
105 throw new RemoteException(e.getMessage());
106 }
107 }
108
109 public static void deleteEvent(long eventId) throws RemoteException {
110 try {
111 CalEventServiceUtil.deleteEvent(eventId);
112 }
113 catch (Exception e) {
114 _log.error(e, e);
115
116 throw new RemoteException(e.getMessage());
117 }
118 }
119
120 public static com.liferay.portlet.calendar.model.CalEventSoap getEvent(
121 long eventId) throws RemoteException {
122 try {
123 com.liferay.portlet.calendar.model.CalEvent returnValue = CalEventServiceUtil.getEvent(eventId);
124
125 return com.liferay.portlet.calendar.model.CalEventSoap.toSoapModel(returnValue);
126 }
127 catch (Exception e) {
128 _log.error(e, e);
129
130 throw new RemoteException(e.getMessage());
131 }
132 }
133
134 public static com.liferay.portlet.calendar.model.CalEventSoap updateEvent(
135 long eventId, java.lang.String title, java.lang.String description,
136 int startDateMonth, int startDateDay, int startDateYear,
137 int startDateHour, int startDateMinute, int endDateMonth,
138 int endDateDay, int endDateYear, int durationHour, int durationMinute,
139 boolean allDay, boolean timeZoneSensitive, java.lang.String type,
140 boolean repeating,
141 com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
142 int firstReminder, int secondReminder,
143 com.liferay.portal.service.ServiceContext serviceContext)
144 throws RemoteException {
145 try {
146 com.liferay.portlet.calendar.model.CalEvent returnValue = CalEventServiceUtil.updateEvent(eventId,
147 title, description, startDateMonth, startDateDay,
148 startDateYear, startDateHour, startDateMinute,
149 endDateMonth, endDateDay, endDateYear, durationHour,
150 durationMinute, allDay, timeZoneSensitive, type, repeating,
151 recurrence, remindBy, firstReminder, secondReminder,
152 serviceContext);
153
154 return com.liferay.portlet.calendar.model.CalEventSoap.toSoapModel(returnValue);
155 }
156 catch (Exception e) {
157 _log.error(e, e);
158
159 throw new RemoteException(e.getMessage());
160 }
161 }
162
163 private static Log _log = LogFactoryUtil.getLog(CalEventServiceSoap.class);
164 }