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