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="SCProductEntrySoap.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.SCProductEntryServiceSoap</code>.
42   * </p>
43   *
44   * @author Brian Wing Shun Chan
45   *
46   * @see com.liferay.portlet.softwarecatalog.service.http.SCProductEntryServiceSoap
47   *
48   */
49  public class SCProductEntrySoap implements Serializable {
50      public static SCProductEntrySoap toSoapModel(SCProductEntry model) {
51          SCProductEntrySoap soapModel = new SCProductEntrySoap();
52  
53          soapModel.setProductEntryId(model.getProductEntryId());
54          soapModel.setGroupId(model.getGroupId());
55          soapModel.setCompanyId(model.getCompanyId());
56          soapModel.setUserId(model.getUserId());
57          soapModel.setUserName(model.getUserName());
58          soapModel.setCreateDate(model.getCreateDate());
59          soapModel.setModifiedDate(model.getModifiedDate());
60          soapModel.setName(model.getName());
61          soapModel.setType(model.getType());
62          soapModel.setTags(model.getTags());
63          soapModel.setShortDescription(model.getShortDescription());
64          soapModel.setLongDescription(model.getLongDescription());
65          soapModel.setPageURL(model.getPageURL());
66          soapModel.setAuthor(model.getAuthor());
67          soapModel.setRepoGroupId(model.getRepoGroupId());
68          soapModel.setRepoArtifactId(model.getRepoArtifactId());
69  
70          return soapModel;
71      }
72  
73      public static SCProductEntrySoap[] toSoapModels(List models) {
74          List soapModels = new ArrayList(models.size());
75  
76          for (int i = 0; i < models.size(); i++) {
77              SCProductEntry model = (SCProductEntry)models.get(i);
78  
79              soapModels.add(toSoapModel(model));
80          }
81  
82          return (SCProductEntrySoap[])soapModels.toArray(new SCProductEntrySoap[0]);
83      }
84  
85      public SCProductEntrySoap() {
86      }
87  
88      public long getPrimaryKey() {
89          return _productEntryId;
90      }
91  
92      public void setPrimaryKey(long pk) {
93          setProductEntryId(pk);
94      }
95  
96      public long getProductEntryId() {
97          return _productEntryId;
98      }
99  
100     public void setProductEntryId(long productEntryId) {
101         _productEntryId = productEntryId;
102     }
103 
104     public long getGroupId() {
105         return _groupId;
106     }
107 
108     public void setGroupId(long groupId) {
109         _groupId = groupId;
110     }
111 
112     public long getCompanyId() {
113         return _companyId;
114     }
115 
116     public void setCompanyId(long companyId) {
117         _companyId = companyId;
118     }
119 
120     public long getUserId() {
121         return _userId;
122     }
123 
124     public void setUserId(long userId) {
125         _userId = userId;
126     }
127 
128     public String getUserName() {
129         return _userName;
130     }
131 
132     public void setUserName(String userName) {
133         _userName = userName;
134     }
135 
136     public Date getCreateDate() {
137         return _createDate;
138     }
139 
140     public void setCreateDate(Date createDate) {
141         _createDate = createDate;
142     }
143 
144     public Date getModifiedDate() {
145         return _modifiedDate;
146     }
147 
148     public void setModifiedDate(Date modifiedDate) {
149         _modifiedDate = modifiedDate;
150     }
151 
152     public String getName() {
153         return _name;
154     }
155 
156     public void setName(String name) {
157         _name = name;
158     }
159 
160     public String getType() {
161         return _type;
162     }
163 
164     public void setType(String type) {
165         _type = type;
166     }
167 
168     public String getTags() {
169         return _tags;
170     }
171 
172     public void setTags(String tags) {
173         _tags = tags;
174     }
175 
176     public String getShortDescription() {
177         return _shortDescription;
178     }
179 
180     public void setShortDescription(String shortDescription) {
181         _shortDescription = shortDescription;
182     }
183 
184     public String getLongDescription() {
185         return _longDescription;
186     }
187 
188     public void setLongDescription(String longDescription) {
189         _longDescription = longDescription;
190     }
191 
192     public String getPageURL() {
193         return _pageURL;
194     }
195 
196     public void setPageURL(String pageURL) {
197         _pageURL = pageURL;
198     }
199 
200     public String getAuthor() {
201         return _author;
202     }
203 
204     public void setAuthor(String author) {
205         _author = author;
206     }
207 
208     public String getRepoGroupId() {
209         return _repoGroupId;
210     }
211 
212     public void setRepoGroupId(String repoGroupId) {
213         _repoGroupId = repoGroupId;
214     }
215 
216     public String getRepoArtifactId() {
217         return _repoArtifactId;
218     }
219 
220     public void setRepoArtifactId(String repoArtifactId) {
221         _repoArtifactId = repoArtifactId;
222     }
223 
224     private long _productEntryId;
225     private long _groupId;
226     private long _companyId;
227     private long _userId;
228     private String _userName;
229     private Date _createDate;
230     private Date _modifiedDate;
231     private String _name;
232     private String _type;
233     private String _tags;
234     private String _shortDescription;
235     private String _longDescription;
236     private String _pageURL;
237     private String _author;
238     private String _repoGroupId;
239     private String _repoArtifactId;
240 }