001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portlet.journal.model;
022:
023: import java.io.Serializable;
024:
025: import java.util.ArrayList;
026: import java.util.Date;
027: import java.util.List;
028:
029: /**
030: * <a href="JournalTemplateSoap.java.html"><b><i>View Source</i></b></a>
031: *
032: * <p>
033: * ServiceBuilder generated this class. Modifications in this class will be
034: * overwritten the next time is generated.
035: * </p>
036: *
037: * <p>
038: * This class is used by
039: * <code>com.liferay.portlet.journal.service.http.JournalTemplateServiceSoap</code>.
040: * </p>
041: *
042: * @author Brian Wing Shun Chan
043: *
044: * @see com.liferay.portlet.journal.service.http.JournalTemplateServiceSoap
045: *
046: */
047: public class JournalTemplateSoap implements Serializable {
048: public static JournalTemplateSoap toSoapModel(JournalTemplate model) {
049: JournalTemplateSoap soapModel = new JournalTemplateSoap();
050:
051: soapModel.setUuid(model.getUuid());
052: soapModel.setId(model.getId());
053: soapModel.setGroupId(model.getGroupId());
054: soapModel.setCompanyId(model.getCompanyId());
055: soapModel.setUserId(model.getUserId());
056: soapModel.setUserName(model.getUserName());
057: soapModel.setCreateDate(model.getCreateDate());
058: soapModel.setModifiedDate(model.getModifiedDate());
059: soapModel.setTemplateId(model.getTemplateId());
060: soapModel.setStructureId(model.getStructureId());
061: soapModel.setName(model.getName());
062: soapModel.setDescription(model.getDescription());
063: soapModel.setXsl(model.getXsl());
064: soapModel.setLangType(model.getLangType());
065: soapModel.setCacheable(model.getCacheable());
066: soapModel.setSmallImage(model.getSmallImage());
067: soapModel.setSmallImageId(model.getSmallImageId());
068: soapModel.setSmallImageURL(model.getSmallImageURL());
069:
070: return soapModel;
071: }
072:
073: public static JournalTemplateSoap[] toSoapModels(List models) {
074: List soapModels = new ArrayList(models.size());
075:
076: for (int i = 0; i < models.size(); i++) {
077: JournalTemplate model = (JournalTemplate) models.get(i);
078:
079: soapModels.add(toSoapModel(model));
080: }
081:
082: return (JournalTemplateSoap[]) soapModels
083: .toArray(new JournalTemplateSoap[0]);
084: }
085:
086: public JournalTemplateSoap() {
087: }
088:
089: public long getPrimaryKey() {
090: return _id;
091: }
092:
093: public void setPrimaryKey(long pk) {
094: setId(pk);
095: }
096:
097: public String getUuid() {
098: return _uuid;
099: }
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: }
|