1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.calendar.model;
16  
17  import java.io.Serializable;
18  
19  import java.util.ArrayList;
20  import java.util.Date;
21  import java.util.List;
22  
23  /**
24   * <a href="CalEventSoap.java.html"><b><i>View Source</i></b></a>
25   *
26   * <p>
27   * ServiceBuilder generated this class. Modifications in this class will be
28   * overwritten the next time is generated.
29   * </p>
30   *
31   * <p>
32   * This class is used by
33   * {@link com.liferay.portlet.calendar.service.http.CalEventServiceSoap}.
34   * </p>
35   *
36   * @author    Brian Wing Shun Chan
37   * @see       com.liferay.portlet.calendar.service.http.CalEventServiceSoap
38   * @generated
39   */
40  public class CalEventSoap implements Serializable {
41      public static CalEventSoap toSoapModel(CalEvent model) {
42          CalEventSoap soapModel = new CalEventSoap();
43  
44          soapModel.setUuid(model.getUuid());
45          soapModel.setEventId(model.getEventId());
46          soapModel.setGroupId(model.getGroupId());
47          soapModel.setCompanyId(model.getCompanyId());
48          soapModel.setUserId(model.getUserId());
49          soapModel.setUserName(model.getUserName());
50          soapModel.setCreateDate(model.getCreateDate());
51          soapModel.setModifiedDate(model.getModifiedDate());
52          soapModel.setTitle(model.getTitle());
53          soapModel.setDescription(model.getDescription());
54          soapModel.setStartDate(model.getStartDate());
55          soapModel.setEndDate(model.getEndDate());
56          soapModel.setDurationHour(model.getDurationHour());
57          soapModel.setDurationMinute(model.getDurationMinute());
58          soapModel.setAllDay(model.getAllDay());
59          soapModel.setTimeZoneSensitive(model.getTimeZoneSensitive());
60          soapModel.setType(model.getType());
61          soapModel.setRepeating(model.getRepeating());
62          soapModel.setRecurrence(model.getRecurrence());
63          soapModel.setRemindBy(model.getRemindBy());
64          soapModel.setFirstReminder(model.getFirstReminder());
65          soapModel.setSecondReminder(model.getSecondReminder());
66  
67          return soapModel;
68      }
69  
70      public static CalEventSoap[] toSoapModels(CalEvent[] models) {
71          CalEventSoap[] soapModels = new CalEventSoap[models.length];
72  
73          for (int i = 0; i < models.length; i++) {
74              soapModels[i] = toSoapModel(models[i]);
75          }
76  
77          return soapModels;
78      }
79  
80      public static CalEventSoap[][] toSoapModels(CalEvent[][] models) {
81          CalEventSoap[][] soapModels = null;
82  
83          if (models.length > 0) {
84              soapModels = new CalEventSoap[models.length][models[0].length];
85          }
86          else {
87              soapModels = new CalEventSoap[0][0];
88          }
89  
90          for (int i = 0; i < models.length; i++) {
91              soapModels[i] = toSoapModels(models[i]);
92          }
93  
94          return soapModels;
95      }
96  
97      public static CalEventSoap[] toSoapModels(List<CalEvent> models) {
98          List<CalEventSoap> soapModels = new ArrayList<CalEventSoap>(models.size());
99  
100         for (CalEvent model : models) {
101             soapModels.add(toSoapModel(model));
102         }
103 
104         return soapModels.toArray(new CalEventSoap[soapModels.size()]);
105     }
106 
107     public CalEventSoap() {
108     }
109 
110     public long getPrimaryKey() {
111         return _eventId;
112     }
113 
114     public void setPrimaryKey(long pk) {
115         setEventId(pk);
116     }
117 
118     public String getUuid() {
119         return _uuid;
120     }
121 
122     public void setUuid(String uuid) {
123         _uuid = uuid;
124     }
125 
126     public long getEventId() {
127         return _eventId;
128     }
129 
130     public void setEventId(long eventId) {
131         _eventId = eventId;
132     }
133 
134     public long getGroupId() {
135         return _groupId;
136     }
137 
138     public void setGroupId(long groupId) {
139         _groupId = groupId;
140     }
141 
142     public long getCompanyId() {
143         return _companyId;
144     }
145 
146     public void setCompanyId(long companyId) {
147         _companyId = companyId;
148     }
149 
150     public long getUserId() {
151         return _userId;
152     }
153 
154     public void setUserId(long userId) {
155         _userId = userId;
156     }
157 
158     public String getUserName() {
159         return _userName;
160     }
161 
162     public void setUserName(String userName) {
163         _userName = userName;
164     }
165 
166     public Date getCreateDate() {
167         return _createDate;
168     }
169 
170     public void setCreateDate(Date createDate) {
171         _createDate = createDate;
172     }
173 
174     public Date getModifiedDate() {
175         return _modifiedDate;
176     }
177 
178     public void setModifiedDate(Date modifiedDate) {
179         _modifiedDate = modifiedDate;
180     }
181 
182     public String getTitle() {
183         return _title;
184     }
185 
186     public void setTitle(String title) {
187         _title = title;
188     }
189 
190     public String getDescription() {
191         return _description;
192     }
193 
194     public void setDescription(String description) {
195         _description = description;
196     }
197 
198     public Date getStartDate() {
199         return _startDate;
200     }
201 
202     public void setStartDate(Date startDate) {
203         _startDate = startDate;
204     }
205 
206     public Date getEndDate() {
207         return _endDate;
208     }
209 
210     public void setEndDate(Date endDate) {
211         _endDate = endDate;
212     }
213 
214     public int getDurationHour() {
215         return _durationHour;
216     }
217 
218     public void setDurationHour(int durationHour) {
219         _durationHour = durationHour;
220     }
221 
222     public int getDurationMinute() {
223         return _durationMinute;
224     }
225 
226     public void setDurationMinute(int durationMinute) {
227         _durationMinute = durationMinute;
228     }
229 
230     public boolean getAllDay() {
231         return _allDay;
232     }
233 
234     public boolean isAllDay() {
235         return _allDay;
236     }
237 
238     public void setAllDay(boolean allDay) {
239         _allDay = allDay;
240     }
241 
242     public boolean getTimeZoneSensitive() {
243         return _timeZoneSensitive;
244     }
245 
246     public boolean isTimeZoneSensitive() {
247         return _timeZoneSensitive;
248     }
249 
250     public void setTimeZoneSensitive(boolean timeZoneSensitive) {
251         _timeZoneSensitive = timeZoneSensitive;
252     }
253 
254     public String getType() {
255         return _type;
256     }
257 
258     public void setType(String type) {
259         _type = type;
260     }
261 
262     public boolean getRepeating() {
263         return _repeating;
264     }
265 
266     public boolean isRepeating() {
267         return _repeating;
268     }
269 
270     public void setRepeating(boolean repeating) {
271         _repeating = repeating;
272     }
273 
274     public String getRecurrence() {
275         return _recurrence;
276     }
277 
278     public void setRecurrence(String recurrence) {
279         _recurrence = recurrence;
280     }
281 
282     public int getRemindBy() {
283         return _remindBy;
284     }
285 
286     public void setRemindBy(int remindBy) {
287         _remindBy = remindBy;
288     }
289 
290     public int getFirstReminder() {
291         return _firstReminder;
292     }
293 
294     public void setFirstReminder(int firstReminder) {
295         _firstReminder = firstReminder;
296     }
297 
298     public int getSecondReminder() {
299         return _secondReminder;
300     }
301 
302     public void setSecondReminder(int secondReminder) {
303         _secondReminder = secondReminder;
304     }
305 
306     private String _uuid;
307     private long _eventId;
308     private long _groupId;
309     private long _companyId;
310     private long _userId;
311     private String _userName;
312     private Date _createDate;
313     private Date _modifiedDate;
314     private String _title;
315     private String _description;
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 }