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.setCreateDate(model.getCreateDate());
044                    soapModel.setModifiedDate(model.getModifiedDate());
045                    soapModel.setClassNameId(model.getClassNameId());
046                    soapModel.setClassPK(model.getClassPK());
047                    soapModel.setTemplateKey(model.getTemplateKey());
048                    soapModel.setVersion(model.getVersion());
049                    soapModel.setName(model.getName());
050                    soapModel.setDescription(model.getDescription());
051                    soapModel.setType(model.getType());
052                    soapModel.setMode(model.getMode());
053                    soapModel.setLanguage(model.getLanguage());
054                    soapModel.setScript(model.getScript());
055                    soapModel.setCacheable(model.getCacheable());
056                    soapModel.setSmallImage(model.getSmallImage());
057                    soapModel.setSmallImageId(model.getSmallImageId());
058                    soapModel.setSmallImageURL(model.getSmallImageURL());
059    
060                    return soapModel;
061            }
062    
063            public static DDMTemplateSoap[] toSoapModels(DDMTemplate[] models) {
064                    DDMTemplateSoap[] soapModels = new DDMTemplateSoap[models.length];
065    
066                    for (int i = 0; i < models.length; i++) {
067                            soapModels[i] = toSoapModel(models[i]);
068                    }
069    
070                    return soapModels;
071            }
072    
073            public static DDMTemplateSoap[][] toSoapModels(DDMTemplate[][] models) {
074                    DDMTemplateSoap[][] soapModels = null;
075    
076                    if (models.length > 0) {
077                            soapModels = new DDMTemplateSoap[models.length][models[0].length];
078                    }
079                    else {
080                            soapModels = new DDMTemplateSoap[0][0];
081                    }
082    
083                    for (int i = 0; i < models.length; i++) {
084                            soapModels[i] = toSoapModels(models[i]);
085                    }
086    
087                    return soapModels;
088            }
089    
090            public static DDMTemplateSoap[] toSoapModels(List<DDMTemplate> models) {
091                    List<DDMTemplateSoap> soapModels = new ArrayList<DDMTemplateSoap>(models.size());
092    
093                    for (DDMTemplate model : models) {
094                            soapModels.add(toSoapModel(model));
095                    }
096    
097                    return soapModels.toArray(new DDMTemplateSoap[soapModels.size()]);
098            }
099    
100            public DDMTemplateSoap() {
101            }
102    
103            public long getPrimaryKey() {
104                    return _templateId;
105            }
106    
107            public void setPrimaryKey(long pk) {
108                    setTemplateId(pk);
109            }
110    
111            public String getUuid() {
112                    return _uuid;
113            }
114    
115            public void setUuid(String uuid) {
116                    _uuid = uuid;
117            }
118    
119            public long getTemplateId() {
120                    return _templateId;
121            }
122    
123            public void setTemplateId(long templateId) {
124                    _templateId = templateId;
125            }
126    
127            public long getGroupId() {
128                    return _groupId;
129            }
130    
131            public void setGroupId(long groupId) {
132                    _groupId = groupId;
133            }
134    
135            public long getCompanyId() {
136                    return _companyId;
137            }
138    
139            public void setCompanyId(long companyId) {
140                    _companyId = companyId;
141            }
142    
143            public long getUserId() {
144                    return _userId;
145            }
146    
147            public void setUserId(long userId) {
148                    _userId = userId;
149            }
150    
151            public String getUserName() {
152                    return _userName;
153            }
154    
155            public void setUserName(String userName) {
156                    _userName = userName;
157            }
158    
159            public Date getCreateDate() {
160                    return _createDate;
161            }
162    
163            public void setCreateDate(Date createDate) {
164                    _createDate = createDate;
165            }
166    
167            public Date getModifiedDate() {
168                    return _modifiedDate;
169            }
170    
171            public void setModifiedDate(Date modifiedDate) {
172                    _modifiedDate = modifiedDate;
173            }
174    
175            public long getClassNameId() {
176                    return _classNameId;
177            }
178    
179            public void setClassNameId(long classNameId) {
180                    _classNameId = classNameId;
181            }
182    
183            public long getClassPK() {
184                    return _classPK;
185            }
186    
187            public void setClassPK(long classPK) {
188                    _classPK = classPK;
189            }
190    
191            public String getTemplateKey() {
192                    return _templateKey;
193            }
194    
195            public void setTemplateKey(String templateKey) {
196                    _templateKey = templateKey;
197            }
198    
199            public String getVersion() {
200                    return _version;
201            }
202    
203            public void setVersion(String version) {
204                    _version = version;
205            }
206    
207            public String getName() {
208                    return _name;
209            }
210    
211            public void setName(String name) {
212                    _name = name;
213            }
214    
215            public String getDescription() {
216                    return _description;
217            }
218    
219            public void setDescription(String description) {
220                    _description = description;
221            }
222    
223            public String getType() {
224                    return _type;
225            }
226    
227            public void setType(String type) {
228                    _type = type;
229            }
230    
231            public String getMode() {
232                    return _mode;
233            }
234    
235            public void setMode(String mode) {
236                    _mode = mode;
237            }
238    
239            public String getLanguage() {
240                    return _language;
241            }
242    
243            public void setLanguage(String language) {
244                    _language = language;
245            }
246    
247            public String getScript() {
248                    return _script;
249            }
250    
251            public void setScript(String script) {
252                    _script = script;
253            }
254    
255            public boolean getCacheable() {
256                    return _cacheable;
257            }
258    
259            public boolean isCacheable() {
260                    return _cacheable;
261            }
262    
263            public void setCacheable(boolean cacheable) {
264                    _cacheable = cacheable;
265            }
266    
267            public boolean getSmallImage() {
268                    return _smallImage;
269            }
270    
271            public boolean isSmallImage() {
272                    return _smallImage;
273            }
274    
275            public void setSmallImage(boolean smallImage) {
276                    _smallImage = smallImage;
277            }
278    
279            public long getSmallImageId() {
280                    return _smallImageId;
281            }
282    
283            public void setSmallImageId(long smallImageId) {
284                    _smallImageId = smallImageId;
285            }
286    
287            public String getSmallImageURL() {
288                    return _smallImageURL;
289            }
290    
291            public void setSmallImageURL(String smallImageURL) {
292                    _smallImageURL = smallImageURL;
293            }
294    
295            private String _uuid;
296            private long _templateId;
297            private long _groupId;
298            private long _companyId;
299            private long _userId;
300            private String _userName;
301            private Date _createDate;
302            private Date _modifiedDate;
303            private long _classNameId;
304            private long _classPK;
305            private String _templateKey;
306            private String _version;
307            private String _name;
308            private String _description;
309            private String _type;
310            private String _mode;
311            private String _language;
312            private String _script;
313            private boolean _cacheable;
314            private boolean _smallImage;
315            private long _smallImageId;
316            private String _smallImageURL;
317    }