001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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.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 Date getStartDate() {
189                    return _startDate;
190            }
191    
192            public void setStartDate(Date startDate) {
193                    _startDate = startDate;
194            }
195    
196            public Date getEndDate() {
197                    return _endDate;
198            }
199    
200            public void setEndDate(Date endDate) {
201                    _endDate = endDate;
202            }
203    
204            public int getDurationHour() {
205                    return _durationHour;
206            }
207    
208            public void setDurationHour(int durationHour) {
209                    _durationHour = durationHour;
210            }
211    
212            public int getDurationMinute() {
213                    return _durationMinute;
214            }
215    
216            public void setDurationMinute(int durationMinute) {
217                    _durationMinute = durationMinute;
218            }
219    
220            public boolean getAllDay() {
221                    return _allDay;
222            }
223    
224            public boolean isAllDay() {
225                    return _allDay;
226            }
227    
228            public void setAllDay(boolean allDay) {
229                    _allDay = allDay;
230            }
231    
232            public boolean getTimeZoneSensitive() {
233                    return _timeZoneSensitive;
234            }
235    
236            public boolean isTimeZoneSensitive() {
237                    return _timeZoneSensitive;
238            }
239    
240            public void setTimeZoneSensitive(boolean timeZoneSensitive) {
241                    _timeZoneSensitive = timeZoneSensitive;
242            }
243    
244            public String getType() {
245                    return _type;
246            }
247    
248            public void setType(String type) {
249                    _type = type;
250            }
251    
252            public boolean getRepeating() {
253                    return _repeating;
254            }
255    
256            public boolean isRepeating() {
257                    return _repeating;
258            }
259    
260            public void setRepeating(boolean repeating) {
261                    _repeating = repeating;
262            }
263    
264            public String getRecurrence() {
265                    return _recurrence;
266            }
267    
268            public void setRecurrence(String recurrence) {
269                    _recurrence = recurrence;
270            }
271    
272            public int getRemindBy() {
273                    return _remindBy;
274            }
275    
276            public void setRemindBy(int remindBy) {
277                    _remindBy = remindBy;
278            }
279    
280            public int getFirstReminder() {
281                    return _firstReminder;
282            }
283    
284            public void setFirstReminder(int firstReminder) {
285                    _firstReminder = firstReminder;
286            }
287    
288            public int getSecondReminder() {
289                    return _secondReminder;
290            }
291    
292            public void setSecondReminder(int secondReminder) {
293                    _secondReminder = secondReminder;
294            }
295    
296            private String _uuid;
297            private long _eventId;
298            private long _groupId;
299            private long _companyId;
300            private long _userId;
301            private String _userName;
302            private Date _createDate;
303            private Date _modifiedDate;
304            private String _title;
305            private String _description;
306            private Date _startDate;
307            private Date _endDate;
308            private int _durationHour;
309            private int _durationMinute;
310            private boolean _allDay;
311            private boolean _timeZoneSensitive;
312            private String _type;
313            private boolean _repeating;
314            private String _recurrence;
315            private int _remindBy;
316            private int _firstReminder;
317            private int _secondReminder;
318    }