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