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