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