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