1
22
23 package com.liferay.portlet.calendar.service.http;
24
25 import com.liferay.portal.kernel.log.Log;
26 import com.liferay.portal.kernel.log.LogFactoryUtil;
27
28 import com.liferay.portlet.calendar.service.CalEventServiceUtil;
29
30 import java.rmi.RemoteException;
31
32
83 public class CalEventServiceSoap {
84 public static com.liferay.portlet.calendar.model.CalEventSoap addEvent(
85 long plid, java.lang.String title, java.lang.String description,
86 int startDateMonth, int startDateDay, int startDateYear,
87 int startDateHour, int startDateMinute, int endDateMonth,
88 int endDateDay, int endDateYear, int durationHour, int durationMinute,
89 boolean allDay, boolean timeZoneSensitive, java.lang.String type,
90 boolean repeating,
91 com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
92 int firstReminder, int secondReminder, boolean addCommunityPermissions,
93 boolean addGuestPermissions) throws RemoteException {
94 try {
95 com.liferay.portlet.calendar.model.CalEvent returnValue = CalEventServiceUtil.addEvent(plid,
96 title, description, startDateMonth, startDateDay,
97 startDateYear, startDateHour, startDateMinute,
98 endDateMonth, endDateDay, endDateYear, durationHour,
99 durationMinute, allDay, timeZoneSensitive, type, repeating,
100 recurrence, remindBy, firstReminder, secondReminder,
101 addCommunityPermissions, addGuestPermissions);
102
103 return com.liferay.portlet.calendar.model.CalEventSoap.toSoapModel(returnValue);
104 }
105 catch (Exception e) {
106 _log.error(e, e);
107
108 throw new RemoteException(e.getMessage());
109 }
110 }
111
112 public static com.liferay.portlet.calendar.model.CalEventSoap addEvent(
113 long plid, 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 java.lang.String[] communityPermissions,
122 java.lang.String[] guestPermissions) throws RemoteException {
123 try {
124 com.liferay.portlet.calendar.model.CalEvent returnValue = CalEventServiceUtil.addEvent(plid,
125 title, description, startDateMonth, startDateDay,
126 startDateYear, startDateHour, startDateMinute,
127 endDateMonth, endDateDay, endDateYear, durationHour,
128 durationMinute, allDay, timeZoneSensitive, type, repeating,
129 recurrence, remindBy, firstReminder, secondReminder,
130 communityPermissions, guestPermissions);
131
132 return com.liferay.portlet.calendar.model.CalEventSoap.toSoapModel(returnValue);
133 }
134 catch (Exception e) {
135 _log.error(e, e);
136
137 throw new RemoteException(e.getMessage());
138 }
139 }
140
141 public static void deleteEvent(long eventId) throws RemoteException {
142 try {
143 CalEventServiceUtil.deleteEvent(eventId);
144 }
145 catch (Exception e) {
146 _log.error(e, e);
147
148 throw new RemoteException(e.getMessage());
149 }
150 }
151
152 public static com.liferay.portlet.calendar.model.CalEventSoap getEvent(
153 long eventId) throws RemoteException {
154 try {
155 com.liferay.portlet.calendar.model.CalEvent returnValue = CalEventServiceUtil.getEvent(eventId);
156
157 return com.liferay.portlet.calendar.model.CalEventSoap.toSoapModel(returnValue);
158 }
159 catch (Exception e) {
160 _log.error(e, e);
161
162 throw new RemoteException(e.getMessage());
163 }
164 }
165
166 public static com.liferay.portlet.calendar.model.CalEventSoap updateEvent(
167 long eventId, java.lang.String title, java.lang.String description,
168 int startDateMonth, int startDateDay, int startDateYear,
169 int startDateHour, int startDateMinute, int endDateMonth,
170 int endDateDay, int endDateYear, int durationHour, int durationMinute,
171 boolean allDay, boolean timeZoneSensitive, java.lang.String type,
172 boolean repeating,
173 com.liferay.portal.kernel.cal.TZSRecurrence recurrence, int remindBy,
174 int firstReminder, int secondReminder) throws RemoteException {
175 try {
176 com.liferay.portlet.calendar.model.CalEvent returnValue = CalEventServiceUtil.updateEvent(eventId,
177 title, description, startDateMonth, startDateDay,
178 startDateYear, startDateHour, startDateMinute,
179 endDateMonth, endDateDay, endDateYear, durationHour,
180 durationMinute, allDay, timeZoneSensitive, type, repeating,
181 recurrence, remindBy, firstReminder, secondReminder);
182
183 return com.liferay.portlet.calendar.model.CalEventSoap.toSoapModel(returnValue);
184 }
185 catch (Exception e) {
186 _log.error(e, e);
187
188 throw new RemoteException(e.getMessage());
189 }
190 }
191
192 private static Log _log = LogFactoryUtil.getLog(CalEventServiceSoap.class);
193 }