001
014
015 package com.liferay.portlet.imagegallery.model;
016
017 import java.io.Serializable;
018
019 import java.util.ArrayList;
020 import java.util.Date;
021 import java.util.List;
022
023
033 public class IGImageSoap implements Serializable {
034 public static IGImageSoap toSoapModel(IGImage model) {
035 IGImageSoap soapModel = new IGImageSoap();
036
037 soapModel.setUuid(model.getUuid());
038 soapModel.setImageId(model.getImageId());
039 soapModel.setGroupId(model.getGroupId());
040 soapModel.setCompanyId(model.getCompanyId());
041 soapModel.setUserId(model.getUserId());
042 soapModel.setCreateDate(model.getCreateDate());
043 soapModel.setModifiedDate(model.getModifiedDate());
044 soapModel.setFolderId(model.getFolderId());
045 soapModel.setName(model.getName());
046 soapModel.setDescription(model.getDescription());
047 soapModel.setSmallImageId(model.getSmallImageId());
048 soapModel.setLargeImageId(model.getLargeImageId());
049 soapModel.setCustom1ImageId(model.getCustom1ImageId());
050 soapModel.setCustom2ImageId(model.getCustom2ImageId());
051
052 return soapModel;
053 }
054
055 public static IGImageSoap[] toSoapModels(IGImage[] models) {
056 IGImageSoap[] soapModels = new IGImageSoap[models.length];
057
058 for (int i = 0; i < models.length; i++) {
059 soapModels[i] = toSoapModel(models[i]);
060 }
061
062 return soapModels;
063 }
064
065 public static IGImageSoap[][] toSoapModels(IGImage[][] models) {
066 IGImageSoap[][] soapModels = null;
067
068 if (models.length > 0) {
069 soapModels = new IGImageSoap[models.length][models[0].length];
070 }
071 else {
072 soapModels = new IGImageSoap[0][0];
073 }
074
075 for (int i = 0; i < models.length; i++) {
076 soapModels[i] = toSoapModels(models[i]);
077 }
078
079 return soapModels;
080 }
081
082 public static IGImageSoap[] toSoapModels(List<IGImage> models) {
083 List<IGImageSoap> soapModels = new ArrayList<IGImageSoap>(models.size());
084
085 for (IGImage model : models) {
086 soapModels.add(toSoapModel(model));
087 }
088
089 return soapModels.toArray(new IGImageSoap[soapModels.size()]);
090 }
091
092 public IGImageSoap() {
093 }
094
095 public long getPrimaryKey() {
096 return _imageId;
097 }
098
099 public void setPrimaryKey(long pk) {
100 setImageId(pk);
101 }
102
103 public String getUuid() {
104 return _uuid;
105 }
106
107 public void setUuid(String uuid) {
108 _uuid = uuid;
109 }
110
111 public long getImageId() {
112 return _imageId;
113 }
114
115 public void setImageId(long imageId) {
116 _imageId = imageId;
117 }
118
119 public long getGroupId() {
120 return _groupId;
121 }
122
123 public void setGroupId(long groupId) {
124 _groupId = groupId;
125 }
126
127 public long getCompanyId() {
128 return _companyId;
129 }
130
131 public void setCompanyId(long companyId) {
132 _companyId = companyId;
133 }
134
135 public long getUserId() {
136 return _userId;
137 }
138
139 public void setUserId(long userId) {
140 _userId = userId;
141 }
142
143 public Date getCreateDate() {
144 return _createDate;
145 }
146
147 public void setCreateDate(Date createDate) {
148 _createDate = createDate;
149 }
150
151 public Date getModifiedDate() {
152 return _modifiedDate;
153 }
154
155 public void setModifiedDate(Date modifiedDate) {
156 _modifiedDate = modifiedDate;
157 }
158
159 public long getFolderId() {
160 return _folderId;
161 }
162
163 public void setFolderId(long folderId) {
164 _folderId = folderId;
165 }
166
167 public String getName() {
168 return _name;
169 }
170
171 public void setName(String name) {
172 _name = name;
173 }
174
175 public String getDescription() {
176 return _description;
177 }
178
179 public void setDescription(String description) {
180 _description = description;
181 }
182
183 public long getSmallImageId() {
184 return _smallImageId;
185 }
186
187 public void setSmallImageId(long smallImageId) {
188 _smallImageId = smallImageId;
189 }
190
191 public long getLargeImageId() {
192 return _largeImageId;
193 }
194
195 public void setLargeImageId(long largeImageId) {
196 _largeImageId = largeImageId;
197 }
198
199 public long getCustom1ImageId() {
200 return _custom1ImageId;
201 }
202
203 public void setCustom1ImageId(long custom1ImageId) {
204 _custom1ImageId = custom1ImageId;
205 }
206
207 public long getCustom2ImageId() {
208 return _custom2ImageId;
209 }
210
211 public void setCustom2ImageId(long custom2ImageId) {
212 _custom2ImageId = custom2ImageId;
213 }
214
215 private String _uuid;
216 private long _imageId;
217 private long _groupId;
218 private long _companyId;
219 private long _userId;
220 private Date _createDate;
221 private Date _modifiedDate;
222 private long _folderId;
223 private String _name;
224 private String _description;
225 private long _smallImageId;
226 private long _largeImageId;
227 private long _custom1ImageId;
228 private long _custom2ImageId;
229 }