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