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.portal.model;
022:
023: import java.io.Serializable;
024:
025: import java.util.ArrayList;
026: import java.util.List;
027:
028: /**
029: * <a href="LayoutSoap.java.html"><b><i>View Source</i></b></a>
030: *
031: * <p>
032: * ServiceBuilder generated this class. Modifications in this class will be
033: * overwritten the next time is generated.
034: * </p>
035: *
036: * <p>
037: * This class is used by
038: * <code>com.liferay.portal.service.http.LayoutServiceSoap</code>.
039: * </p>
040: *
041: * @author Brian Wing Shun Chan
042: *
043: * @see com.liferay.portal.service.http.LayoutServiceSoap
044: *
045: */
046: public class LayoutSoap implements Serializable {
047: public static LayoutSoap toSoapModel(Layout model) {
048: LayoutSoap soapModel = new LayoutSoap();
049:
050: soapModel.setPlid(model.getPlid());
051: soapModel.setGroupId(model.getGroupId());
052: soapModel.setCompanyId(model.getCompanyId());
053: soapModel.setPrivateLayout(model.getPrivateLayout());
054: soapModel.setLayoutId(model.getLayoutId());
055: soapModel.setParentLayoutId(model.getParentLayoutId());
056: soapModel.setName(model.getName());
057: soapModel.setTitle(model.getTitle());
058: soapModel.setDescription(model.getDescription());
059: soapModel.setType(model.getType());
060: soapModel.setTypeSettings(model.getTypeSettings());
061: soapModel.setHidden(model.getHidden());
062: soapModel.setFriendlyURL(model.getFriendlyURL());
063: soapModel.setIconImage(model.getIconImage());
064: soapModel.setIconImageId(model.getIconImageId());
065: soapModel.setThemeId(model.getThemeId());
066: soapModel.setColorSchemeId(model.getColorSchemeId());
067: soapModel.setWapThemeId(model.getWapThemeId());
068: soapModel.setWapColorSchemeId(model.getWapColorSchemeId());
069: soapModel.setCss(model.getCss());
070: soapModel.setPriority(model.getPriority());
071: soapModel.setDlFolderId(model.getDlFolderId());
072:
073: return soapModel;
074: }
075:
076: public static LayoutSoap[] toSoapModels(List models) {
077: List soapModels = new ArrayList(models.size());
078:
079: for (int i = 0; i < models.size(); i++) {
080: Layout model = (Layout) models.get(i);
081:
082: soapModels.add(toSoapModel(model));
083: }
084:
085: return (LayoutSoap[]) soapModels.toArray(new LayoutSoap[0]);
086: }
087:
088: public LayoutSoap() {
089: }
090:
091: public long getPrimaryKey() {
092: return _plid;
093: }
094:
095: public void setPrimaryKey(long pk) {
096: setPlid(pk);
097: }
098:
099: public long getPlid() {
100: return _plid;
101: }
102:
103: public void setPlid(long plid) {
104: _plid = plid;
105: }
106:
107: public long getGroupId() {
108: return _groupId;
109: }
110:
111: public void setGroupId(long groupId) {
112: _groupId = groupId;
113: }
114:
115: public long getCompanyId() {
116: return _companyId;
117: }
118:
119: public void setCompanyId(long companyId) {
120: _companyId = companyId;
121: }
122:
123: public boolean getPrivateLayout() {
124: return _privateLayout;
125: }
126:
127: public boolean isPrivateLayout() {
128: return _privateLayout;
129: }
130:
131: public void setPrivateLayout(boolean privateLayout) {
132: _privateLayout = privateLayout;
133: }
134:
135: public long getLayoutId() {
136: return _layoutId;
137: }
138:
139: public void setLayoutId(long layoutId) {
140: _layoutId = layoutId;
141: }
142:
143: public long getParentLayoutId() {
144: return _parentLayoutId;
145: }
146:
147: public void setParentLayoutId(long parentLayoutId) {
148: _parentLayoutId = parentLayoutId;
149: }
150:
151: public String getName() {
152: return _name;
153: }
154:
155: public void setName(String name) {
156: _name = name;
157: }
158:
159: public String getTitle() {
160: return _title;
161: }
162:
163: public void setTitle(String title) {
164: _title = title;
165: }
166:
167: public String getDescription() {
168: return _description;
169: }
170:
171: public void setDescription(String description) {
172: _description = description;
173: }
174:
175: public String getType() {
176: return _type;
177: }
178:
179: public void setType(String type) {
180: _type = type;
181: }
182:
183: public String getTypeSettings() {
184: return _typeSettings;
185: }
186:
187: public void setTypeSettings(String typeSettings) {
188: _typeSettings = typeSettings;
189: }
190:
191: public boolean getHidden() {
192: return _hidden;
193: }
194:
195: public boolean isHidden() {
196: return _hidden;
197: }
198:
199: public void setHidden(boolean hidden) {
200: _hidden = hidden;
201: }
202:
203: public String getFriendlyURL() {
204: return _friendlyURL;
205: }
206:
207: public void setFriendlyURL(String friendlyURL) {
208: _friendlyURL = friendlyURL;
209: }
210:
211: public boolean getIconImage() {
212: return _iconImage;
213: }
214:
215: public boolean isIconImage() {
216: return _iconImage;
217: }
218:
219: public void setIconImage(boolean iconImage) {
220: _iconImage = iconImage;
221: }
222:
223: public long getIconImageId() {
224: return _iconImageId;
225: }
226:
227: public void setIconImageId(long iconImageId) {
228: _iconImageId = iconImageId;
229: }
230:
231: public String getThemeId() {
232: return _themeId;
233: }
234:
235: public void setThemeId(String themeId) {
236: _themeId = themeId;
237: }
238:
239: public String getColorSchemeId() {
240: return _colorSchemeId;
241: }
242:
243: public void setColorSchemeId(String colorSchemeId) {
244: _colorSchemeId = colorSchemeId;
245: }
246:
247: public String getWapThemeId() {
248: return _wapThemeId;
249: }
250:
251: public void setWapThemeId(String wapThemeId) {
252: _wapThemeId = wapThemeId;
253: }
254:
255: public String getWapColorSchemeId() {
256: return _wapColorSchemeId;
257: }
258:
259: public void setWapColorSchemeId(String wapColorSchemeId) {
260: _wapColorSchemeId = wapColorSchemeId;
261: }
262:
263: public String getCss() {
264: return _css;
265: }
266:
267: public void setCss(String css) {
268: _css = css;
269: }
270:
271: public int getPriority() {
272: return _priority;
273: }
274:
275: public void setPriority(int priority) {
276: _priority = priority;
277: }
278:
279: public long getDlFolderId() {
280: return _dlFolderId;
281: }
282:
283: public void setDlFolderId(long dlFolderId) {
284: _dlFolderId = dlFolderId;
285: }
286:
287: private long _plid;
288: private long _groupId;
289: private long _companyId;
290: private boolean _privateLayout;
291: private long _layoutId;
292: private long _parentLayoutId;
293: private String _name;
294: private String _title;
295: private String _description;
296: private String _type;
297: private String _typeSettings;
298: private boolean _hidden;
299: private String _friendlyURL;
300: private boolean _iconImage;
301: private long _iconImageId;
302: private String _themeId;
303: private String _colorSchemeId;
304: private String _wapThemeId;
305: private String _wapColorSchemeId;
306: private String _css;
307: private int _priority;
308: private long _dlFolderId;
309: }
|