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(List<CalEvent> models) {
80          List<CalEventSoap> soapModels = new ArrayList<CalEventSoap>(models.size());
81  
82          for (CalEvent model : models) {
83              soapModels.add(toSoapModel(model));
84          }
85  
86          return soapModels.toArray(new CalEventSoap[soapModels.size()]);
87      }
88  
89      public CalEventSoap() {
90      }
91  
92      public long getPrimaryKey() {
93          return _eventId;
94      }
95  
96      public void setPrimaryKey(long pk) {
97          setEventId(pk);
98      }
99  
100     public String getUuid() {
101         return _uuid;
102     }
103 
104     public void setUuid(String uuid) {
105         _uuid = uuid;
106     }
107 
108     public long getEventId() {
109         return _eventId;
110     }
111 
112     public void setEventId(long eventId) {
113         _eventId = eventId;
114     }
115 
116     public long getGroupId() {
117         return _groupId;
118     }
119 
120     public void setGroupId(long groupId) {
121         _groupId = groupId;
122     }
123 
124     public long getCompanyId() {
125         return _companyId;
126     }
127 
128     public void setCompanyId(long companyId) {
129         _companyId = companyId;
130     }
131 
132     public long getUserId() {
133         return _userId;
134     }
135 
136     public void setUserId(long userId) {
137         _userId = userId;
138     }
139 
140     public String getUserName() {
141         return _userName;
142     }
143 
144     public void setUserName(String userName) {
145         _userName = userName;
146     }
147 
148     public Date getCreateDate() {
149         return _createDate;
150     }
151 
152     public void setCreateDate(Date createDate) {
153         _createDate = createDate;
154     }
155 
156     public Date getModifiedDate() {
157         return _modifiedDate;
158     }
159 
160     public void setModifiedDate(Date modifiedDate) {
161         _modifiedDate = modifiedDate;
162     }
163 
164     public String getTitle() {
165         return _title;
166     }
167 
168     public void setTitle(String title) {
169         _title = title;
170     }
171 
172     public String getDescription() {
173         return _description;
174     }
175 
176     public void setDescription(String description) {
177         _description = description;
178     }
179 
180     public Date getStartDate() {
181         return _startDate;
182     }
183 
184     public void setStartDate(Date startDate) {
185         _startDate = startDate;
186     }
187 
188     public Date getEndDate() {
189         return _endDate;
190     }
191 
192     public void setEndDate(Date endDate) {
193         _endDate = endDate;
194     }
195 
196     public int getDurationHour() {
197         return _durationHour;
198     }
199 
200     public void setDurationHour(int durationHour) {
201         _durationHour = durationHour;
202     }
203 
204     public int getDurationMinute() {
205         return _durationMinute;
206     }
207 
208     public void setDurationMinute(int durationMinute) {
209         _durationMinute = durationMinute;
210     }
211 
212     public boolean getAllDay() {
213         return _allDay;
214     }
215 
216     public boolean isAllDay() {
217         return _allDay;
218     }
219 
220     public void setAllDay(boolean allDay) {
221         _allDay = allDay;
222     }
223 
224     public boolean getTimeZoneSensitive() {
225         return _timeZoneSensitive;
226     }
227 
228     public boolean isTimeZoneSensitive() {
229         return _timeZoneSensitive;
230     }
231 
232     public void setTimeZoneSensitive(boolean timeZoneSensitive) {
233         _timeZoneSensitive = timeZoneSensitive;
234     }
235 
236     public String getType() {
237         return _type;
238     }
239 
240     public void setType(String type) {
241         _type = type;
242     }
243 
244     public boolean getRepeating() {
245         return _repeating;
246     }
247 
248     public boolean isRepeating() {
249         return _repeating;
250     }
251 
252     public void setRepeating(boolean repeating) {
253         _repeating = repeating;
254     }
255 
256     public String getRecurrence() {
257         return _recurrence;
258     }
259 
260     public void setRecurrence(String recurrence) {
261         _recurrence = recurrence;
262     }
263 
264     public String getRemindBy() {
265         return _remindBy;
266     }
267 
268     public void setRemindBy(String remindBy) {
269         _remindBy = remindBy;
270     }
271 
272     public int getFirstReminder() {
273         return _firstReminder;
274     }
275 
276     public void setFirstReminder(int firstReminder) {
277         _firstReminder = firstReminder;
278     }
279 
280     public int getSecondReminder() {
281         return _secondReminder;
282     }
283 
284     public void setSecondReminder(int secondReminder) {
285         _secondReminder = secondReminder;
286     }
287 
288     private String _uuid;
289     private long _eventId;
290     private long _groupId;
291     private long _companyId;
292     private long _userId;
293     private String _userName;
294     private Date _createDate;
295     private Date _modifiedDate;
296     private String _title;
297     private String _description;
298     private Date _startDate;
299     private Date _endDate;
300     private int _durationHour;
301     private int _durationMinute;
302     private boolean _allDay;
303     private boolean _timeZoneSensitive;
304     private String _type;
305     private boolean _repeating;
306     private String _recurrence;
307     private String _remindBy;
308     private int _firstReminder;
309     private int _secondReminder;
310 }