1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.journal.model;
24  
25  import java.io.Serializable;
26  
27  import java.util.ArrayList;
28  import java.util.Date;
29  import java.util.List;
30  
31  /**
32   * <a href="JournalTemplateSoap.java.html"><b><i>View Source</i></b></a>
33   *
34   * <p>
35   * ServiceBuilder generated this class. Modifications in this class will be
36   * overwritten the next time is generated.
37   * </p>
38   *
39   * <p>
40   * This class is used by
41   * <code>com.liferay.portlet.journal.service.http.JournalTemplateServiceSoap</code>.
42   * </p>
43   *
44   * @author Brian Wing Shun Chan
45   *
46   * @see com.liferay.portlet.journal.service.http.JournalTemplateServiceSoap
47   *
48   */
49  public class JournalTemplateSoap implements Serializable {
50      public static JournalTemplateSoap toSoapModel(JournalTemplate model) {
51          JournalTemplateSoap soapModel = new JournalTemplateSoap();
52  
53          soapModel.setUuid(model.getUuid());
54          soapModel.setId(model.getId());
55          soapModel.setGroupId(model.getGroupId());
56          soapModel.setCompanyId(model.getCompanyId());
57          soapModel.setUserId(model.getUserId());
58          soapModel.setUserName(model.getUserName());
59          soapModel.setCreateDate(model.getCreateDate());
60          soapModel.setModifiedDate(model.getModifiedDate());
61          soapModel.setTemplateId(model.getTemplateId());
62          soapModel.setStructureId(model.getStructureId());
63          soapModel.setName(model.getName());
64          soapModel.setDescription(model.getDescription());
65          soapModel.setXsl(model.getXsl());
66          soapModel.setLangType(model.getLangType());
67          soapModel.setCacheable(model.getCacheable());
68          soapModel.setSmallImage(model.getSmallImage());
69          soapModel.setSmallImageId(model.getSmallImageId());
70          soapModel.setSmallImageURL(model.getSmallImageURL());
71  
72          return soapModel;
73      }
74  
75      public static JournalTemplateSoap[] toSoapModels(
76          List<JournalTemplate> models) {
77          List<JournalTemplateSoap> soapModels = new ArrayList<JournalTemplateSoap>(models.size());
78  
79          for (JournalTemplate model : models) {
80              soapModels.add(toSoapModel(model));
81          }
82  
83          return soapModels.toArray(new JournalTemplateSoap[soapModels.size()]);
84      }
85  
86      public JournalTemplateSoap() {
87      }
88  
89      public long getPrimaryKey() {
90          return _id;
91      }
92  
93      public void setPrimaryKey(long pk) {
94          setId(pk);
95      }
96  
97      public String getUuid() {
98          return _uuid;
99      }
100 
101     public void setUuid(String uuid) {
102         _uuid = uuid;
103     }
104 
105     public long getId() {
106         return _id;
107     }
108 
109     public void setId(long id) {
110         _id = id;
111     }
112 
113     public long getGroupId() {
114         return _groupId;
115     }
116 
117     public void setGroupId(long groupId) {
118         _groupId = groupId;
119     }
120 
121     public long getCompanyId() {
122         return _companyId;
123     }
124 
125     public void setCompanyId(long companyId) {
126         _companyId = companyId;
127     }
128 
129     public long getUserId() {
130         return _userId;
131     }
132 
133     public void setUserId(long userId) {
134         _userId = userId;
135     }
136 
137     public String getUserName() {
138         return _userName;
139     }
140 
141     public void setUserName(String userName) {
142         _userName = userName;
143     }
144 
145     public Date getCreateDate() {
146         return _createDate;
147     }
148 
149     public void setCreateDate(Date createDate) {
150         _createDate = createDate;
151     }
152 
153     public Date getModifiedDate() {
154         return _modifiedDate;
155     }
156 
157     public void setModifiedDate(Date modifiedDate) {
158         _modifiedDate = modifiedDate;
159     }
160 
161     public String getTemplateId() {
162         return _templateId;
163     }
164 
165     public void setTemplateId(String templateId) {
166         _templateId = templateId;
167     }
168 
169     public String getStructureId() {
170         return _structureId;
171     }
172 
173     public void setStructureId(String structureId) {
174         _structureId = structureId;
175     }
176 
177     public String getName() {
178         return _name;
179     }
180 
181     public void setName(String name) {
182         _name = name;
183     }
184 
185     public String getDescription() {
186         return _description;
187     }
188 
189     public void setDescription(String description) {
190         _description = description;
191     }
192 
193     public String getXsl() {
194         return _xsl;
195     }
196 
197     public void setXsl(String xsl) {
198         _xsl = xsl;
199     }
200 
201     public String getLangType() {
202         return _langType;
203     }
204 
205     public void setLangType(String langType) {
206         _langType = langType;
207     }
208 
209     public boolean getCacheable() {
210         return _cacheable;
211     }
212 
213     public boolean isCacheable() {
214         return _cacheable;
215     }
216 
217     public void setCacheable(boolean cacheable) {
218         _cacheable = cacheable;
219     }
220 
221     public boolean getSmallImage() {
222         return _smallImage;
223     }
224 
225     public boolean isSmallImage() {
226         return _smallImage;
227     }
228 
229     public void setSmallImage(boolean smallImage) {
230         _smallImage = smallImage;
231     }
232 
233     public long getSmallImageId() {
234         return _smallImageId;
235     }
236 
237     public void setSmallImageId(long smallImageId) {
238         _smallImageId = smallImageId;
239     }
240 
241     public String getSmallImageURL() {
242         return _smallImageURL;
243     }
244 
245     public void setSmallImageURL(String smallImageURL) {
246         _smallImageURL = smallImageURL;
247     }
248 
249     private String _uuid;
250     private long _id;
251     private long _groupId;
252     private long _companyId;
253     private long _userId;
254     private String _userName;
255     private Date _createDate;
256     private Date _modifiedDate;
257     private String _templateId;
258     private String _structureId;
259     private String _name;
260     private String _description;
261     private String _xsl;
262     private String _langType;
263     private boolean _cacheable;
264     private boolean _smallImage;
265     private long _smallImageId;
266     private String _smallImageURL;
267 }