001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portlet.tags.model;
022:
023: import java.io.Serializable;
024:
025: import java.util.ArrayList;
026: import java.util.Date;
027: import java.util.List;
028:
029: /**
030: * <a href="TagsAssetSoap.java.html"><b><i>View Source</i></b></a>
031: *
032: * <p>
033: * ServiceBuilder generated this class. Modifications in this class will be
034: * overwritten the next time is generated.
035: * </p>
036: *
037: * <p>
038: * This class is used by
039: * <code>com.liferay.portlet.tags.service.http.TagsAssetServiceSoap</code>.
040: * </p>
041: *
042: * @author Brian Wing Shun Chan
043: *
044: * @see com.liferay.portlet.tags.service.http.TagsAssetServiceSoap
045: *
046: */
047: public class TagsAssetSoap implements Serializable {
048: public static TagsAssetSoap toSoapModel(TagsAsset model) {
049: TagsAssetSoap soapModel = new TagsAssetSoap();
050:
051: soapModel.setAssetId(model.getAssetId());
052: soapModel.setGroupId(model.getGroupId());
053: soapModel.setCompanyId(model.getCompanyId());
054: soapModel.setUserId(model.getUserId());
055: soapModel.setUserName(model.getUserName());
056: soapModel.setCreateDate(model.getCreateDate());
057: soapModel.setModifiedDate(model.getModifiedDate());
058: soapModel.setClassNameId(model.getClassNameId());
059: soapModel.setClassPK(model.getClassPK());
060: soapModel.setStartDate(model.getStartDate());
061: soapModel.setEndDate(model.getEndDate());
062: soapModel.setPublishDate(model.getPublishDate());
063: soapModel.setExpirationDate(model.getExpirationDate());
064: soapModel.setMimeType(model.getMimeType());
065: soapModel.setTitle(model.getTitle());
066: soapModel.setDescription(model.getDescription());
067: soapModel.setSummary(model.getSummary());
068: soapModel.setUrl(model.getUrl());
069: soapModel.setHeight(model.getHeight());
070: soapModel.setWidth(model.getWidth());
071: soapModel.setPriority(model.getPriority());
072: soapModel.setViewCount(model.getViewCount());
073:
074: return soapModel;
075: }
076:
077: public static TagsAssetSoap[] toSoapModels(List models) {
078: List soapModels = new ArrayList(models.size());
079:
080: for (int i = 0; i < models.size(); i++) {
081: TagsAsset model = (TagsAsset) models.get(i);
082:
083: soapModels.add(toSoapModel(model));
084: }
085:
086: return (TagsAssetSoap[]) soapModels
087: .toArray(new TagsAssetSoap[0]);
088: }
089:
090: public TagsAssetSoap() {
091: }
092:
093: public long getPrimaryKey() {
094: return _assetId;
095: }
096:
097: public void setPrimaryKey(long pk) {
098: setAssetId(pk);
099: }
100:
101: public long getAssetId() {
102: return _assetId;
103: }
104:
105: public void setAssetId(long assetId) {
106: _assetId = assetId;
107: }
108:
109: public long getGroupId() {
110: return _groupId;
111: }
112:
113: public void setGroupId(long groupId) {
114: _groupId = groupId;
115: }
116:
117: public long getCompanyId() {
118: return _companyId;
119: }
120:
121: public void setCompanyId(long companyId) {
122: _companyId = companyId;
123: }
124:
125: public long getUserId() {
126: return _userId;
127: }
128:
129: public void setUserId(long userId) {
130: _userId = userId;
131: }
132:
133: public String getUserName() {
134: return _userName;
135: }
136:
137: public void setUserName(String userName) {
138: _userName = userName;
139: }
140:
141: public Date getCreateDate() {
142: return _createDate;
143: }
144:
145: public void setCreateDate(Date createDate) {
146: _createDate = createDate;
147: }
148:
149: public Date getModifiedDate() {
150: return _modifiedDate;
151: }
152:
153: public void setModifiedDate(Date modifiedDate) {
154: _modifiedDate = modifiedDate;
155: }
156:
157: public long getClassNameId() {
158: return _classNameId;
159: }
160:
161: public void setClassNameId(long classNameId) {
162: _classNameId = classNameId;
163: }
164:
165: public long getClassPK() {
166: return _classPK;
167: }
168:
169: public void setClassPK(long classPK) {
170: _classPK = classPK;
171: }
172:
173: public Date getStartDate() {
174: return _startDate;
175: }
176:
177: public void setStartDate(Date startDate) {
178: _startDate = startDate;
179: }
180:
181: public Date getEndDate() {
182: return _endDate;
183: }
184:
185: public void setEndDate(Date endDate) {
186: _endDate = endDate;
187: }
188:
189: public Date getPublishDate() {
190: return _publishDate;
191: }
192:
193: public void setPublishDate(Date publishDate) {
194: _publishDate = publishDate;
195: }
196:
197: public Date getExpirationDate() {
198: return _expirationDate;
199: }
200:
201: public void setExpirationDate(Date expirationDate) {
202: _expirationDate = expirationDate;
203: }
204:
205: public String getMimeType() {
206: return _mimeType;
207: }
208:
209: public void setMimeType(String mimeType) {
210: _mimeType = mimeType;
211: }
212:
213: public String getTitle() {
214: return _title;
215: }
216:
217: public void setTitle(String title) {
218: _title = title;
219: }
220:
221: public String getDescription() {
222: return _description;
223: }
224:
225: public void setDescription(String description) {
226: _description = description;
227: }
228:
229: public String getSummary() {
230: return _summary;
231: }
232:
233: public void setSummary(String summary) {
234: _summary = summary;
235: }
236:
237: public String getUrl() {
238: return _url;
239: }
240:
241: public void setUrl(String url) {
242: _url = url;
243: }
244:
245: public int getHeight() {
246: return _height;
247: }
248:
249: public void setHeight(int height) {
250: _height = height;
251: }
252:
253: public int getWidth() {
254: return _width;
255: }
256:
257: public void setWidth(int width) {
258: _width = width;
259: }
260:
261: public double getPriority() {
262: return _priority;
263: }
264:
265: public void setPriority(double priority) {
266: _priority = priority;
267: }
268:
269: public int getViewCount() {
270: return _viewCount;
271: }
272:
273: public void setViewCount(int viewCount) {
274: _viewCount = viewCount;
275: }
276:
277: private long _assetId;
278: private long _groupId;
279: private long _companyId;
280: private long _userId;
281: private String _userName;
282: private Date _createDate;
283: private Date _modifiedDate;
284: private long _classNameId;
285: private long _classPK;
286: private Date _startDate;
287: private Date _endDate;
288: private Date _publishDate;
289: private Date _expirationDate;
290: private String _mimeType;
291: private String _title;
292: private String _description;
293: private String _summary;
294: private String _url;
295: private int _height;
296: private int _width;
297: private double _priority;
298: private int _viewCount;
299: }
|