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