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="UserTrackerSoap.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.UserTrackerServiceSoap</code>.
040: * </p>
041: *
042: * @author Brian Wing Shun Chan
043: *
044: * @see com.liferay.portal.service.http.UserTrackerServiceSoap
045: *
046: */
047: public class UserTrackerSoap implements Serializable {
048: public static UserTrackerSoap toSoapModel(UserTracker model) {
049: UserTrackerSoap soapModel = new UserTrackerSoap();
050:
051: soapModel.setUserTrackerId(model.getUserTrackerId());
052: soapModel.setCompanyId(model.getCompanyId());
053: soapModel.setUserId(model.getUserId());
054: soapModel.setModifiedDate(model.getModifiedDate());
055: soapModel.setSessionId(model.getSessionId());
056: soapModel.setRemoteAddr(model.getRemoteAddr());
057: soapModel.setRemoteHost(model.getRemoteHost());
058: soapModel.setUserAgent(model.getUserAgent());
059:
060: return soapModel;
061: }
062:
063: public static UserTrackerSoap[] toSoapModels(List models) {
064: List soapModels = new ArrayList(models.size());
065:
066: for (int i = 0; i < models.size(); i++) {
067: UserTracker model = (UserTracker) models.get(i);
068:
069: soapModels.add(toSoapModel(model));
070: }
071:
072: return (UserTrackerSoap[]) soapModels
073: .toArray(new UserTrackerSoap[0]);
074: }
075:
076: public UserTrackerSoap() {
077: }
078:
079: public long getPrimaryKey() {
080: return _userTrackerId;
081: }
082:
083: public void setPrimaryKey(long pk) {
084: setUserTrackerId(pk);
085: }
086:
087: public long getUserTrackerId() {
088: return _userTrackerId;
089: }
090:
091: public void setUserTrackerId(long userTrackerId) {
092: _userTrackerId = userTrackerId;
093: }
094:
095: public long getCompanyId() {
096: return _companyId;
097: }
098:
099: public void setCompanyId(long companyId) {
100: _companyId = companyId;
101: }
102:
103: public long getUserId() {
104: return _userId;
105: }
106:
107: public void setUserId(long userId) {
108: _userId = userId;
109: }
110:
111: public Date getModifiedDate() {
112: return _modifiedDate;
113: }
114:
115: public void setModifiedDate(Date modifiedDate) {
116: _modifiedDate = modifiedDate;
117: }
118:
119: public String getSessionId() {
120: return _sessionId;
121: }
122:
123: public void setSessionId(String sessionId) {
124: _sessionId = sessionId;
125: }
126:
127: public String getRemoteAddr() {
128: return _remoteAddr;
129: }
130:
131: public void setRemoteAddr(String remoteAddr) {
132: _remoteAddr = remoteAddr;
133: }
134:
135: public String getRemoteHost() {
136: return _remoteHost;
137: }
138:
139: public void setRemoteHost(String remoteHost) {
140: _remoteHost = remoteHost;
141: }
142:
143: public String getUserAgent() {
144: return _userAgent;
145: }
146:
147: public void setUserAgent(String userAgent) {
148: _userAgent = userAgent;
149: }
150:
151: private long _userTrackerId;
152: private long _companyId;
153: private long _userId;
154: private Date _modifiedDate;
155: private String _sessionId;
156: private String _remoteAddr;
157: private String _remoteHost;
158: private String _userAgent;
159: }
|