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.portal.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="ActivityTrackerSoap.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.portal.service.http.ActivityTrackerServiceSoap</code>.
040: * </p>
041: *
042: * @author Brian Wing Shun Chan
043: *
044: * @see com.liferay.portal.service.http.ActivityTrackerServiceSoap
045: *
046: */
047: public class ActivityTrackerSoap implements Serializable {
048: public static ActivityTrackerSoap toSoapModel(ActivityTracker model) {
049: ActivityTrackerSoap soapModel = new ActivityTrackerSoap();
050:
051: soapModel.setActivityTrackerId(model.getActivityTrackerId());
052: soapModel.setGroupId(model.getGroupId());
053: soapModel.setCompanyId(model.getCompanyId());
054: soapModel.setUserId(model.getUserId());
055: soapModel.setUserName(model.getUserName());
056: soapModel.setCreateDate(model.getCreateDate());
057: soapModel.setClassNameId(model.getClassNameId());
058: soapModel.setClassPK(model.getClassPK());
059: soapModel.setActivity(model.getActivity());
060: soapModel.setExtraData(model.getExtraData());
061: soapModel.setReceiverUserId(model.getReceiverUserId());
062: soapModel.setReceiverUserName(model.getReceiverUserName());
063:
064: return soapModel;
065: }
066:
067: public static ActivityTrackerSoap[] toSoapModels(List models) {
068: List soapModels = new ArrayList(models.size());
069:
070: for (int i = 0; i < models.size(); i++) {
071: ActivityTracker model = (ActivityTracker) models.get(i);
072:
073: soapModels.add(toSoapModel(model));
074: }
075:
076: return (ActivityTrackerSoap[]) soapModels
077: .toArray(new ActivityTrackerSoap[0]);
078: }
079:
080: public ActivityTrackerSoap() {
081: }
082:
083: public long getPrimaryKey() {
084: return _activityTrackerId;
085: }
086:
087: public void setPrimaryKey(long pk) {
088: setActivityTrackerId(pk);
089: }
090:
091: public long getActivityTrackerId() {
092: return _activityTrackerId;
093: }
094:
095: public void setActivityTrackerId(long activityTrackerId) {
096: _activityTrackerId = activityTrackerId;
097: }
098:
099: public long getGroupId() {
100: return _groupId;
101: }
102:
103: public void setGroupId(long groupId) {
104: _groupId = groupId;
105: }
106:
107: public long getCompanyId() {
108: return _companyId;
109: }
110:
111: public void setCompanyId(long companyId) {
112: _companyId = companyId;
113: }
114:
115: public long getUserId() {
116: return _userId;
117: }
118:
119: public void setUserId(long userId) {
120: _userId = userId;
121: }
122:
123: public String getUserName() {
124: return _userName;
125: }
126:
127: public void setUserName(String userName) {
128: _userName = userName;
129: }
130:
131: public Date getCreateDate() {
132: return _createDate;
133: }
134:
135: public void setCreateDate(Date createDate) {
136: _createDate = createDate;
137: }
138:
139: public long getClassNameId() {
140: return _classNameId;
141: }
142:
143: public void setClassNameId(long classNameId) {
144: _classNameId = classNameId;
145: }
146:
147: public long getClassPK() {
148: return _classPK;
149: }
150:
151: public void setClassPK(long classPK) {
152: _classPK = classPK;
153: }
154:
155: public String getActivity() {
156: return _activity;
157: }
158:
159: public void setActivity(String activity) {
160: _activity = activity;
161: }
162:
163: public String getExtraData() {
164: return _extraData;
165: }
166:
167: public void setExtraData(String extraData) {
168: _extraData = extraData;
169: }
170:
171: public long getReceiverUserId() {
172: return _receiverUserId;
173: }
174:
175: public void setReceiverUserId(long receiverUserId) {
176: _receiverUserId = receiverUserId;
177: }
178:
179: public String getReceiverUserName() {
180: return _receiverUserName;
181: }
182:
183: public void setReceiverUserName(String receiverUserName) {
184: _receiverUserName = receiverUserName;
185: }
186:
187: private long _activityTrackerId;
188: private long _groupId;
189: private long _companyId;
190: private long _userId;
191: private String _userName;
192: private Date _createDate;
193: private long _classNameId;
194: private long _classPK;
195: private String _activity;
196: private String _extraData;
197: private long _receiverUserId;
198: private String _receiverUserName;
199: }
|