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