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