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.journal.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.journal.service.http.JournalTemplateServiceSoap}.
025     *
026     * @author Brian Wing Shun Chan
027     * @see com.liferay.portlet.journal.service.http.JournalTemplateServiceSoap
028     * @generated
029     */
030    public class JournalTemplateSoap implements Serializable {
031            public static JournalTemplateSoap toSoapModel(JournalTemplate model) {
032                    JournalTemplateSoap soapModel = new JournalTemplateSoap();
033    
034                    soapModel.setUuid(model.getUuid());
035                    soapModel.setId(model.getId());
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.setTemplateId(model.getTemplateId());
043                    soapModel.setStructureId(model.getStructureId());
044                    soapModel.setName(model.getName());
045                    soapModel.setDescription(model.getDescription());
046                    soapModel.setXsl(model.getXsl());
047                    soapModel.setLangType(model.getLangType());
048                    soapModel.setCacheable(model.getCacheable());
049                    soapModel.setSmallImage(model.getSmallImage());
050                    soapModel.setSmallImageId(model.getSmallImageId());
051                    soapModel.setSmallImageURL(model.getSmallImageURL());
052    
053                    return soapModel;
054            }
055    
056            public static JournalTemplateSoap[] toSoapModels(JournalTemplate[] models) {
057                    JournalTemplateSoap[] soapModels = new JournalTemplateSoap[models.length];
058    
059                    for (int i = 0; i < models.length; i++) {
060                            soapModels[i] = toSoapModel(models[i]);
061                    }
062    
063                    return soapModels;
064            }
065    
066            public static JournalTemplateSoap[][] toSoapModels(
067                    JournalTemplate[][] models) {
068                    JournalTemplateSoap[][] soapModels = null;
069    
070                    if (models.length > 0) {
071                            soapModels = new JournalTemplateSoap[models.length][models[0].length];
072                    }
073                    else {
074                            soapModels = new JournalTemplateSoap[0][0];
075                    }
076    
077                    for (int i = 0; i < models.length; i++) {
078                            soapModels[i] = toSoapModels(models[i]);
079                    }
080    
081                    return soapModels;
082            }
083    
084            public static JournalTemplateSoap[] toSoapModels(
085                    List<JournalTemplate> models) {
086                    List<JournalTemplateSoap> soapModels = new ArrayList<JournalTemplateSoap>(models.size());
087    
088                    for (JournalTemplate model : models) {
089                            soapModels.add(toSoapModel(model));
090                    }
091    
092                    return soapModels.toArray(new JournalTemplateSoap[soapModels.size()]);
093            }
094    
095            public JournalTemplateSoap() {
096            }
097    
098            public long getPrimaryKey() {
099                    return _id;
100            }
101    
102            public void setPrimaryKey(long pk) {
103                    setId(pk);
104            }
105    
106            public String getUuid() {
107                    return _uuid;
108            }
109    
110            public void setUuid(String uuid) {
111                    _uuid = uuid;
112            }
113    
114            public long getId() {
115                    return _id;
116            }
117    
118            public void setId(long id) {
119                    _id = id;
120            }
121    
122            public long getGroupId() {
123                    return _groupId;
124            }
125    
126            public void setGroupId(long groupId) {
127                    _groupId = groupId;
128            }
129    
130            public long getCompanyId() {
131                    return _companyId;
132            }
133    
134            public void setCompanyId(long companyId) {
135                    _companyId = companyId;
136            }
137    
138            public long getUserId() {
139                    return _userId;
140            }
141    
142            public void setUserId(long userId) {
143                    _userId = userId;
144            }
145    
146            public String getUserName() {
147                    return _userName;
148            }
149    
150            public void setUserName(String userName) {
151                    _userName = userName;
152            }
153    
154            public Date getCreateDate() {
155                    return _createDate;
156            }
157    
158            public void setCreateDate(Date createDate) {
159                    _createDate = createDate;
160            }
161    
162            public Date getModifiedDate() {
163                    return _modifiedDate;
164            }
165    
166            public void setModifiedDate(Date modifiedDate) {
167                    _modifiedDate = modifiedDate;
168            }
169    
170            public String getTemplateId() {
171                    return _templateId;
172            }
173    
174            public void setTemplateId(String templateId) {
175                    _templateId = templateId;
176            }
177    
178            public String getStructureId() {
179                    return _structureId;
180            }
181    
182            public void setStructureId(String structureId) {
183                    _structureId = structureId;
184            }
185    
186            public String getName() {
187                    return _name;
188            }
189    
190            public void setName(String name) {
191                    _name = name;
192            }
193    
194            public String getDescription() {
195                    return _description;
196            }
197    
198            public void setDescription(String description) {
199                    _description = description;
200            }
201    
202            public String getXsl() {
203                    return _xsl;
204            }
205    
206            public void setXsl(String xsl) {
207                    _xsl = xsl;
208            }
209    
210            public String getLangType() {
211                    return _langType;
212            }
213    
214            public void setLangType(String langType) {
215                    _langType = langType;
216            }
217    
218            public boolean getCacheable() {
219                    return _cacheable;
220            }
221    
222            public boolean isCacheable() {
223                    return _cacheable;
224            }
225    
226            public void setCacheable(boolean cacheable) {
227                    _cacheable = cacheable;
228            }
229    
230            public boolean getSmallImage() {
231                    return _smallImage;
232            }
233    
234            public boolean isSmallImage() {
235                    return _smallImage;
236            }
237    
238            public void setSmallImage(boolean smallImage) {
239                    _smallImage = smallImage;
240            }
241    
242            public long getSmallImageId() {
243                    return _smallImageId;
244            }
245    
246            public void setSmallImageId(long smallImageId) {
247                    _smallImageId = smallImageId;
248            }
249    
250            public String getSmallImageURL() {
251                    return _smallImageURL;
252            }
253    
254            public void setSmallImageURL(String smallImageURL) {
255                    _smallImageURL = smallImageURL;
256            }
257    
258            private String _uuid;
259            private long _id;
260            private long _groupId;
261            private long _companyId;
262            private long _userId;
263            private String _userName;
264            private Date _createDate;
265            private Date _modifiedDate;
266            private String _templateId;
267            private String _structureId;
268            private String _name;
269            private String _description;
270            private String _xsl;
271            private String _langType;
272            private boolean _cacheable;
273            private boolean _smallImage;
274            private long _smallImageId;
275            private String _smallImageURL;
276    }