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.imagegallery.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="IGImageSoap.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.imagegallery.service.http.IGImageServiceSoap</code>.
040: * </p>
041: *
042: * @author Brian Wing Shun Chan
043: *
044: * @see com.liferay.portlet.imagegallery.service.http.IGImageServiceSoap
045: *
046: */
047: public class IGImageSoap implements Serializable {
048: public static IGImageSoap toSoapModel(IGImage model) {
049: IGImageSoap soapModel = new IGImageSoap();
050:
051: soapModel.setUuid(model.getUuid());
052: soapModel.setImageId(model.getImageId());
053: soapModel.setCompanyId(model.getCompanyId());
054: soapModel.setUserId(model.getUserId());
055: soapModel.setCreateDate(model.getCreateDate());
056: soapModel.setModifiedDate(model.getModifiedDate());
057: soapModel.setFolderId(model.getFolderId());
058: soapModel.setDescription(model.getDescription());
059: soapModel.setSmallImageId(model.getSmallImageId());
060: soapModel.setLargeImageId(model.getLargeImageId());
061:
062: return soapModel;
063: }
064:
065: public static IGImageSoap[] toSoapModels(List models) {
066: List soapModels = new ArrayList(models.size());
067:
068: for (int i = 0; i < models.size(); i++) {
069: IGImage model = (IGImage) models.get(i);
070:
071: soapModels.add(toSoapModel(model));
072: }
073:
074: return (IGImageSoap[]) soapModels.toArray(new IGImageSoap[0]);
075: }
076:
077: public IGImageSoap() {
078: }
079:
080: public long getPrimaryKey() {
081: return _imageId;
082: }
083:
084: public void setPrimaryKey(long pk) {
085: setImageId(pk);
086: }
087:
088: public String getUuid() {
089: return _uuid;
090: }
091:
092: public void setUuid(String uuid) {
093: _uuid = uuid;
094: }
095:
096: public long getImageId() {
097: return _imageId;
098: }
099:
100: public void setImageId(long imageId) {
101: _imageId = imageId;
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 Date getCreateDate() {
121: return _createDate;
122: }
123:
124: public void setCreateDate(Date createDate) {
125: _createDate = createDate;
126: }
127:
128: public Date getModifiedDate() {
129: return _modifiedDate;
130: }
131:
132: public void setModifiedDate(Date modifiedDate) {
133: _modifiedDate = modifiedDate;
134: }
135:
136: public long getFolderId() {
137: return _folderId;
138: }
139:
140: public void setFolderId(long folderId) {
141: _folderId = folderId;
142: }
143:
144: public String getDescription() {
145: return _description;
146: }
147:
148: public void setDescription(String description) {
149: _description = description;
150: }
151:
152: public long getSmallImageId() {
153: return _smallImageId;
154: }
155:
156: public void setSmallImageId(long smallImageId) {
157: _smallImageId = smallImageId;
158: }
159:
160: public long getLargeImageId() {
161: return _largeImageId;
162: }
163:
164: public void setLargeImageId(long largeImageId) {
165: _largeImageId = largeImageId;
166: }
167:
168: private String _uuid;
169: private long _imageId;
170: private long _companyId;
171: private long _userId;
172: private Date _createDate;
173: private Date _modifiedDate;
174: private long _folderId;
175: private String _description;
176: private long _smallImageId;
177: private long _largeImageId;
178: }
|