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