1   /**
2    * Copyright (c) 2000-2007 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 overwritten
36   * the next time is generated.
37   * </p>
38   *
39   * <p>
40   * This class is used by <code>com.liferay.portlet.calendar.service.http.CalEventServiceSoap</code>.
41   * </p>
42   *
43   * @author Brian Wing Shun Chan
44   *
45   * @see com.liferay.portlet.calendar.service.http.CalEventServiceSoap
46   *
47   */
48  public class CalEventSoap implements Serializable {
49      public static CalEventSoap toSoapModel(CalEvent model) {
50          CalEventSoap soapModel = new CalEventSoap();
51          soapModel.setEventId(model.getEventId());
52          soapModel.setGroupId(model.getGroupId());
53          soapModel.setCompanyId(model.getCompanyId());
54          soapModel.setUserId(model.getUserId());
55          soapModel.setUserName(model.getUserName());
56          soapModel.setCreateDate(model.getCreateDate());
57          soapModel.setModifiedDate(model.getModifiedDate());
58          soapModel.setTitle(model.getTitle());
59          soapModel.setDescription(model.getDescription());
60          soapModel.setStartDate(model.getStartDate());
61          soapModel.setEndDate(model.getEndDate());
62          soapModel.setDurationHour(model.getDurationHour());
63          soapModel.setDurationMinute(model.getDurationMinute());
64          soapModel.setAllDay(model.getAllDay());
65          soapModel.setTimeZoneSensitive(model.getTimeZoneSensitive());
66          soapModel.setType(model.getType());
67          soapModel.setRepeating(model.getRepeating());
68          soapModel.setRecurrence(model.getRecurrence());
69          soapModel.setRemindBy(model.getRemindBy());
70          soapModel.setFirstReminder(model.getFirstReminder());
71          soapModel.setSecondReminder(model.getSecondReminder());
72  
73          return soapModel;
74      }
75  
76      public static CalEventSoap[] toSoapModels(List models) {
77          List soapModels = new ArrayList(models.size());
78  
79          for (int i = 0; i < models.size(); i++) {
80              CalEvent model = (CalEvent)models.get(i);
81              soapModels.add(toSoapModel(model));
82          }
83  
84          return (CalEventSoap[])soapModels.toArray(new CalEventSoap[0]);
85      }
86  
87      public CalEventSoap() {
88      }
89  
90      public long getPrimaryKey() {
91          return _eventId;
92      }
93  
94      public void setPrimaryKey(long pk) {
95          setEventId(pk);
96      }
97  
98      public long getEventId() {
99          return _eventId;
100     }
101 
102     public void setEventId(long eventId) {
103         _eventId = eventId;
104     }
105 
106     public long getGroupId() {
107         return _groupId;
108     }
109 
110     public void setGroupId(long groupId) {
111         _groupId = groupId;
112     }
113 
114     public long getCompanyId() {
115         return _companyId;
116     }
117 
118     public void setCompanyId(long companyId) {
119         _companyId = companyId;
120     }
121 
122     public long getUserId() {
123         return _userId;
124     }
125 
126     public void setUserId(long userId) {
127         _userId = userId;
128     }
129 
130     public String getUserName() {
131         return _userName;
132     }
133 
134     public void setUserName(String userName) {
135         _userName = userName;
136     }
137 
138     public Date getCreateDate() {
139         return _createDate;
140     }
141 
142     public void setCreateDate(Date createDate) {
143         _createDate = createDate;
144     }
145 
146     public Date getModifiedDate() {
147         return _modifiedDate;
148     }
149 
150     public void setModifiedDate(Date modifiedDate) {
151         _modifiedDate = modifiedDate;
152     }
153 
154     public String getTitle() {
155         return _title;
156     }
157 
158     public void setTitle(String title) {
159         _title = title;
160     }
161 
162     public String getDescription() {
163         return _description;
164     }
165 
166     public void setDescription(String description) {
167         _description = description;
168     }
169 
170     public Date getStartDate() {
171         return _startDate;
172     }
173 
174     public void setStartDate(Date startDate) {
175         _startDate = startDate;
176     }
177 
178     public Date getEndDate() {
179         return _endDate;
180     }
181 
182     public void setEndDate(Date endDate) {
183         _endDate = endDate;
184     }
185 
186     public int getDurationHour() {
187         return _durationHour;
188     }
189 
190     public void setDurationHour(int durationHour) {
191         _durationHour = durationHour;
192     }
193 
194     public int getDurationMinute() {
195         return _durationMinute;
196     }
197 
198     public void setDurationMinute(int durationMinute) {
199         _durationMinute = durationMinute;
200     }
201 
202     public boolean getAllDay() {
203         return _allDay;
204     }
205 
206     public boolean isAllDay() {
207         return _allDay;
208     }
209 
210     public void setAllDay(boolean allDay) {
211         _allDay = allDay;
212     }
213 
214     public boolean getTimeZoneSensitive() {
215         return _timeZoneSensitive;
216     }
217 
218     public boolean isTimeZoneSensitive() {
219         return _timeZoneSensitive;
220     }
221 
222     public void setTimeZoneSensitive(boolean timeZoneSensitive) {
223         _timeZoneSensitive = timeZoneSensitive;
224     }
225 
226     public String getType() {
227         return _type;
228     }
229 
230     public void setType(String type) {
231         _type = type;
232     }
233 
234     public boolean getRepeating() {
235         return _repeating;
236     }
237 
238     public boolean isRepeating() {
239         return _repeating;
240     }
241 
242     public void setRepeating(boolean repeating) {
243         _repeating = repeating;
244     }
245 
246     public String getRecurrence() {
247         return _recurrence;
248     }
249 
250     public void setRecurrence(String recurrence) {
251         _recurrence = recurrence;
252     }
253 
254     public String getRemindBy() {
255         return _remindBy;
256     }
257 
258     public void setRemindBy(String remindBy) {
259         _remindBy = remindBy;
260     }
261 
262     public int getFirstReminder() {
263         return _firstReminder;
264     }
265 
266     public void setFirstReminder(int firstReminder) {
267         _firstReminder = firstReminder;
268     }
269 
270     public int getSecondReminder() {
271         return _secondReminder;
272     }
273 
274     public void setSecondReminder(int secondReminder) {
275         _secondReminder = secondReminder;
276     }
277 
278     private long _eventId;
279     private long _groupId;
280     private long _companyId;
281     private long _userId;
282     private String _userName;
283     private Date _createDate;
284     private Date _modifiedDate;
285     private String _title;
286     private String _description;
287     private Date _startDate;
288     private Date _endDate;
289     private int _durationHour;
290     private int _durationMinute;
291     private boolean _allDay;
292     private boolean _timeZoneSensitive;
293     private String _type;
294     private boolean _repeating;
295     private String _recurrence;
296     private String _remindBy;
297     private int _firstReminder;
298     private int _secondReminder;
299 }