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.portlet.softwarecatalog.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, specifically {@link com.liferay.portlet.softwarecatalog.service.http.SCProductVersionServiceSoap}.
025     *
026     * @author    Brian Wing Shun Chan
027     * @see       com.liferay.portlet.softwarecatalog.service.http.SCProductVersionServiceSoap
028     * @generated
029     */
030    public class SCProductVersionSoap implements Serializable {
031            public static SCProductVersionSoap toSoapModel(SCProductVersion model) {
032                    SCProductVersionSoap soapModel = new SCProductVersionSoap();
033    
034                    soapModel.setProductVersionId(model.getProductVersionId());
035                    soapModel.setCompanyId(model.getCompanyId());
036                    soapModel.setUserId(model.getUserId());
037                    soapModel.setUserName(model.getUserName());
038                    soapModel.setCreateDate(model.getCreateDate());
039                    soapModel.setModifiedDate(model.getModifiedDate());
040                    soapModel.setProductEntryId(model.getProductEntryId());
041                    soapModel.setVersion(model.getVersion());
042                    soapModel.setChangeLog(model.getChangeLog());
043                    soapModel.setDownloadPageURL(model.getDownloadPageURL());
044                    soapModel.setDirectDownloadURL(model.getDirectDownloadURL());
045                    soapModel.setRepoStoreArtifact(model.getRepoStoreArtifact());
046    
047                    return soapModel;
048            }
049    
050            public static SCProductVersionSoap[] toSoapModels(SCProductVersion[] models) {
051                    SCProductVersionSoap[] soapModels = new SCProductVersionSoap[models.length];
052    
053                    for (int i = 0; i < models.length; i++) {
054                            soapModels[i] = toSoapModel(models[i]);
055                    }
056    
057                    return soapModels;
058            }
059    
060            public static SCProductVersionSoap[][] toSoapModels(
061                    SCProductVersion[][] models) {
062                    SCProductVersionSoap[][] soapModels = null;
063    
064                    if (models.length > 0) {
065                            soapModels = new SCProductVersionSoap[models.length][models[0].length];
066                    }
067                    else {
068                            soapModels = new SCProductVersionSoap[0][0];
069                    }
070    
071                    for (int i = 0; i < models.length; i++) {
072                            soapModels[i] = toSoapModels(models[i]);
073                    }
074    
075                    return soapModels;
076            }
077    
078            public static SCProductVersionSoap[] toSoapModels(
079                    List<SCProductVersion> models) {
080                    List<SCProductVersionSoap> soapModels = new ArrayList<SCProductVersionSoap>(models.size());
081    
082                    for (SCProductVersion model : models) {
083                            soapModels.add(toSoapModel(model));
084                    }
085    
086                    return soapModels.toArray(new SCProductVersionSoap[soapModels.size()]);
087            }
088    
089            public SCProductVersionSoap() {
090            }
091    
092            public long getPrimaryKey() {
093                    return _productVersionId;
094            }
095    
096            public void setPrimaryKey(long pk) {
097                    setProductVersionId(pk);
098            }
099    
100            public long getProductVersionId() {
101                    return _productVersionId;
102            }
103    
104            public void setProductVersionId(long productVersionId) {
105                    _productVersionId = productVersionId;
106            }
107    
108            public long getCompanyId() {
109                    return _companyId;
110            }
111    
112            public void setCompanyId(long companyId) {
113                    _companyId = companyId;
114            }
115    
116            public long getUserId() {
117                    return _userId;
118            }
119    
120            public void setUserId(long userId) {
121                    _userId = userId;
122            }
123    
124            public String getUserName() {
125                    return _userName;
126            }
127    
128            public void setUserName(String userName) {
129                    _userName = userName;
130            }
131    
132            public Date getCreateDate() {
133                    return _createDate;
134            }
135    
136            public void setCreateDate(Date createDate) {
137                    _createDate = createDate;
138            }
139    
140            public Date getModifiedDate() {
141                    return _modifiedDate;
142            }
143    
144            public void setModifiedDate(Date modifiedDate) {
145                    _modifiedDate = modifiedDate;
146            }
147    
148            public long getProductEntryId() {
149                    return _productEntryId;
150            }
151    
152            public void setProductEntryId(long productEntryId) {
153                    _productEntryId = productEntryId;
154            }
155    
156            public String getVersion() {
157                    return _version;
158            }
159    
160            public void setVersion(String version) {
161                    _version = version;
162            }
163    
164            public String getChangeLog() {
165                    return _changeLog;
166            }
167    
168            public void setChangeLog(String changeLog) {
169                    _changeLog = changeLog;
170            }
171    
172            public String getDownloadPageURL() {
173                    return _downloadPageURL;
174            }
175    
176            public void setDownloadPageURL(String downloadPageURL) {
177                    _downloadPageURL = downloadPageURL;
178            }
179    
180            public String getDirectDownloadURL() {
181                    return _directDownloadURL;
182            }
183    
184            public void setDirectDownloadURL(String directDownloadURL) {
185                    _directDownloadURL = directDownloadURL;
186            }
187    
188            public boolean getRepoStoreArtifact() {
189                    return _repoStoreArtifact;
190            }
191    
192            public boolean isRepoStoreArtifact() {
193                    return _repoStoreArtifact;
194            }
195    
196            public void setRepoStoreArtifact(boolean repoStoreArtifact) {
197                    _repoStoreArtifact = repoStoreArtifact;
198            }
199    
200            private long _productVersionId;
201            private long _companyId;
202            private long _userId;
203            private String _userName;
204            private Date _createDate;
205            private Date _modifiedDate;
206            private long _productEntryId;
207            private String _version;
208            private String _changeLog;
209            private String _downloadPageURL;
210            private String _directDownloadURL;
211            private boolean _repoStoreArtifact;
212    }