001    /**
002     * Copyright (c) 2000-present 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 aQute.bnd.annotation.ProviderType;
018    
019    import java.io.Serializable;
020    
021    import java.util.ArrayList;
022    import java.util.Date;
023    import java.util.List;
024    
025    /**
026     * This class is used by SOAP remote services.
027     *
028     * @author Brian Wing Shun Chan
029     * @generated
030     */
031    @ProviderType
032    public class PasswordTrackerSoap implements Serializable {
033            public static PasswordTrackerSoap toSoapModel(PasswordTracker model) {
034                    PasswordTrackerSoap soapModel = new PasswordTrackerSoap();
035    
036                    soapModel.setMvccVersion(model.getMvccVersion());
037                    soapModel.setPasswordTrackerId(model.getPasswordTrackerId());
038                    soapModel.setCompanyId(model.getCompanyId());
039                    soapModel.setUserId(model.getUserId());
040                    soapModel.setCreateDate(model.getCreateDate());
041                    soapModel.setPassword(model.getPassword());
042    
043                    return soapModel;
044            }
045    
046            public static PasswordTrackerSoap[] toSoapModels(PasswordTracker[] models) {
047                    PasswordTrackerSoap[] soapModels = new PasswordTrackerSoap[models.length];
048    
049                    for (int i = 0; i < models.length; i++) {
050                            soapModels[i] = toSoapModel(models[i]);
051                    }
052    
053                    return soapModels;
054            }
055    
056            public static PasswordTrackerSoap[][] toSoapModels(
057                    PasswordTracker[][] models) {
058                    PasswordTrackerSoap[][] soapModels = null;
059    
060                    if (models.length > 0) {
061                            soapModels = new PasswordTrackerSoap[models.length][models[0].length];
062                    }
063                    else {
064                            soapModels = new PasswordTrackerSoap[0][0];
065                    }
066    
067                    for (int i = 0; i < models.length; i++) {
068                            soapModels[i] = toSoapModels(models[i]);
069                    }
070    
071                    return soapModels;
072            }
073    
074            public static PasswordTrackerSoap[] toSoapModels(
075                    List<PasswordTracker> models) {
076                    List<PasswordTrackerSoap> soapModels = new ArrayList<PasswordTrackerSoap>(models.size());
077    
078                    for (PasswordTracker model : models) {
079                            soapModels.add(toSoapModel(model));
080                    }
081    
082                    return soapModels.toArray(new PasswordTrackerSoap[soapModels.size()]);
083            }
084    
085            public PasswordTrackerSoap() {
086            }
087    
088            public long getPrimaryKey() {
089                    return _passwordTrackerId;
090            }
091    
092            public void setPrimaryKey(long pk) {
093                    setPasswordTrackerId(pk);
094            }
095    
096            public long getMvccVersion() {
097                    return _mvccVersion;
098            }
099    
100            public void setMvccVersion(long mvccVersion) {
101                    _mvccVersion = mvccVersion;
102            }
103    
104            public long getPasswordTrackerId() {
105                    return _passwordTrackerId;
106            }
107    
108            public void setPasswordTrackerId(long passwordTrackerId) {
109                    _passwordTrackerId = passwordTrackerId;
110            }
111    
112            public long getCompanyId() {
113                    return _companyId;
114            }
115    
116            public void setCompanyId(long companyId) {
117                    _companyId = companyId;
118            }
119    
120            public long getUserId() {
121                    return _userId;
122            }
123    
124            public void setUserId(long userId) {
125                    _userId = userId;
126            }
127    
128            public Date getCreateDate() {
129                    return _createDate;
130            }
131    
132            public void setCreateDate(Date createDate) {
133                    _createDate = createDate;
134            }
135    
136            public String getPassword() {
137                    return _password;
138            }
139    
140            public void setPassword(String password) {
141                    _password = password;
142            }
143    
144            private long _mvccVersion;
145            private long _passwordTrackerId;
146            private long _companyId;
147            private long _userId;
148            private Date _createDate;
149            private String _password;
150    }