1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights 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   * {@link com.liferay.portlet.calendar.service.http.CalEventServiceSoap}.
42   * </p>
43   *
44   * @author    Brian Wing Shun Chan
45   * @see       com.liferay.portlet.calendar.service.http.CalEventServiceSoap
46   * @generated
47   */
48  public class CalEventSoap implements Serializable {
49      public static CalEventSoap toSoapModel(CalEvent model) {
50          CalEventSoap soapModel = new CalEventSoap();
51  
52          soapModel.setUuid(model.getUuid());
53          soapModel.setEventId(model.getEventId());
54          soapModel.setGroupId(model.getGroupId());
55          soapModel.setCompanyId(model.getCompanyId());
56          soapModel.setUserId(model.getUserId());
57          soapModel.setUserName(model.getUserName());
58          soapModel.setCreateDate(model.getCreateDate());
59          soapModel.setModifiedDate(model.getModifiedDate());
60          soapModel.setTitle(model.getTitle());
61          soapModel.setDescription(model.getDescription());
62          soapModel.setStartDate(model.getStartDate());
63          soapModel.setEndDate(model.getEndDate());
64          soapModel.setDurationHour(model.getDurationHour());
65          soapModel.setDurationMinute(model.getDurationMinute());
66          soapModel.setAllDay(model.getAllDay());
67          soapModel.setTimeZoneSensitive(model.getTimeZoneSensitive());
68          soapModel.setType(model.getType());
69          soapModel.setRepeating(model.getRepeating());
70          soapModel.setRecurrence(model.getRecurrence());
71          soapModel.setRemindBy(model.getRemindBy());
72          soapModel.setFirstReminder(model.getFirstReminder());
73          soapModel.setSecondReminder(model.getSecondReminder());
74  
75          return soapModel;
76      }
77  
78      public static CalEventSoap[] toSoapModels(CalEvent[] models) {
79          CalEventSoap[] soapModels = new CalEventSoap[models.length];
80  
81          for (int i = 0; i < models.length; i++) {
82              soapModels[i] = toSoapModel(models[i]);
83          }
84  
85          return soapModels;
86      }
87  
88      public static CalEventSoap[][] toSoapModels(CalEvent[][] models) {
89          CalEventSoap[][] soapModels = null;
90  
91          if (models.length > 0) {
92              soapModels = new CalEventSoap[models.length][models[0].length];
93          }
94          else {
95              soapModels = new CalEventSoap[0][0];
96          }
97  
98          for (int i = 0; i < models.length; i++) {
99              soapModels[i] = toSoapModels(models[i]);
100         }
101 
102         return soapModels;
103     }
104 
105     public static CalEventSoap[] toSoapModels(List<CalEvent> models) {
106         List<CalEventSoap> soapModels = new ArrayList<CalEventSoap>(models.size());
107 
108         for (CalEvent model : models) {
109             soapModels.add(toSoapModel(model));
110         }
111 
112         return soapModels.toArray(new CalEventSoap[soapModels.size()]);
113     }
114 
115     public CalEventSoap() {
116     }
117 
118     public long getPrimaryKey() {
119         return _eventId;
120     }
121 
122     public void setPrimaryKey(long pk) {
123         setEventId(pk);
124     }
125 
126     public String getUuid() {
127         return _uuid;
128     }
129 
130     public void setUuid(String uuid) {
131         _uuid = uuid;
132     }
133 
134     public long getEventId() {
135         return _eventId;
136     }
137 
138     public void setEventId(long eventId) {
139         _eventId = eventId;
140     }
141 
142     public long getGroupId() {
143         return _groupId;
144     }
145 
146     public void setGroupId(long groupId) {
147         _groupId = groupId;
148     }
149 
150     public long getCompanyId() {
151         return _companyId;
152     }
153 
154     public void setCompanyId(long companyId) {
155         _companyId = companyId;
156     }
157 
158     public long getUserId() {
159         return _userId;
160     }
161 
162     public void setUserId(long userId) {
163         _userId = userId;
164     }
165 
166     public String getUserName() {
167         return _userName;
168     }
169 
170     public void setUserName(String userName) {
171         _userName = userName;
172     }
173 
174     public Date getCreateDate() {
175         return _createDate;
176     }
177 
178     public void setCreateDate(Date createDate) {
179         _createDate = createDate;
180     }
181 
182     public Date getModifiedDate() {
183         return _modifiedDate;
184     }
185 
186     public void setModifiedDate(Date modifiedDate) {
187         _modifiedDate = modifiedDate;
188     }
189 
190     public String getTitle() {
191         return _title;
192     }
193 
194     public void setTitle(String title) {
195         _title = title;
196     }
197 
198     public String getDescription() {
199         return _description;
200     }
201 
202     public void setDescription(String description) {
203         _description = description;
204     }
205 
206     public Date getStartDate() {
207         return _startDate;
208     }
209 
210     public void setStartDate(Date startDate) {
211         _startDate = startDate;
212     }
213 
214     public Date getEndDate() {
215         return _endDate;
216     }
217 
218     public void setEndDate(Date endDate) {
219         _endDate = endDate;
220     }
221 
222     public int getDurationHour() {
223         return _durationHour;
224     }
225 
226     public void setDurationHour(int durationHour) {
227         _durationHour = durationHour;
228     }
229 
230     public int getDurationMinute() {
231         return _durationMinute;
232     }
233 
234     public void setDurationMinute(int durationMinute) {
235         _durationMinute = durationMinute;
236     }
237 
238     public boolean getAllDay() {
239         return _allDay;
240     }
241 
242     public boolean isAllDay() {
243         return _allDay;
244     }
245 
246     public void setAllDay(boolean allDay) {
247         _allDay = allDay;
248     }
249 
250     public boolean getTimeZoneSensitive() {
251         return _timeZoneSensitive;
252     }
253 
254     public boolean isTimeZoneSensitive() {
255         return _timeZoneSensitive;
256     }
257 
258     public void setTimeZoneSensitive(boolean timeZoneSensitive) {
259         _timeZoneSensitive = timeZoneSensitive;
260     }
261 
262     public String getType() {
263         return _type;
264     }
265 
266     public void setType(String type) {
267         _type = type;
268     }
269 
270     public boolean getRepeating() {
271         return _repeating;
272     }
273 
274     public boolean isRepeating() {
275         return _repeating;
276     }
277 
278     public void setRepeating(boolean repeating) {
279         _repeating = repeating;
280     }
281 
282     public String getRecurrence() {
283         return _recurrence;
284     }
285 
286     public void setRecurrence(String recurrence) {
287         _recurrence = recurrence;
288     }
289 
290     public int getRemindBy() {
291         return _remindBy;
292     }
293 
294     public void setRemindBy(int remindBy) {
295         _remindBy = remindBy;
296     }
297 
298     public int getFirstReminder() {
299         return _firstReminder;
300     }
301 
302     public void setFirstReminder(int firstReminder) {
303         _firstReminder = firstReminder;
304     }
305 
306     public int getSecondReminder() {
307         return _secondReminder;
308     }
309 
310     public void setSecondReminder(int secondReminder) {
311         _secondReminder = secondReminder;
312     }
313 
314     private String _uuid;
315     private long _eventId;
316     private long _groupId;
317     private long _companyId;
318     private long _userId;
319     private String _userName;
320     private Date _createDate;
321     private Date _modifiedDate;
322     private String _title;
323     private String _description;
324     private Date _startDate;
325     private Date _endDate;
326     private int _durationHour;
327     private int _durationMinute;
328     private boolean _allDay;
329     private boolean _timeZoneSensitive;
330     private String _type;
331     private boolean _repeating;
332     private String _recurrence;
333     private int _remindBy;
334     private int _firstReminder;
335     private int _secondReminder;
336 }