001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portlet.calendar.model;
022:
023: import java.io.Serializable;
024:
025: import java.util.ArrayList;
026: import java.util.Date;
027: import java.util.List;
028:
029: /**
030: * <a href="CalEventSoap.java.html"><b><i>View Source</i></b></a>
031: *
032: * <p>
033: * ServiceBuilder generated this class. Modifications in this class will be
034: * overwritten the next time is generated.
035: * </p>
036: *
037: * <p>
038: * This class is used by
039: * <code>com.liferay.portlet.calendar.service.http.CalEventServiceSoap</code>.
040: * </p>
041: *
042: * @author Brian Wing Shun Chan
043: *
044: * @see com.liferay.portlet.calendar.service.http.CalEventServiceSoap
045: *
046: */
047: public class CalEventSoap implements Serializable {
048: public static CalEventSoap toSoapModel(CalEvent model) {
049: CalEventSoap soapModel = new CalEventSoap();
050:
051: soapModel.setUuid(model.getUuid());
052: soapModel.setEventId(model.getEventId());
053: soapModel.setGroupId(model.getGroupId());
054: soapModel.setCompanyId(model.getCompanyId());
055: soapModel.setUserId(model.getUserId());
056: soapModel.setUserName(model.getUserName());
057: soapModel.setCreateDate(model.getCreateDate());
058: soapModel.setModifiedDate(model.getModifiedDate());
059: soapModel.setTitle(model.getTitle());
060: soapModel.setDescription(model.getDescription());
061: soapModel.setStartDate(model.getStartDate());
062: soapModel.setEndDate(model.getEndDate());
063: soapModel.setDurationHour(model.getDurationHour());
064: soapModel.setDurationMinute(model.getDurationMinute());
065: soapModel.setAllDay(model.getAllDay());
066: soapModel.setTimeZoneSensitive(model.getTimeZoneSensitive());
067: soapModel.setType(model.getType());
068: soapModel.setRepeating(model.getRepeating());
069: soapModel.setRecurrence(model.getRecurrence());
070: soapModel.setRemindBy(model.getRemindBy());
071: soapModel.setFirstReminder(model.getFirstReminder());
072: soapModel.setSecondReminder(model.getSecondReminder());
073:
074: return soapModel;
075: }
076:
077: public static CalEventSoap[] toSoapModels(List models) {
078: List soapModels = new ArrayList(models.size());
079:
080: for (int i = 0; i < models.size(); i++) {
081: CalEvent model = (CalEvent) models.get(i);
082:
083: soapModels.add(toSoapModel(model));
084: }
085:
086: return (CalEventSoap[]) soapModels.toArray(new CalEventSoap[0]);
087: }
088:
089: public CalEventSoap() {
090: }
091:
092: public long getPrimaryKey() {
093: return _eventId;
094: }
095:
096: public void setPrimaryKey(long pk) {
097: setEventId(pk);
098: }
099:
100: public String getUuid() {
101: return _uuid;
102: }
103:
104: public void setUuid(String uuid) {
105: _uuid = uuid;
106: }
107:
108: public long getEventId() {
109: return _eventId;
110: }
111:
112: public void setEventId(long eventId) {
113: _eventId = eventId;
114: }
115:
116: public long getGroupId() {
117: return _groupId;
118: }
119:
120: public void setGroupId(long groupId) {
121: _groupId = groupId;
122: }
123:
124: public long getCompanyId() {
125: return _companyId;
126: }
127:
128: public void setCompanyId(long companyId) {
129: _companyId = companyId;
130: }
131:
132: public long getUserId() {
133: return _userId;
134: }
135:
136: public void setUserId(long userId) {
137: _userId = userId;
138: }
139:
140: public String getUserName() {
141: return _userName;
142: }
143:
144: public void setUserName(String userName) {
145: _userName = userName;
146: }
147:
148: public Date getCreateDate() {
149: return _createDate;
150: }
151:
152: public void setCreateDate(Date createDate) {
153: _createDate = createDate;
154: }
155:
156: public Date getModifiedDate() {
157: return _modifiedDate;
158: }
159:
160: public void setModifiedDate(Date modifiedDate) {
161: _modifiedDate = modifiedDate;
162: }
163:
164: public String getTitle() {
165: return _title;
166: }
167:
168: public void setTitle(String title) {
169: _title = title;
170: }
171:
172: public String getDescription() {
173: return _description;
174: }
175:
176: public void setDescription(String description) {
177: _description = description;
178: }
179:
180: public Date getStartDate() {
181: return _startDate;
182: }
183:
184: public void setStartDate(Date startDate) {
185: _startDate = startDate;
186: }
187:
188: public Date getEndDate() {
189: return _endDate;
190: }
191:
192: public void setEndDate(Date endDate) {
193: _endDate = endDate;
194: }
195:
196: public int getDurationHour() {
197: return _durationHour;
198: }
199:
200: public void setDurationHour(int durationHour) {
201: _durationHour = durationHour;
202: }
203:
204: public int getDurationMinute() {
205: return _durationMinute;
206: }
207:
208: public void setDurationMinute(int durationMinute) {
209: _durationMinute = durationMinute;
210: }
211:
212: public boolean getAllDay() {
213: return _allDay;
214: }
215:
216: public boolean isAllDay() {
217: return _allDay;
218: }
219:
220: public void setAllDay(boolean allDay) {
221: _allDay = allDay;
222: }
223:
224: public boolean getTimeZoneSensitive() {
225: return _timeZoneSensitive;
226: }
227:
228: public boolean isTimeZoneSensitive() {
229: return _timeZoneSensitive;
230: }
231:
232: public void setTimeZoneSensitive(boolean timeZoneSensitive) {
233: _timeZoneSensitive = timeZoneSensitive;
234: }
235:
236: public String getType() {
237: return _type;
238: }
239:
240: public void setType(String type) {
241: _type = type;
242: }
243:
244: public boolean getRepeating() {
245: return _repeating;
246: }
247:
248: public boolean isRepeating() {
249: return _repeating;
250: }
251:
252: public void setRepeating(boolean repeating) {
253: _repeating = repeating;
254: }
255:
256: public String getRecurrence() {
257: return _recurrence;
258: }
259:
260: public void setRecurrence(String recurrence) {
261: _recurrence = recurrence;
262: }
263:
264: public String getRemindBy() {
265: return _remindBy;
266: }
267:
268: public void setRemindBy(String remindBy) {
269: _remindBy = remindBy;
270: }
271:
272: public int getFirstReminder() {
273: return _firstReminder;
274: }
275:
276: public void setFirstReminder(int firstReminder) {
277: _firstReminder = firstReminder;
278: }
279:
280: public int getSecondReminder() {
281: return _secondReminder;
282: }
283:
284: public void setSecondReminder(int secondReminder) {
285: _secondReminder = secondReminder;
286: }
287:
288: private String _uuid;
289: private long _eventId;
290: private long _groupId;
291: private long _companyId;
292: private long _userId;
293: private String _userName;
294: private Date _createDate;
295: private Date _modifiedDate;
296: private String _title;
297: private String _description;
298: private Date _startDate;
299: private Date _endDate;
300: private int _durationHour;
301: private int _durationMinute;
302: private boolean _allDay;
303: private boolean _timeZoneSensitive;
304: private String _type;
305: private boolean _repeating;
306: private String _recurrence;
307: private String _remindBy;
308: private int _firstReminder;
309: private int _secondReminder;
310: }
|