1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.calendar.model;
24  
25  import java.io.Serializable;
26  
27  import java.util.ArrayList;
28  import java.util.Date;
29  import java.util.List;
30  
31  /**
32   * <a href="CalEventSoap.java.html"><b><i>View Source</i></b></a>
33   *
34   * <p>
35   * ServiceBuilder generated this class. Modifications in this class will be
36   * overwritten the next time is generated.
37   * </p>
38   *
39   * <p>
40   * This class is used by
41   * <code>com.liferay.portlet.calendar.service.http.CalEventServiceSoap</code>.
42   * </p>
43   *
44   * @author Brian Wing Shun Chan
45   *
46   * @see com.liferay.portlet.calendar.service.http.CalEventServiceSoap
47   *
48   */
49  public class CalEventSoap implements Serializable {
50      public static CalEventSoap toSoapModel(CalEvent model) {
51          CalEventSoap soapModel = new CalEventSoap();
52  
53          soapModel.setUuid(model.getUuid());
54          soapModel.setEventId(model.getEventId());
55          soapModel.setGroupId(model.getGroupId());
56          soapModel.setCompanyId(model.getCompanyId());
57          soapModel.setUserId(model.getUserId());
58          soapModel.setUserName(model.getUserName());
59          soapModel.setCreateDate(model.getCreateDate());
60          soapModel.setModifiedDate(model.getModifiedDate());
61          soapModel.setTitle(model.getTitle());
62          soapModel.setDescription(model.getDescription());
63          soapModel.setStartDate(model.getStartDate());
64          soapModel.setEndDate(model.getEndDate());
65          soapModel.setDurationHour(model.getDurationHour());
66          soapModel.setDurationMinute(model.getDurationMinute());
67          soapModel.setAllDay(model.getAllDay());
68          soapModel.setTimeZoneSensitive(model.getTimeZoneSensitive());
69          soapModel.setType(model.getType());
70          soapModel.setRepeating(model.getRepeating());
71          soapModel.setRecurrence(model.getRecurrence());
72          soapModel.setRemindBy(model.getRemindBy());
73          soapModel.setFirstReminder(model.getFirstReminder());
74          soapModel.setSecondReminder(model.getSecondReminder());
75  
76          return soapModel;
77      }
78  
79      public static CalEventSoap[] toSoapModels(CalEvent[] models) {
80          CalEventSoap[] soapModels = new CalEventSoap[models.length];
81  
82          for (int i = 0; i < models.length; i++) {
83              soapModels[i] = toSoapModel(models[i]);
84          }
85  
86          return soapModels;
87      }
88  
89      public static CalEventSoap[][] toSoapModels(CalEvent[][] models) {
90          CalEventSoap[][] soapModels = null;
91  
92          if (models.length > 0) {
93              soapModels = new CalEventSoap[models.length][models[0].length];
94          }
95          else {
96              soapModels = new CalEventSoap[0][0];
97          }
98  
99          for (int i = 0; i < models.length; i++) {
100             soapModels[i] = toSoapModels(models[i]);
101         }
102 
103         return soapModels;
104     }
105 
106     public static CalEventSoap[] toSoapModels(List<CalEvent> models) {
107         List<CalEventSoap> soapModels = new ArrayList<CalEventSoap>(models.size());
108 
109         for (CalEvent model : models) {
110             soapModels.add(toSoapModel(model));
111         }
112 
113         return soapModels.toArray(new CalEventSoap[soapModels.size()]);
114     }
115 
116     public CalEventSoap() {
117     }
118 
119     public long getPrimaryKey() {
120         return _eventId;
121     }
122 
123     public void setPrimaryKey(long pk) {
124         setEventId(pk);
125     }
126 
127     public String getUuid() {
128         return _uuid;
129     }
130 
131     public void setUuid(String uuid) {
132         _uuid = uuid;
133     }
134 
135     public long getEventId() {
136         return _eventId;
137     }
138 
139     public void setEventId(long eventId) {
140         _eventId = eventId;
141     }
142 
143     public long getGroupId() {
144         return _groupId;
145     }
146 
147     public void setGroupId(long groupId) {
148         _groupId = groupId;
149     }
150 
151     public long getCompanyId() {
152         return _companyId;
153     }
154 
155     public void setCompanyId(long companyId) {
156         _companyId = companyId;
157     }
158 
159     public long getUserId() {
160         return _userId;
161     }
162 
163     public void setUserId(long userId) {
164         _userId = userId;
165     }
166 
167     public String getUserName() {
168         return _userName;
169     }
170 
171     public void setUserName(String userName) {
172         _userName = userName;
173     }
174 
175     public Date getCreateDate() {
176         return _createDate;
177     }
178 
179     public void setCreateDate(Date createDate) {
180         _createDate = createDate;
181     }
182 
183     public Date getModifiedDate() {
184         return _modifiedDate;
185     }
186 
187     public void setModifiedDate(Date modifiedDate) {
188         _modifiedDate = modifiedDate;
189     }
190 
191     public String getTitle() {
192         return _title;
193     }
194 
195     public void setTitle(String title) {
196         _title = title;
197     }
198 
199     public String getDescription() {
200         return _description;
201     }
202 
203     public void setDescription(String description) {
204         _description = description;
205     }
206 
207     public Date getStartDate() {
208         return _startDate;
209     }
210 
211     public void setStartDate(Date startDate) {
212         _startDate = startDate;
213     }
214 
215     public Date getEndDate() {
216         return _endDate;
217     }
218 
219     public void setEndDate(Date endDate) {
220         _endDate = endDate;
221     }
222 
223     public int getDurationHour() {
224         return _durationHour;
225     }
226 
227     public void setDurationHour(int durationHour) {
228         _durationHour = durationHour;
229     }
230 
231     public int getDurationMinute() {
232         return _durationMinute;
233     }
234 
235     public void setDurationMinute(int durationMinute) {
236         _durationMinute = durationMinute;
237     }
238 
239     public boolean getAllDay() {
240         return _allDay;
241     }
242 
243     public boolean isAllDay() {
244         return _allDay;
245     }
246 
247     public void setAllDay(boolean allDay) {
248         _allDay = allDay;
249     }
250 
251     public boolean getTimeZoneSensitive() {
252         return _timeZoneSensitive;
253     }
254 
255     public boolean isTimeZoneSensitive() {
256         return _timeZoneSensitive;
257     }
258 
259     public void setTimeZoneSensitive(boolean timeZoneSensitive) {
260         _timeZoneSensitive = timeZoneSensitive;
261     }
262 
263     public String getType() {
264         return _type;
265     }
266 
267     public void setType(String type) {
268         _type = type;
269     }
270 
271     public boolean getRepeating() {
272         return _repeating;
273     }
274 
275     public boolean isRepeating() {
276         return _repeating;
277     }
278 
279     public void setRepeating(boolean repeating) {
280         _repeating = repeating;
281     }
282 
283     public String getRecurrence() {
284         return _recurrence;
285     }
286 
287     public void setRecurrence(String recurrence) {
288         _recurrence = recurrence;
289     }
290 
291     public int getRemindBy() {
292         return _remindBy;
293     }
294 
295     public void setRemindBy(int remindBy) {
296         _remindBy = remindBy;
297     }
298 
299     public int getFirstReminder() {
300         return _firstReminder;
301     }
302 
303     public void setFirstReminder(int firstReminder) {
304         _firstReminder = firstReminder;
305     }
306 
307     public int getSecondReminder() {
308         return _secondReminder;
309     }
310 
311     public void setSecondReminder(int secondReminder) {
312         _secondReminder = secondReminder;
313     }
314 
315     private String _uuid;
316     private long _eventId;
317     private long _groupId;
318     private long _companyId;
319     private long _userId;
320     private String _userName;
321     private Date _createDate;
322     private Date _modifiedDate;
323     private String _title;
324     private String _description;
325     private Date _startDate;
326     private Date _endDate;
327     private int _durationHour;
328     private int _durationMinute;
329     private boolean _allDay;
330     private boolean _timeZoneSensitive;
331     private String _type;
332     private boolean _repeating;
333     private String _recurrence;
334     private int _remindBy;
335     private int _firstReminder;
336     private int _secondReminder;
337 }