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   * <code>com.liferay.portlet.softwarecatalog.service.http.SCProductVersionServiceSoap</code>.
42   * </p>
43   *
44   * @author Brian Wing Shun Chan
45   *
46   * @see com.liferay.portlet.softwarecatalog.service.http.SCProductVersionServiceSoap
47   *
48   */
49  public class SCProductVersionSoap implements Serializable {
50      public static SCProductVersionSoap toSoapModel(SCProductVersion model) {
51          SCProductVersionSoap soapModel = new SCProductVersionSoap();
52  
53          soapModel.setProductVersionId(model.getProductVersionId());
54          soapModel.setCompanyId(model.getCompanyId());
55          soapModel.setUserId(model.getUserId());
56          soapModel.setUserName(model.getUserName());
57          soapModel.setCreateDate(model.getCreateDate());
58          soapModel.setModifiedDate(model.getModifiedDate());
59          soapModel.setProductEntryId(model.getProductEntryId());
60          soapModel.setVersion(model.getVersion());
61          soapModel.setChangeLog(model.getChangeLog());
62          soapModel.setDownloadPageURL(model.getDownloadPageURL());
63          soapModel.setDirectDownloadURL(model.getDirectDownloadURL());
64          soapModel.setRepoStoreArtifact(model.getRepoStoreArtifact());
65  
66          return soapModel;
67      }
68  
69      public static SCProductVersionSoap[] toSoapModels(SCProductVersion[] models) {
70          SCProductVersionSoap[] soapModels = new SCProductVersionSoap[models.length];
71  
72          for (int i = 0; i < models.length; i++) {
73              soapModels[i] = toSoapModel(models[i]);
74          }
75  
76          return soapModels;
77      }
78  
79      public static SCProductVersionSoap[][] toSoapModels(
80          SCProductVersion[][] models) {
81          SCProductVersionSoap[][] soapModels = null;
82  
83          if (models.length > 0) {
84              soapModels = new SCProductVersionSoap[models.length][models[0].length];
85          }
86          else {
87              soapModels = new SCProductVersionSoap[0][0];
88          }
89  
90          for (int i = 0; i < models.length; i++) {
91              soapModels[i] = toSoapModels(models[i]);
92          }
93  
94          return soapModels;
95      }
96  
97      public static SCProductVersionSoap[] toSoapModels(
98          List<SCProductVersion> models) {
99          List<SCProductVersionSoap> soapModels = new ArrayList<SCProductVersionSoap>(models.size());
100 
101         for (SCProductVersion model : models) {
102             soapModels.add(toSoapModel(model));
103         }
104 
105         return soapModels.toArray(new SCProductVersionSoap[soapModels.size()]);
106     }
107 
108     public SCProductVersionSoap() {
109     }
110 
111     public long getPrimaryKey() {
112         return _productVersionId;
113     }
114 
115     public void setPrimaryKey(long pk) {
116         setProductVersionId(pk);
117     }
118 
119     public long getProductVersionId() {
120         return _productVersionId;
121     }
122 
123     public void setProductVersionId(long productVersionId) {
124         _productVersionId = productVersionId;
125     }
126 
127     public long getCompanyId() {
128         return _companyId;
129     }
130 
131     public void setCompanyId(long companyId) {
132         _companyId = companyId;
133     }
134 
135     public long getUserId() {
136         return _userId;
137     }
138 
139     public void setUserId(long userId) {
140         _userId = userId;
141     }
142 
143     public String getUserName() {
144         return _userName;
145     }
146 
147     public void setUserName(String userName) {
148         _userName = userName;
149     }
150 
151     public Date getCreateDate() {
152         return _createDate;
153     }
154 
155     public void setCreateDate(Date createDate) {
156         _createDate = createDate;
157     }
158 
159     public Date getModifiedDate() {
160         return _modifiedDate;
161     }
162 
163     public void setModifiedDate(Date modifiedDate) {
164         _modifiedDate = modifiedDate;
165     }
166 
167     public long getProductEntryId() {
168         return _productEntryId;
169     }
170 
171     public void setProductEntryId(long productEntryId) {
172         _productEntryId = productEntryId;
173     }
174 
175     public String getVersion() {
176         return _version;
177     }
178 
179     public void setVersion(String version) {
180         _version = version;
181     }
182 
183     public String getChangeLog() {
184         return _changeLog;
185     }
186 
187     public void setChangeLog(String changeLog) {
188         _changeLog = changeLog;
189     }
190 
191     public String getDownloadPageURL() {
192         return _downloadPageURL;
193     }
194 
195     public void setDownloadPageURL(String downloadPageURL) {
196         _downloadPageURL = downloadPageURL;
197     }
198 
199     public String getDirectDownloadURL() {
200         return _directDownloadURL;
201     }
202 
203     public void setDirectDownloadURL(String directDownloadURL) {
204         _directDownloadURL = directDownloadURL;
205     }
206 
207     public boolean getRepoStoreArtifact() {
208         return _repoStoreArtifact;
209     }
210 
211     public boolean isRepoStoreArtifact() {
212         return _repoStoreArtifact;
213     }
214 
215     public void setRepoStoreArtifact(boolean repoStoreArtifact) {
216         _repoStoreArtifact = repoStoreArtifact;
217     }
218 
219     private long _productVersionId;
220     private long _companyId;
221     private long _userId;
222     private String _userName;
223     private Date _createDate;
224     private Date _modifiedDate;
225     private long _productEntryId;
226     private String _version;
227     private String _changeLog;
228     private String _downloadPageURL;
229     private String _directDownloadURL;
230     private boolean _repoStoreArtifact;
231 }