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="LayoutSetSoap.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.LayoutSetServiceSoap</code>.
039: * </p>
040: *
041: * @author Brian Wing Shun Chan
042: *
043: * @see com.liferay.portal.service.http.LayoutSetServiceSoap
044: *
045: */
046: public class LayoutSetSoap implements Serializable {
047: public static LayoutSetSoap toSoapModel(LayoutSet model) {
048: LayoutSetSoap soapModel = new LayoutSetSoap();
049:
050: soapModel.setLayoutSetId(model.getLayoutSetId());
051: soapModel.setGroupId(model.getGroupId());
052: soapModel.setCompanyId(model.getCompanyId());
053: soapModel.setPrivateLayout(model.getPrivateLayout());
054: soapModel.setLogo(model.getLogo());
055: soapModel.setLogoId(model.getLogoId());
056: soapModel.setThemeId(model.getThemeId());
057: soapModel.setColorSchemeId(model.getColorSchemeId());
058: soapModel.setWapThemeId(model.getWapThemeId());
059: soapModel.setWapColorSchemeId(model.getWapColorSchemeId());
060: soapModel.setCss(model.getCss());
061: soapModel.setPageCount(model.getPageCount());
062: soapModel.setVirtualHost(model.getVirtualHost());
063:
064: return soapModel;
065: }
066:
067: public static LayoutSetSoap[] toSoapModels(List models) {
068: List soapModels = new ArrayList(models.size());
069:
070: for (int i = 0; i < models.size(); i++) {
071: LayoutSet model = (LayoutSet) models.get(i);
072:
073: soapModels.add(toSoapModel(model));
074: }
075:
076: return (LayoutSetSoap[]) soapModels
077: .toArray(new LayoutSetSoap[0]);
078: }
079:
080: public LayoutSetSoap() {
081: }
082:
083: public long getPrimaryKey() {
084: return _layoutSetId;
085: }
086:
087: public void setPrimaryKey(long pk) {
088: setLayoutSetId(pk);
089: }
090:
091: public long getLayoutSetId() {
092: return _layoutSetId;
093: }
094:
095: public void setLayoutSetId(long layoutSetId) {
096: _layoutSetId = layoutSetId;
097: }
098:
099: public long getGroupId() {
100: return _groupId;
101: }
102:
103: public void setGroupId(long groupId) {
104: _groupId = groupId;
105: }
106:
107: public long getCompanyId() {
108: return _companyId;
109: }
110:
111: public void setCompanyId(long companyId) {
112: _companyId = companyId;
113: }
114:
115: public boolean getPrivateLayout() {
116: return _privateLayout;
117: }
118:
119: public boolean isPrivateLayout() {
120: return _privateLayout;
121: }
122:
123: public void setPrivateLayout(boolean privateLayout) {
124: _privateLayout = privateLayout;
125: }
126:
127: public boolean getLogo() {
128: return _logo;
129: }
130:
131: public boolean isLogo() {
132: return _logo;
133: }
134:
135: public void setLogo(boolean logo) {
136: _logo = logo;
137: }
138:
139: public long getLogoId() {
140: return _logoId;
141: }
142:
143: public void setLogoId(long logoId) {
144: _logoId = logoId;
145: }
146:
147: public String getThemeId() {
148: return _themeId;
149: }
150:
151: public void setThemeId(String themeId) {
152: _themeId = themeId;
153: }
154:
155: public String getColorSchemeId() {
156: return _colorSchemeId;
157: }
158:
159: public void setColorSchemeId(String colorSchemeId) {
160: _colorSchemeId = colorSchemeId;
161: }
162:
163: public String getWapThemeId() {
164: return _wapThemeId;
165: }
166:
167: public void setWapThemeId(String wapThemeId) {
168: _wapThemeId = wapThemeId;
169: }
170:
171: public String getWapColorSchemeId() {
172: return _wapColorSchemeId;
173: }
174:
175: public void setWapColorSchemeId(String wapColorSchemeId) {
176: _wapColorSchemeId = wapColorSchemeId;
177: }
178:
179: public String getCss() {
180: return _css;
181: }
182:
183: public void setCss(String css) {
184: _css = css;
185: }
186:
187: public int getPageCount() {
188: return _pageCount;
189: }
190:
191: public void setPageCount(int pageCount) {
192: _pageCount = pageCount;
193: }
194:
195: public String getVirtualHost() {
196: return _virtualHost;
197: }
198:
199: public void setVirtualHost(String virtualHost) {
200: _virtualHost = virtualHost;
201: }
202:
203: private long _layoutSetId;
204: private long _groupId;
205: private long _companyId;
206: private boolean _privateLayout;
207: private boolean _logo;
208: private long _logoId;
209: private String _themeId;
210: private String _colorSchemeId;
211: private String _wapThemeId;
212: private String _wapColorSchemeId;
213: private String _css;
214: private int _pageCount;
215: private String _virtualHost;
216: }
|