001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
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    /**
026     * This class is used by SOAP remote services.
027     *
028     * @author Brian Wing Shun Chan
029     * @generated
030     */
031    @ProviderType
032    public class CalEventSoap implements Serializable {
033            public static CalEventSoap toSoapModel(CalEvent model) {
034                    CalEventSoap soapModel = new CalEventSoap();
035    
036                    soapModel.setUuid(model.getUuid());
037                    soapModel.setEventId(model.getEventId());
038                    soapModel.setGroupId(model.getGroupId());
039                    soapModel.setCompanyId(model.getCompanyId());
040                    soapModel.setUserId(model.getUserId());
041                    soapModel.setUserName(model.getUserName());
042                    soapModel.setCreateDate(model.getCreateDate());
043                    soapModel.setModifiedDate(model.getModifiedDate());
044                    soapModel.setTitle(model.getTitle());
045                    soapModel.setDescription(model.getDescription());
046                    soapModel.setLocation(model.getLocation());
047                    soapModel.setStartDate(model.getStartDate());
048                    soapModel.setEndDate(model.getEndDate());
049                    soapModel.setDurationHour(model.getDurationHour());
050                    soapModel.setDurationMinute(model.getDurationMinute());
051                    soapModel.setAllDay(model.getAllDay());
052                    soapModel.setTimeZoneSensitive(model.getTimeZoneSensitive());
053                    soapModel.setType(model.getType());
054                    soapModel.setRepeating(model.getRepeating());
055                    soapModel.setRecurrence(model.getRecurrence());
056                    soapModel.setRemindBy(model.getRemindBy());
057                    soapModel.setFirstReminder(model.getFirstReminder());
058                    soapModel.setSecondReminder(model.getSecondReminder());
059    
060                    return soapModel;
061            }
062    
063            public static CalEventSoap[] toSoapModels(CalEvent[] models) {
064                    CalEventSoap[] soapModels = new CalEventSoap[models.length];
065    
066                    for (int i = 0; i < models.length; i++) {
067                            soapModels[i] = toSoapModel(models[i]);
068                    }
069    
070                    return soapModels;
071            }
072    
073            public static CalEventSoap[][] toSoapModels(CalEvent[][] models) {
074                    CalEventSoap[][] soapModels = null;
075    
076                    if (models.length > 0) {
077                            soapModels = new CalEventSoap[models.length][models[0].length];
078                    }
079                    else {
080                            soapModels = new CalEventSoap[0][0];
081                    }
082    
083                    for (int i = 0; i < models.length; i++) {
084                            soapModels[i] = toSoapModels(models[i]);
085                    }
086    
087                    return soapModels;
088            }
089    
090            public static CalEventSoap[] toSoapModels(List<CalEvent> models) {
091                    List<CalEventSoap> soapModels = new ArrayList<CalEventSoap>(models.size());
092    
093                    for (CalEvent model : models) {
094                            soapModels.add(toSoapModel(model));
095                    }
096    
097                    return soapModels.toArray(new CalEventSoap[soapModels.size()]);
098            }
099    
100            public CalEventSoap() {
101            }
102    
103            public long getPrimaryKey() {
104                    return _eventId;
105            }
106    
107            public void setPrimaryKey(long pk) {
108                    setEventId(pk);
109            }
110    
111            public String getUuid() {
112                    return _uuid;
113            }
114    
115            public void setUuid(String uuid) {
116                    _uuid = uuid;
117            }
118    
119            public long getEventId() {
120                    return _eventId;
121            }
122    
123            public void setEventId(long eventId) {
124                    _eventId = eventId;
125            }
126    
127            public long getGroupId() {
128                    return _groupId;
129            }
130    
131            public void setGroupId(long groupId) {
132                    _groupId = groupId;
133            }
134    
135            public long getCompanyId() {
136                    return _companyId;
137            }
138    
139            public void setCompanyId(long companyId) {
140                    _companyId = companyId;
141            }
142    
143            public long getUserId() {
144                    return _userId;
145            }
146    
147            public void setUserId(long userId) {
148                    _userId = userId;
149            }
150    
151            public String getUserName() {
152                    return _userName;
153            }
154    
155            public void setUserName(String userName) {
156                    _userName = userName;
157            }
158    
159            public Date getCreateDate() {
160                    return _createDate;
161            }
162    
163            public void setCreateDate(Date createDate) {
164                    _createDate = createDate;
165            }
166    
167            public Date getModifiedDate() {
168                    return _modifiedDate;
169            }
170    
171            public void setModifiedDate(Date modifiedDate) {
172                    _modifiedDate = modifiedDate;
173            }
174    
175            public String getTitle() {
176                    return _title;
177            }
178    
179            public void setTitle(String title) {
180                    _title = title;
181            }
182    
183            public String getDescription() {
184                    return _description;
185            }
186    
187            public void setDescription(String description) {
188                    _description = description;
189            }
190    
191            public String getLocation() {
192                    return _location;
193            }
194    
195            public void setLocation(String location) {
196                    _location = location;
197            }
198    
199            public Date getStartDate() {
200                    return _startDate;
201            }
202    
203            public void setStartDate(Date startDate) {
204                    _startDate = startDate;
205            }
206    
207            public Date getEndDate() {
208                    return _endDate;
209            }
210    
211            public void setEndDate(Date endDate) {
212                    _endDate = endDate;
213            }
214    
215            public int getDurationHour() {
216                    return _durationHour;
217            }
218    
219            public void setDurationHour(int durationHour) {
220                    _durationHour = durationHour;
221            }
222    
223            public int getDurationMinute() {
224                    return _durationMinute;
225            }
226    
227            public void setDurationMinute(int durationMinute) {
228                    _durationMinute = durationMinute;
229            }
230    
231            public boolean getAllDay() {
232                    return _allDay;
233            }
234    
235            public boolean isAllDay() {
236                    return _allDay;
237            }
238    
239            public void setAllDay(boolean allDay) {
240                    _allDay = allDay;
241            }
242    
243            public boolean getTimeZoneSensitive() {
244                    return _timeZoneSensitive;
245            }
246    
247            public boolean isTimeZoneSensitive() {
248                    return _timeZoneSensitive;
249            }
250    
251            public void setTimeZoneSensitive(boolean timeZoneSensitive) {
252                    _timeZoneSensitive = timeZoneSensitive;
253            }
254    
255            public String getType() {
256                    return _type;
257            }
258    
259            public void setType(String type) {
260                    _type = type;
261            }
262    
263            public boolean getRepeating() {
264                    return _repeating;
265            }
266    
267            public boolean isRepeating() {
268                    return _repeating;
269            }
270    
271            public void setRepeating(boolean repeating) {
272                    _repeating = repeating;
273            }
274    
275            public String getRecurrence() {
276                    return _recurrence;
277            }
278    
279            public void setRecurrence(String recurrence) {
280                    _recurrence = recurrence;
281            }
282    
283            public int getRemindBy() {
284                    return _remindBy;
285            }
286    
287            public void setRemindBy(int remindBy) {
288                    _remindBy = remindBy;
289            }
290    
291            public int getFirstReminder() {
292                    return _firstReminder;
293            }
294    
295            public void setFirstReminder(int firstReminder) {
296                    _firstReminder = firstReminder;
297            }
298    
299            public int getSecondReminder() {
300                    return _secondReminder;
301            }
302    
303            public void setSecondReminder(int secondReminder) {
304                    _secondReminder = secondReminder;
305            }
306    
307            private String _uuid;
308            private long _eventId;
309            private long _groupId;
310            private long _companyId;
311            private long _userId;
312            private String _userName;
313            private Date _createDate;
314            private Date _modifiedDate;
315            private String _title;
316            private String _description;
317            private String _location;
318            private Date _startDate;
319            private Date _endDate;
320            private int _durationHour;
321            private int _durationMinute;
322            private boolean _allDay;
323            private boolean _timeZoneSensitive;
324            private String _type;
325            private boolean _repeating;
326            private String _recurrence;
327            private int _remindBy;
328            private int _firstReminder;
329            private int _secondReminder;
330    }