001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.dynamicdatamapping.model;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import java.io.Serializable;
020    
021    import java.util.ArrayList;
022    import java.util.Date;
023    import java.util.List;
024    
025    /**
026     * This class is used by SOAP remote services, specifically {@link com.liferay.portlet.dynamicdatamapping.service.http.DDMTemplateServiceSoap}.
027     *
028     * @author Brian Wing Shun Chan
029     * @see com.liferay.portlet.dynamicdatamapping.service.http.DDMTemplateServiceSoap
030     * @generated
031     */
032    @ProviderType
033    public class DDMTemplateSoap implements Serializable {
034            public static DDMTemplateSoap toSoapModel(DDMTemplate model) {
035                    DDMTemplateSoap soapModel = new DDMTemplateSoap();
036    
037                    soapModel.setUuid(model.getUuid());
038                    soapModel.setTemplateId(model.getTemplateId());
039                    soapModel.setGroupId(model.getGroupId());
040                    soapModel.setCompanyId(model.getCompanyId());
041                    soapModel.setUserId(model.getUserId());
042                    soapModel.setUserName(model.getUserName());
043                    soapModel.setVersionUserId(model.getVersionUserId());
044                    soapModel.setVersionUserName(model.getVersionUserName());
045                    soapModel.setCreateDate(model.getCreateDate());
046                    soapModel.setModifiedDate(model.getModifiedDate());
047                    soapModel.setClassNameId(model.getClassNameId());
048                    soapModel.setClassPK(model.getClassPK());
049                    soapModel.setResourceClassNameId(model.getResourceClassNameId());
050                    soapModel.setTemplateKey(model.getTemplateKey());
051                    soapModel.setVersion(model.getVersion());
052                    soapModel.setName(model.getName());
053                    soapModel.setDescription(model.getDescription());
054                    soapModel.setType(model.getType());
055                    soapModel.setMode(model.getMode());
056                    soapModel.setLanguage(model.getLanguage());
057                    soapModel.setScript(model.getScript());
058                    soapModel.setCacheable(model.getCacheable());
059                    soapModel.setSmallImage(model.getSmallImage());
060                    soapModel.setSmallImageId(model.getSmallImageId());
061                    soapModel.setSmallImageURL(model.getSmallImageURL());
062    
063                    return soapModel;
064            }
065    
066            public static DDMTemplateSoap[] toSoapModels(DDMTemplate[] models) {
067                    DDMTemplateSoap[] soapModels = new DDMTemplateSoap[models.length];
068    
069                    for (int i = 0; i < models.length; i++) {
070                            soapModels[i] = toSoapModel(models[i]);
071                    }
072    
073                    return soapModels;
074            }
075    
076            public static DDMTemplateSoap[][] toSoapModels(DDMTemplate[][] models) {
077                    DDMTemplateSoap[][] soapModels = null;
078    
079                    if (models.length > 0) {
080                            soapModels = new DDMTemplateSoap[models.length][models[0].length];
081                    }
082                    else {
083                            soapModels = new DDMTemplateSoap[0][0];
084                    }
085    
086                    for (int i = 0; i < models.length; i++) {
087                            soapModels[i] = toSoapModels(models[i]);
088                    }
089    
090                    return soapModels;
091            }
092    
093            public static DDMTemplateSoap[] toSoapModels(List<DDMTemplate> models) {
094                    List<DDMTemplateSoap> soapModels = new ArrayList<DDMTemplateSoap>(models.size());
095    
096                    for (DDMTemplate model : models) {
097                            soapModels.add(toSoapModel(model));
098                    }
099    
100                    return soapModels.toArray(new DDMTemplateSoap[soapModels.size()]);
101            }
102    
103            public DDMTemplateSoap() {
104            }
105    
106            public long getPrimaryKey() {
107                    return _templateId;
108            }
109    
110            public void setPrimaryKey(long pk) {
111                    setTemplateId(pk);
112            }
113    
114            public String getUuid() {
115                    return _uuid;
116            }
117    
118            public void setUuid(String uuid) {
119                    _uuid = uuid;
120            }
121    
122            public long getTemplateId() {
123                    return _templateId;
124            }
125    
126            public void setTemplateId(long templateId) {
127                    _templateId = templateId;
128            }
129    
130            public long getGroupId() {
131                    return _groupId;
132            }
133    
134            public void setGroupId(long groupId) {
135                    _groupId = groupId;
136            }
137    
138            public long getCompanyId() {
139                    return _companyId;
140            }
141    
142            public void setCompanyId(long companyId) {
143                    _companyId = companyId;
144            }
145    
146            public long getUserId() {
147                    return _userId;
148            }
149    
150            public void setUserId(long userId) {
151                    _userId = userId;
152            }
153    
154            public String getUserName() {
155                    return _userName;
156            }
157    
158            public void setUserName(String userName) {
159                    _userName = userName;
160            }
161    
162            public long getVersionUserId() {
163                    return _versionUserId;
164            }
165    
166            public void setVersionUserId(long versionUserId) {
167                    _versionUserId = versionUserId;
168            }
169    
170            public String getVersionUserName() {
171                    return _versionUserName;
172            }
173    
174            public void setVersionUserName(String versionUserName) {
175                    _versionUserName = versionUserName;
176            }
177    
178            public Date getCreateDate() {
179                    return _createDate;
180            }
181    
182            public void setCreateDate(Date createDate) {
183                    _createDate = createDate;
184            }
185    
186            public Date getModifiedDate() {
187                    return _modifiedDate;
188            }
189    
190            public void setModifiedDate(Date modifiedDate) {
191                    _modifiedDate = modifiedDate;
192            }
193    
194            public long getClassNameId() {
195                    return _classNameId;
196            }
197    
198            public void setClassNameId(long classNameId) {
199                    _classNameId = classNameId;
200            }
201    
202            public long getClassPK() {
203                    return _classPK;
204            }
205    
206            public void setClassPK(long classPK) {
207                    _classPK = classPK;
208            }
209    
210            public long getResourceClassNameId() {
211                    return _resourceClassNameId;
212            }
213    
214            public void setResourceClassNameId(long resourceClassNameId) {
215                    _resourceClassNameId = resourceClassNameId;
216            }
217    
218            public String getTemplateKey() {
219                    return _templateKey;
220            }
221    
222            public void setTemplateKey(String templateKey) {
223                    _templateKey = templateKey;
224            }
225    
226            public String getVersion() {
227                    return _version;
228            }
229    
230            public void setVersion(String version) {
231                    _version = version;
232            }
233    
234            public String getName() {
235                    return _name;
236            }
237    
238            public void setName(String name) {
239                    _name = name;
240            }
241    
242            public String getDescription() {
243                    return _description;
244            }
245    
246            public void setDescription(String description) {
247                    _description = description;
248            }
249    
250            public String getType() {
251                    return _type;
252            }
253    
254            public void setType(String type) {
255                    _type = type;
256            }
257    
258            public String getMode() {
259                    return _mode;
260            }
261    
262            public void setMode(String mode) {
263                    _mode = mode;
264            }
265    
266            public String getLanguage() {
267                    return _language;
268            }
269    
270            public void setLanguage(String language) {
271                    _language = language;
272            }
273    
274            public String getScript() {
275                    return _script;
276            }
277    
278            public void setScript(String script) {
279                    _script = script;
280            }
281    
282            public boolean getCacheable() {
283                    return _cacheable;
284            }
285    
286            public boolean isCacheable() {
287                    return _cacheable;
288            }
289    
290            public void setCacheable(boolean cacheable) {
291                    _cacheable = cacheable;
292            }
293    
294            public boolean getSmallImage() {
295                    return _smallImage;
296            }
297    
298            public boolean isSmallImage() {
299                    return _smallImage;
300            }
301    
302            public void setSmallImage(boolean smallImage) {
303                    _smallImage = smallImage;
304            }
305    
306            public long getSmallImageId() {
307                    return _smallImageId;
308            }
309    
310            public void setSmallImageId(long smallImageId) {
311                    _smallImageId = smallImageId;
312            }
313    
314            public String getSmallImageURL() {
315                    return _smallImageURL;
316            }
317    
318            public void setSmallImageURL(String smallImageURL) {
319                    _smallImageURL = smallImageURL;
320            }
321    
322            private String _uuid;
323            private long _templateId;
324            private long _groupId;
325            private long _companyId;
326            private long _userId;
327            private String _userName;
328            private long _versionUserId;
329            private String _versionUserName;
330            private Date _createDate;
331            private Date _modifiedDate;
332            private long _classNameId;
333            private long _classPK;
334            private long _resourceClassNameId;
335            private String _templateKey;
336            private String _version;
337            private String _name;
338            private String _description;
339            private String _type;
340            private String _mode;
341            private String _language;
342            private String _script;
343            private boolean _cacheable;
344            private boolean _smallImage;
345            private long _smallImageId;
346            private String _smallImageURL;
347    }