1
22
23 package com.liferay.portlet.tags.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 TagsAssetSoap implements Serializable {
49 public static TagsAssetSoap toSoapModel(TagsAsset model) {
50 TagsAssetSoap soapModel = new TagsAssetSoap();
51 soapModel.setAssetId(model.getAssetId());
52 soapModel.setCompanyId(model.getCompanyId());
53 soapModel.setUserId(model.getUserId());
54 soapModel.setUserName(model.getUserName());
55 soapModel.setCreateDate(model.getCreateDate());
56 soapModel.setModifiedDate(model.getModifiedDate());
57 soapModel.setClassNameId(model.getClassNameId());
58 soapModel.setClassPK(model.getClassPK());
59 soapModel.setStartDate(model.getStartDate());
60 soapModel.setEndDate(model.getEndDate());
61 soapModel.setPublishDate(model.getPublishDate());
62 soapModel.setExpirationDate(model.getExpirationDate());
63 soapModel.setMimeType(model.getMimeType());
64 soapModel.setTitle(model.getTitle());
65 soapModel.setDescription(model.getDescription());
66 soapModel.setSummary(model.getSummary());
67 soapModel.setUrl(model.getUrl());
68 soapModel.setHeight(model.getHeight());
69 soapModel.setWidth(model.getWidth());
70
71 return soapModel;
72 }
73
74 public static TagsAssetSoap[] toSoapModels(List models) {
75 List soapModels = new ArrayList(models.size());
76
77 for (int i = 0; i < models.size(); i++) {
78 TagsAsset model = (TagsAsset)models.get(i);
79 soapModels.add(toSoapModel(model));
80 }
81
82 return (TagsAssetSoap[])soapModels.toArray(new TagsAssetSoap[0]);
83 }
84
85 public TagsAssetSoap() {
86 }
87
88 public long getPrimaryKey() {
89 return _assetId;
90 }
91
92 public void setPrimaryKey(long pk) {
93 setAssetId(pk);
94 }
95
96 public long getAssetId() {
97 return _assetId;
98 }
99
100 public void setAssetId(long assetId) {
101 _assetId = assetId;
102 }
103
104 public long getCompanyId() {
105 return _companyId;
106 }
107
108 public void setCompanyId(long companyId) {
109 _companyId = companyId;
110 }
111
112 public long getUserId() {
113 return _userId;
114 }
115
116 public void setUserId(long userId) {
117 _userId = userId;
118 }
119
120 public String getUserName() {
121 return _userName;
122 }
123
124 public void setUserName(String userName) {
125 _userName = userName;
126 }
127
128 public Date getCreateDate() {
129 return _createDate;
130 }
131
132 public void setCreateDate(Date createDate) {
133 _createDate = createDate;
134 }
135
136 public Date getModifiedDate() {
137 return _modifiedDate;
138 }
139
140 public void setModifiedDate(Date modifiedDate) {
141 _modifiedDate = modifiedDate;
142 }
143
144 public long getClassNameId() {
145 return _classNameId;
146 }
147
148 public void setClassNameId(long classNameId) {
149 _classNameId = classNameId;
150 }
151
152 public long getClassPK() {
153 return _classPK;
154 }
155
156 public void setClassPK(long classPK) {
157 _classPK = classPK;
158 }
159
160 public Date getStartDate() {
161 return _startDate;
162 }
163
164 public void setStartDate(Date startDate) {
165 _startDate = startDate;
166 }
167
168 public Date getEndDate() {
169 return _endDate;
170 }
171
172 public void setEndDate(Date endDate) {
173 _endDate = endDate;
174 }
175
176 public Date getPublishDate() {
177 return _publishDate;
178 }
179
180 public void setPublishDate(Date publishDate) {
181 _publishDate = publishDate;
182 }
183
184 public Date getExpirationDate() {
185 return _expirationDate;
186 }
187
188 public void setExpirationDate(Date expirationDate) {
189 _expirationDate = expirationDate;
190 }
191
192 public String getMimeType() {
193 return _mimeType;
194 }
195
196 public void setMimeType(String mimeType) {
197 _mimeType = mimeType;
198 }
199
200 public String getTitle() {
201 return _title;
202 }
203
204 public void setTitle(String title) {
205 _title = title;
206 }
207
208 public String getDescription() {
209 return _description;
210 }
211
212 public void setDescription(String description) {
213 _description = description;
214 }
215
216 public String getSummary() {
217 return _summary;
218 }
219
220 public void setSummary(String summary) {
221 _summary = summary;
222 }
223
224 public String getUrl() {
225 return _url;
226 }
227
228 public void setUrl(String url) {
229 _url = url;
230 }
231
232 public int getHeight() {
233 return _height;
234 }
235
236 public void setHeight(int height) {
237 _height = height;
238 }
239
240 public int getWidth() {
241 return _width;
242 }
243
244 public void setWidth(int width) {
245 _width = width;
246 }
247
248 private long _assetId;
249 private long _companyId;
250 private long _userId;
251 private String _userName;
252 private Date _createDate;
253 private Date _modifiedDate;
254 private long _classNameId;
255 private long _classPK;
256 private Date _startDate;
257 private Date _endDate;
258 private Date _publishDate;
259 private Date _expirationDate;
260 private String _mimeType;
261 private String _title;
262 private String _description;
263 private String _summary;
264 private String _url;
265 private int _height;
266 private int _width;
267 }