001
014
015 package com.liferay.portlet.calendar.model;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import java.io.Serializable;
020
021 import java.util.ArrayList;
022 import java.util.Date;
023 import java.util.List;
024
025
032 @Deprecated
033 @ProviderType
034 public class CalEventSoap implements Serializable {
035 public static CalEventSoap toSoapModel(CalEvent model) {
036 CalEventSoap soapModel = new CalEventSoap();
037
038 soapModel.setUuid(model.getUuid());
039 soapModel.setEventId(model.getEventId());
040 soapModel.setGroupId(model.getGroupId());
041 soapModel.setCompanyId(model.getCompanyId());
042 soapModel.setUserId(model.getUserId());
043 soapModel.setUserName(model.getUserName());
044 soapModel.setCreateDate(model.getCreateDate());
045 soapModel.setModifiedDate(model.getModifiedDate());
046 soapModel.setTitle(model.getTitle());
047 soapModel.setDescription(model.getDescription());
048 soapModel.setLocation(model.getLocation());
049 soapModel.setStartDate(model.getStartDate());
050 soapModel.setEndDate(model.getEndDate());
051 soapModel.setDurationHour(model.getDurationHour());
052 soapModel.setDurationMinute(model.getDurationMinute());
053 soapModel.setAllDay(model.getAllDay());
054 soapModel.setTimeZoneSensitive(model.getTimeZoneSensitive());
055 soapModel.setType(model.getType());
056 soapModel.setRepeating(model.getRepeating());
057 soapModel.setRecurrence(model.getRecurrence());
058 soapModel.setRemindBy(model.getRemindBy());
059 soapModel.setFirstReminder(model.getFirstReminder());
060 soapModel.setSecondReminder(model.getSecondReminder());
061
062 return soapModel;
063 }
064
065 public static CalEventSoap[] toSoapModels(CalEvent[] models) {
066 CalEventSoap[] soapModels = new CalEventSoap[models.length];
067
068 for (int i = 0; i < models.length; i++) {
069 soapModels[i] = toSoapModel(models[i]);
070 }
071
072 return soapModels;
073 }
074
075 public static CalEventSoap[][] toSoapModels(CalEvent[][] models) {
076 CalEventSoap[][] soapModels = null;
077
078 if (models.length > 0) {
079 soapModels = new CalEventSoap[models.length][models[0].length];
080 }
081 else {
082 soapModels = new CalEventSoap[0][0];
083 }
084
085 for (int i = 0; i < models.length; i++) {
086 soapModels[i] = toSoapModels(models[i]);
087 }
088
089 return soapModels;
090 }
091
092 public static CalEventSoap[] toSoapModels(List<CalEvent> models) {
093 List<CalEventSoap> soapModels = new ArrayList<CalEventSoap>(models.size());
094
095 for (CalEvent model : models) {
096 soapModels.add(toSoapModel(model));
097 }
098
099 return soapModels.toArray(new CalEventSoap[soapModels.size()]);
100 }
101
102 public CalEventSoap() {
103 }
104
105 public long getPrimaryKey() {
106 return _eventId;
107 }
108
109 public void setPrimaryKey(long pk) {
110 setEventId(pk);
111 }
112
113 public String getUuid() {
114 return _uuid;
115 }
116
117 public void setUuid(String uuid) {
118 _uuid = uuid;
119 }
120
121 public long getEventId() {
122 return _eventId;
123 }
124
125 public void setEventId(long eventId) {
126 _eventId = eventId;
127 }
128
129 public long getGroupId() {
130 return _groupId;
131 }
132
133 public void setGroupId(long groupId) {
134 _groupId = groupId;
135 }
136
137 public long getCompanyId() {
138 return _companyId;
139 }
140
141 public void setCompanyId(long companyId) {
142 _companyId = companyId;
143 }
144
145 public long getUserId() {
146 return _userId;
147 }
148
149 public void setUserId(long userId) {
150 _userId = userId;
151 }
152
153 public String getUserName() {
154 return _userName;
155 }
156
157 public void setUserName(String userName) {
158 _userName = userName;
159 }
160
161 public Date getCreateDate() {
162 return _createDate;
163 }
164
165 public void setCreateDate(Date createDate) {
166 _createDate = createDate;
167 }
168
169 public Date getModifiedDate() {
170 return _modifiedDate;
171 }
172
173 public void setModifiedDate(Date modifiedDate) {
174 _modifiedDate = modifiedDate;
175 }
176
177 public String getTitle() {
178 return _title;
179 }
180
181 public void setTitle(String title) {
182 _title = title;
183 }
184
185 public String getDescription() {
186 return _description;
187 }
188
189 public void setDescription(String description) {
190 _description = description;
191 }
192
193 public String getLocation() {
194 return _location;
195 }
196
197 public void setLocation(String location) {
198 _location = location;
199 }
200
201 public Date getStartDate() {
202 return _startDate;
203 }
204
205 public void setStartDate(Date startDate) {
206 _startDate = startDate;
207 }
208
209 public Date getEndDate() {
210 return _endDate;
211 }
212
213 public void setEndDate(Date endDate) {
214 _endDate = endDate;
215 }
216
217 public int getDurationHour() {
218 return _durationHour;
219 }
220
221 public void setDurationHour(int durationHour) {
222 _durationHour = durationHour;
223 }
224
225 public int getDurationMinute() {
226 return _durationMinute;
227 }
228
229 public void setDurationMinute(int durationMinute) {
230 _durationMinute = durationMinute;
231 }
232
233 public boolean getAllDay() {
234 return _allDay;
235 }
236
237 public boolean isAllDay() {
238 return _allDay;
239 }
240
241 public void setAllDay(boolean allDay) {
242 _allDay = allDay;
243 }
244
245 public boolean getTimeZoneSensitive() {
246 return _timeZoneSensitive;
247 }
248
249 public boolean isTimeZoneSensitive() {
250 return _timeZoneSensitive;
251 }
252
253 public void setTimeZoneSensitive(boolean timeZoneSensitive) {
254 _timeZoneSensitive = timeZoneSensitive;
255 }
256
257 public String getType() {
258 return _type;
259 }
260
261 public void setType(String type) {
262 _type = type;
263 }
264
265 public boolean getRepeating() {
266 return _repeating;
267 }
268
269 public boolean isRepeating() {
270 return _repeating;
271 }
272
273 public void setRepeating(boolean repeating) {
274 _repeating = repeating;
275 }
276
277 public String getRecurrence() {
278 return _recurrence;
279 }
280
281 public void setRecurrence(String recurrence) {
282 _recurrence = recurrence;
283 }
284
285 public int getRemindBy() {
286 return _remindBy;
287 }
288
289 public void setRemindBy(int remindBy) {
290 _remindBy = remindBy;
291 }
292
293 public int getFirstReminder() {
294 return _firstReminder;
295 }
296
297 public void setFirstReminder(int firstReminder) {
298 _firstReminder = firstReminder;
299 }
300
301 public int getSecondReminder() {
302 return _secondReminder;
303 }
304
305 public void setSecondReminder(int secondReminder) {
306 _secondReminder = secondReminder;
307 }
308
309 private String _uuid;
310 private long _eventId;
311 private long _groupId;
312 private long _companyId;
313 private long _userId;
314 private String _userName;
315 private Date _createDate;
316 private Date _modifiedDate;
317 private String _title;
318 private String _description;
319 private String _location;
320 private Date _startDate;
321 private Date _endDate;
322 private int _durationHour;
323 private int _durationMinute;
324 private boolean _allDay;
325 private boolean _timeZoneSensitive;
326 private String _type;
327 private boolean _repeating;
328 private String _recurrence;
329 private int _remindBy;
330 private int _firstReminder;
331 private int _secondReminder;
332 }