1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.journal.model;
16  
17  import java.io.Serializable;
18  
19  import java.util.ArrayList;
20  import java.util.Date;
21  import java.util.List;
22  
23  /**
24   * <a href="JournalTemplateSoap.java.html"><b><i>View Source</i></b></a>
25   *
26   * <p>
27   * ServiceBuilder generated this class. Modifications in this class will be
28   * overwritten the next time is generated.
29   * </p>
30   *
31   * <p>
32   * This class is used by
33   * {@link com.liferay.portlet.journal.service.http.JournalTemplateServiceSoap}.
34   * </p>
35   *
36   * @author    Brian Wing Shun Chan
37   * @see       com.liferay.portlet.journal.service.http.JournalTemplateServiceSoap
38   * @generated
39   */
40  public class JournalTemplateSoap implements Serializable {
41      public static JournalTemplateSoap toSoapModel(JournalTemplate model) {
42          JournalTemplateSoap soapModel = new JournalTemplateSoap();
43  
44          soapModel.setUuid(model.getUuid());
45          soapModel.setId(model.getId());
46          soapModel.setGroupId(model.getGroupId());
47          soapModel.setCompanyId(model.getCompanyId());
48          soapModel.setUserId(model.getUserId());
49          soapModel.setUserName(model.getUserName());
50          soapModel.setCreateDate(model.getCreateDate());
51          soapModel.setModifiedDate(model.getModifiedDate());
52          soapModel.setTemplateId(model.getTemplateId());
53          soapModel.setStructureId(model.getStructureId());
54          soapModel.setName(model.getName());
55          soapModel.setDescription(model.getDescription());
56          soapModel.setXsl(model.getXsl());
57          soapModel.setLangType(model.getLangType());
58          soapModel.setCacheable(model.getCacheable());
59          soapModel.setSmallImage(model.getSmallImage());
60          soapModel.setSmallImageId(model.getSmallImageId());
61          soapModel.setSmallImageURL(model.getSmallImageURL());
62  
63          return soapModel;
64      }
65  
66      public static JournalTemplateSoap[] toSoapModels(JournalTemplate[] models) {
67          JournalTemplateSoap[] soapModels = new JournalTemplateSoap[models.length];
68  
69          for (int i = 0; i < models.length; i++) {
70              soapModels[i] = toSoapModel(models[i]);
71          }
72  
73          return soapModels;
74      }
75  
76      public static JournalTemplateSoap[][] toSoapModels(
77          JournalTemplate[][] models) {
78          JournalTemplateSoap[][] soapModels = null;
79  
80          if (models.length > 0) {
81              soapModels = new JournalTemplateSoap[models.length][models[0].length];
82          }
83          else {
84              soapModels = new JournalTemplateSoap[0][0];
85          }
86  
87          for (int i = 0; i < models.length; i++) {
88              soapModels[i] = toSoapModels(models[i]);
89          }
90  
91          return soapModels;
92      }
93  
94      public static JournalTemplateSoap[] toSoapModels(
95          List<JournalTemplate> models) {
96          List<JournalTemplateSoap> soapModels = new ArrayList<JournalTemplateSoap>(models.size());
97  
98          for (JournalTemplate model : models) {
99              soapModels.add(toSoapModel(model));
100         }
101 
102         return soapModels.toArray(new JournalTemplateSoap[soapModels.size()]);
103     }
104 
105     public JournalTemplateSoap() {
106     }
107 
108     public long getPrimaryKey() {
109         return _id;
110     }
111 
112     public void setPrimaryKey(long pk) {
113         setId(pk);
114     }
115 
116     public String getUuid() {
117         return _uuid;
118     }
119 
120     public void setUuid(String uuid) {
121         _uuid = uuid;
122     }
123 
124     public long getId() {
125         return _id;
126     }
127 
128     public void setId(long id) {
129         _id = id;
130     }
131 
132     public long getGroupId() {
133         return _groupId;
134     }
135 
136     public void setGroupId(long groupId) {
137         _groupId = groupId;
138     }
139 
140     public long getCompanyId() {
141         return _companyId;
142     }
143 
144     public void setCompanyId(long companyId) {
145         _companyId = companyId;
146     }
147 
148     public long getUserId() {
149         return _userId;
150     }
151 
152     public void setUserId(long userId) {
153         _userId = userId;
154     }
155 
156     public String getUserName() {
157         return _userName;
158     }
159 
160     public void setUserName(String userName) {
161         _userName = userName;
162     }
163 
164     public Date getCreateDate() {
165         return _createDate;
166     }
167 
168     public void setCreateDate(Date createDate) {
169         _createDate = createDate;
170     }
171 
172     public Date getModifiedDate() {
173         return _modifiedDate;
174     }
175 
176     public void setModifiedDate(Date modifiedDate) {
177         _modifiedDate = modifiedDate;
178     }
179 
180     public String getTemplateId() {
181         return _templateId;
182     }
183 
184     public void setTemplateId(String templateId) {
185         _templateId = templateId;
186     }
187 
188     public String getStructureId() {
189         return _structureId;
190     }
191 
192     public void setStructureId(String structureId) {
193         _structureId = structureId;
194     }
195 
196     public String getName() {
197         return _name;
198     }
199 
200     public void setName(String name) {
201         _name = name;
202     }
203 
204     public String getDescription() {
205         return _description;
206     }
207 
208     public void setDescription(String description) {
209         _description = description;
210     }
211 
212     public String getXsl() {
213         return _xsl;
214     }
215 
216     public void setXsl(String xsl) {
217         _xsl = xsl;
218     }
219 
220     public String getLangType() {
221         return _langType;
222     }
223 
224     public void setLangType(String langType) {
225         _langType = langType;
226     }
227 
228     public boolean getCacheable() {
229         return _cacheable;
230     }
231 
232     public boolean isCacheable() {
233         return _cacheable;
234     }
235 
236     public void setCacheable(boolean cacheable) {
237         _cacheable = cacheable;
238     }
239 
240     public boolean getSmallImage() {
241         return _smallImage;
242     }
243 
244     public boolean isSmallImage() {
245         return _smallImage;
246     }
247 
248     public void setSmallImage(boolean smallImage) {
249         _smallImage = smallImage;
250     }
251 
252     public long getSmallImageId() {
253         return _smallImageId;
254     }
255 
256     public void setSmallImageId(long smallImageId) {
257         _smallImageId = smallImageId;
258     }
259 
260     public String getSmallImageURL() {
261         return _smallImageURL;
262     }
263 
264     public void setSmallImageURL(String smallImageURL) {
265         _smallImageURL = smallImageURL;
266     }
267 
268     private String _uuid;
269     private long _id;
270     private long _groupId;
271     private long _companyId;
272     private long _userId;
273     private String _userName;
274     private Date _createDate;
275     private Date _modifiedDate;
276     private String _templateId;
277     private String _structureId;
278     private String _name;
279     private String _description;
280     private String _xsl;
281     private String _langType;
282     private boolean _cacheable;
283     private boolean _smallImage;
284     private long _smallImageId;
285     private String _smallImageURL;
286 }