1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.softwarecatalog.model;
24  
25  import java.io.Serializable;
26  
27  import java.util.ArrayList;
28  import java.util.Date;
29  import java.util.List;
30  
31  /**
32   * <a href="SCProductVersionSoap.java.html"><b><i>View Source</i></b></a>
33   *
34   * <p>
35   * ServiceBuilder generated this class. Modifications in this class will be
36   * overwritten the next time is generated.
37   * </p>
38   *
39   * <p>
40   * This class is used by
41   * {@link com.liferay.portlet.softwarecatalog.service.http.SCProductVersionServiceSoap}.
42   * </p>
43   *
44   * @author    Brian Wing Shun Chan
45   * @see       com.liferay.portlet.softwarecatalog.service.http.SCProductVersionServiceSoap
46   * @generated
47   */
48  public class SCProductVersionSoap implements Serializable {
49      public static SCProductVersionSoap toSoapModel(SCProductVersion model) {
50          SCProductVersionSoap soapModel = new SCProductVersionSoap();
51  
52          soapModel.setProductVersionId(model.getProductVersionId());
53          soapModel.setCompanyId(model.getCompanyId());
54          soapModel.setUserId(model.getUserId());
55          soapModel.setUserName(model.getUserName());
56          soapModel.setCreateDate(model.getCreateDate());
57          soapModel.setModifiedDate(model.getModifiedDate());
58          soapModel.setProductEntryId(model.getProductEntryId());
59          soapModel.setVersion(model.getVersion());
60          soapModel.setChangeLog(model.getChangeLog());
61          soapModel.setDownloadPageURL(model.getDownloadPageURL());
62          soapModel.setDirectDownloadURL(model.getDirectDownloadURL());
63          soapModel.setRepoStoreArtifact(model.getRepoStoreArtifact());
64  
65          return soapModel;
66      }
67  
68      public static SCProductVersionSoap[] toSoapModels(SCProductVersion[] models) {
69          SCProductVersionSoap[] soapModels = new SCProductVersionSoap[models.length];
70  
71          for (int i = 0; i < models.length; i++) {
72              soapModels[i] = toSoapModel(models[i]);
73          }
74  
75          return soapModels;
76      }
77  
78      public static SCProductVersionSoap[][] toSoapModels(
79          SCProductVersion[][] models) {
80          SCProductVersionSoap[][] soapModels = null;
81  
82          if (models.length > 0) {
83              soapModels = new SCProductVersionSoap[models.length][models[0].length];
84          }
85          else {
86              soapModels = new SCProductVersionSoap[0][0];
87          }
88  
89          for (int i = 0; i < models.length; i++) {
90              soapModels[i] = toSoapModels(models[i]);
91          }
92  
93          return soapModels;
94      }
95  
96      public static SCProductVersionSoap[] toSoapModels(
97          List<SCProductVersion> models) {
98          List<SCProductVersionSoap> soapModels = new ArrayList<SCProductVersionSoap>(models.size());
99  
100         for (SCProductVersion model : models) {
101             soapModels.add(toSoapModel(model));
102         }
103 
104         return soapModels.toArray(new SCProductVersionSoap[soapModels.size()]);
105     }
106 
107     public SCProductVersionSoap() {
108     }
109 
110     public long getPrimaryKey() {
111         return _productVersionId;
112     }
113 
114     public void setPrimaryKey(long pk) {
115         setProductVersionId(pk);
116     }
117 
118     public long getProductVersionId() {
119         return _productVersionId;
120     }
121 
122     public void setProductVersionId(long productVersionId) {
123         _productVersionId = productVersionId;
124     }
125 
126     public long getCompanyId() {
127         return _companyId;
128     }
129 
130     public void setCompanyId(long companyId) {
131         _companyId = companyId;
132     }
133 
134     public long getUserId() {
135         return _userId;
136     }
137 
138     public void setUserId(long userId) {
139         _userId = userId;
140     }
141 
142     public String getUserName() {
143         return _userName;
144     }
145 
146     public void setUserName(String userName) {
147         _userName = userName;
148     }
149 
150     public Date getCreateDate() {
151         return _createDate;
152     }
153 
154     public void setCreateDate(Date createDate) {
155         _createDate = createDate;
156     }
157 
158     public Date getModifiedDate() {
159         return _modifiedDate;
160     }
161 
162     public void setModifiedDate(Date modifiedDate) {
163         _modifiedDate = modifiedDate;
164     }
165 
166     public long getProductEntryId() {
167         return _productEntryId;
168     }
169 
170     public void setProductEntryId(long productEntryId) {
171         _productEntryId = productEntryId;
172     }
173 
174     public String getVersion() {
175         return _version;
176     }
177 
178     public void setVersion(String version) {
179         _version = version;
180     }
181 
182     public String getChangeLog() {
183         return _changeLog;
184     }
185 
186     public void setChangeLog(String changeLog) {
187         _changeLog = changeLog;
188     }
189 
190     public String getDownloadPageURL() {
191         return _downloadPageURL;
192     }
193 
194     public void setDownloadPageURL(String downloadPageURL) {
195         _downloadPageURL = downloadPageURL;
196     }
197 
198     public String getDirectDownloadURL() {
199         return _directDownloadURL;
200     }
201 
202     public void setDirectDownloadURL(String directDownloadURL) {
203         _directDownloadURL = directDownloadURL;
204     }
205 
206     public boolean getRepoStoreArtifact() {
207         return _repoStoreArtifact;
208     }
209 
210     public boolean isRepoStoreArtifact() {
211         return _repoStoreArtifact;
212     }
213 
214     public void setRepoStoreArtifact(boolean repoStoreArtifact) {
215         _repoStoreArtifact = repoStoreArtifact;
216     }
217 
218     private long _productVersionId;
219     private long _companyId;
220     private long _userId;
221     private String _userName;
222     private Date _createDate;
223     private Date _modifiedDate;
224     private long _productEntryId;
225     private String _version;
226     private String _changeLog;
227     private String _downloadPageURL;
228     private String _directDownloadURL;
229     private boolean _repoStoreArtifact;
230 }