001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.model;
016    
017    import java.io.Serializable;
018    
019    import java.util.ArrayList;
020    import java.util.Date;
021    import java.util.List;
022    
023    /**
024     * This class is used by SOAP remote services.
025     *
026     * @author Brian Wing Shun Chan
027     * @generated
028     */
029    public class UserTrackerSoap implements Serializable {
030            public static UserTrackerSoap toSoapModel(UserTracker model) {
031                    UserTrackerSoap soapModel = new UserTrackerSoap();
032    
033                    soapModel.setUserTrackerId(model.getUserTrackerId());
034                    soapModel.setCompanyId(model.getCompanyId());
035                    soapModel.setUserId(model.getUserId());
036                    soapModel.setModifiedDate(model.getModifiedDate());
037                    soapModel.setSessionId(model.getSessionId());
038                    soapModel.setRemoteAddr(model.getRemoteAddr());
039                    soapModel.setRemoteHost(model.getRemoteHost());
040                    soapModel.setUserAgent(model.getUserAgent());
041    
042                    return soapModel;
043            }
044    
045            public static UserTrackerSoap[] toSoapModels(UserTracker[] models) {
046                    UserTrackerSoap[] soapModels = new UserTrackerSoap[models.length];
047    
048                    for (int i = 0; i < models.length; i++) {
049                            soapModels[i] = toSoapModel(models[i]);
050                    }
051    
052                    return soapModels;
053            }
054    
055            public static UserTrackerSoap[][] toSoapModels(UserTracker[][] models) {
056                    UserTrackerSoap[][] soapModels = null;
057    
058                    if (models.length > 0) {
059                            soapModels = new UserTrackerSoap[models.length][models[0].length];
060                    }
061                    else {
062                            soapModels = new UserTrackerSoap[0][0];
063                    }
064    
065                    for (int i = 0; i < models.length; i++) {
066                            soapModels[i] = toSoapModels(models[i]);
067                    }
068    
069                    return soapModels;
070            }
071    
072            public static UserTrackerSoap[] toSoapModels(List<UserTracker> models) {
073                    List<UserTrackerSoap> soapModels = new ArrayList<UserTrackerSoap>(models.size());
074    
075                    for (UserTracker model : models) {
076                            soapModels.add(toSoapModel(model));
077                    }
078    
079                    return soapModels.toArray(new UserTrackerSoap[soapModels.size()]);
080            }
081    
082            public UserTrackerSoap() {
083            }
084    
085            public long getPrimaryKey() {
086                    return _userTrackerId;
087            }
088    
089            public void setPrimaryKey(long pk) {
090                    setUserTrackerId(pk);
091            }
092    
093            public long getUserTrackerId() {
094                    return _userTrackerId;
095            }
096    
097            public void setUserTrackerId(long userTrackerId) {
098                    _userTrackerId = userTrackerId;
099            }
100    
101            public long getCompanyId() {
102                    return _companyId;
103            }
104    
105            public void setCompanyId(long companyId) {
106                    _companyId = companyId;
107            }
108    
109            public long getUserId() {
110                    return _userId;
111            }
112    
113            public void setUserId(long userId) {
114                    _userId = userId;
115            }
116    
117            public Date getModifiedDate() {
118                    return _modifiedDate;
119            }
120    
121            public void setModifiedDate(Date modifiedDate) {
122                    _modifiedDate = modifiedDate;
123            }
124    
125            public String getSessionId() {
126                    return _sessionId;
127            }
128    
129            public void setSessionId(String sessionId) {
130                    _sessionId = sessionId;
131            }
132    
133            public String getRemoteAddr() {
134                    return _remoteAddr;
135            }
136    
137            public void setRemoteAddr(String remoteAddr) {
138                    _remoteAddr = remoteAddr;
139            }
140    
141            public String getRemoteHost() {
142                    return _remoteHost;
143            }
144    
145            public void setRemoteHost(String remoteHost) {
146                    _remoteHost = remoteHost;
147            }
148    
149            public String getUserAgent() {
150                    return _userAgent;
151            }
152    
153            public void setUserAgent(String userAgent) {
154                    _userAgent = userAgent;
155            }
156    
157            private long _userTrackerId;
158            private long _companyId;
159            private long _userId;
160            private Date _modifiedDate;
161            private String _sessionId;
162            private String _remoteAddr;
163            private String _remoteHost;
164            private String _userAgent;
165    }