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