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