001    /**
002     * Copyright (c) 2000-2010 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 java.io.Serializable;
018    
019    import java.util.ArrayList;
020    import java.util.Date;
021    import java.util.List;
022    
023    /**
024     * <p>
025     * This class is used by
026     * {@link com.liferay.portlet.calendar.service.http.CalEventServiceSoap}.
027     * </p>
028     *
029     * @author    Brian Wing Shun Chan
030     * @see       com.liferay.portlet.calendar.service.http.CalEventServiceSoap
031     * @generated
032     */
033    public class CalEventSoap implements Serializable {
034            public static CalEventSoap toSoapModel(CalEvent model) {
035                    CalEventSoap soapModel = new CalEventSoap();
036    
037                    soapModel.setUuid(model.getUuid());
038                    soapModel.setEventId(model.getEventId());
039                    soapModel.setGroupId(model.getGroupId());
040                    soapModel.setCompanyId(model.getCompanyId());
041                    soapModel.setUserId(model.getUserId());
042                    soapModel.setUserName(model.getUserName());
043                    soapModel.setCreateDate(model.getCreateDate());
044                    soapModel.setModifiedDate(model.getModifiedDate());
045                    soapModel.setTitle(model.getTitle());
046                    soapModel.setDescription(model.getDescription());
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 Date getStartDate() {
192                    return _startDate;
193            }
194    
195            public void setStartDate(Date startDate) {
196                    _startDate = startDate;
197            }
198    
199            public Date getEndDate() {
200                    return _endDate;
201            }
202    
203            public void setEndDate(Date endDate) {
204                    _endDate = endDate;
205            }
206    
207            public int getDurationHour() {
208                    return _durationHour;
209            }
210    
211            public void setDurationHour(int durationHour) {
212                    _durationHour = durationHour;
213            }
214    
215            public int getDurationMinute() {
216                    return _durationMinute;
217            }
218    
219            public void setDurationMinute(int durationMinute) {
220                    _durationMinute = durationMinute;
221            }
222    
223            public boolean getAllDay() {
224                    return _allDay;
225            }
226    
227            public boolean isAllDay() {
228                    return _allDay;
229            }
230    
231            public void setAllDay(boolean allDay) {
232                    _allDay = allDay;
233            }
234    
235            public boolean getTimeZoneSensitive() {
236                    return _timeZoneSensitive;
237            }
238    
239            public boolean isTimeZoneSensitive() {
240                    return _timeZoneSensitive;
241            }
242    
243            public void setTimeZoneSensitive(boolean timeZoneSensitive) {
244                    _timeZoneSensitive = timeZoneSensitive;
245            }
246    
247            public String getType() {
248                    return _type;
249            }
250    
251            public void setType(String type) {
252                    _type = type;
253            }
254    
255            public boolean getRepeating() {
256                    return _repeating;
257            }
258    
259            public boolean isRepeating() {
260                    return _repeating;
261            }
262    
263            public void setRepeating(boolean repeating) {
264                    _repeating = repeating;
265            }
266    
267            public String getRecurrence() {
268                    return _recurrence;
269            }
270    
271            public void setRecurrence(String recurrence) {
272                    _recurrence = recurrence;
273            }
274    
275            public int getRemindBy() {
276                    return _remindBy;
277            }
278    
279            public void setRemindBy(int remindBy) {
280                    _remindBy = remindBy;
281            }
282    
283            public int getFirstReminder() {
284                    return _firstReminder;
285            }
286    
287            public void setFirstReminder(int firstReminder) {
288                    _firstReminder = firstReminder;
289            }
290    
291            public int getSecondReminder() {
292                    return _secondReminder;
293            }
294    
295            public void setSecondReminder(int secondReminder) {
296                    _secondReminder = secondReminder;
297            }
298    
299            private String _uuid;
300            private long _eventId;
301            private long _groupId;
302            private long _companyId;
303            private long _userId;
304            private String _userName;
305            private Date _createDate;
306            private Date _modifiedDate;
307            private String _title;
308            private String _description;
309            private Date _startDate;
310            private Date _endDate;
311            private int _durationHour;
312            private int _durationMinute;
313            private boolean _allDay;
314            private boolean _timeZoneSensitive;
315            private String _type;
316            private boolean _repeating;
317            private String _recurrence;
318            private int _remindBy;
319            private int _firstReminder;
320            private int _secondReminder;
321    }