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