1   /**
2    * Copyright (c) 2000-2008 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(List models) {
70          List soapModels = new ArrayList(models.size());
71  
72          for (int i = 0; i < models.size(); i++) {
73              SCProductVersion model = (SCProductVersion)models.get(i);
74  
75              soapModels.add(toSoapModel(model));
76          }
77  
78          return (SCProductVersionSoap[])soapModels.toArray(new SCProductVersionSoap[0]);
79      }
80  
81      public SCProductVersionSoap() {
82      }
83  
84      public long getPrimaryKey() {
85          return _productVersionId;
86      }
87  
88      public void setPrimaryKey(long pk) {
89          setProductVersionId(pk);
90      }
91  
92      public long getProductVersionId() {
93          return _productVersionId;
94      }
95  
96      public void setProductVersionId(long productVersionId) {
97          _productVersionId = productVersionId;
98      }
99  
100     public long getCompanyId() {
101         return _companyId;
102     }
103 
104     public void setCompanyId(long companyId) {
105         _companyId = companyId;
106     }
107 
108     public long getUserId() {
109         return _userId;
110     }
111 
112     public void setUserId(long userId) {
113         _userId = userId;
114     }
115 
116     public String getUserName() {
117         return _userName;
118     }
119 
120     public void setUserName(String userName) {
121         _userName = userName;
122     }
123 
124     public Date getCreateDate() {
125         return _createDate;
126     }
127 
128     public void setCreateDate(Date createDate) {
129         _createDate = createDate;
130     }
131 
132     public Date getModifiedDate() {
133         return _modifiedDate;
134     }
135 
136     public void setModifiedDate(Date modifiedDate) {
137         _modifiedDate = modifiedDate;
138     }
139 
140     public long getProductEntryId() {
141         return _productEntryId;
142     }
143 
144     public void setProductEntryId(long productEntryId) {
145         _productEntryId = productEntryId;
146     }
147 
148     public String getVersion() {
149         return _version;
150     }
151 
152     public void setVersion(String version) {
153         _version = version;
154     }
155 
156     public String getChangeLog() {
157         return _changeLog;
158     }
159 
160     public void setChangeLog(String changeLog) {
161         _changeLog = changeLog;
162     }
163 
164     public String getDownloadPageURL() {
165         return _downloadPageURL;
166     }
167 
168     public void setDownloadPageURL(String downloadPageURL) {
169         _downloadPageURL = downloadPageURL;
170     }
171 
172     public String getDirectDownloadURL() {
173         return _directDownloadURL;
174     }
175 
176     public void setDirectDownloadURL(String directDownloadURL) {
177         _directDownloadURL = directDownloadURL;
178     }
179 
180     public boolean getRepoStoreArtifact() {
181         return _repoStoreArtifact;
182     }
183 
184     public boolean isRepoStoreArtifact() {
185         return _repoStoreArtifact;
186     }
187 
188     public void setRepoStoreArtifact(boolean repoStoreArtifact) {
189         _repoStoreArtifact = repoStoreArtifact;
190     }
191 
192     private long _productVersionId;
193     private long _companyId;
194     private long _userId;
195     private String _userName;
196     private Date _createDate;
197     private Date _modifiedDate;
198     private long _productEntryId;
199     private String _version;
200     private String _changeLog;
201     private String _downloadPageURL;
202     private String _directDownloadURL;
203     private boolean _repoStoreArtifact;
204 }