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.List;
027:
028: /**
029: * <a href="JournalContentSearchSoap.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.portlet.journal.service.http.JournalContentSearchServiceSoap</code>.
039: * </p>
040: *
041: * @author Brian Wing Shun Chan
042: *
043: * @see com.liferay.portlet.journal.service.http.JournalContentSearchServiceSoap
044: *
045: */
046: public class JournalContentSearchSoap implements Serializable {
047: public static JournalContentSearchSoap toSoapModel(
048: JournalContentSearch model) {
049: JournalContentSearchSoap soapModel = new JournalContentSearchSoap();
050:
051: soapModel.setContentSearchId(model.getContentSearchId());
052: soapModel.setGroupId(model.getGroupId());
053: soapModel.setCompanyId(model.getCompanyId());
054: soapModel.setPrivateLayout(model.getPrivateLayout());
055: soapModel.setLayoutId(model.getLayoutId());
056: soapModel.setPortletId(model.getPortletId());
057: soapModel.setArticleId(model.getArticleId());
058:
059: return soapModel;
060: }
061:
062: public static JournalContentSearchSoap[] toSoapModels(List models) {
063: List soapModels = new ArrayList(models.size());
064:
065: for (int i = 0; i < models.size(); i++) {
066: JournalContentSearch model = (JournalContentSearch) models
067: .get(i);
068:
069: soapModels.add(toSoapModel(model));
070: }
071:
072: return (JournalContentSearchSoap[]) soapModels
073: .toArray(new JournalContentSearchSoap[0]);
074: }
075:
076: public JournalContentSearchSoap() {
077: }
078:
079: public long getPrimaryKey() {
080: return _contentSearchId;
081: }
082:
083: public void setPrimaryKey(long pk) {
084: setContentSearchId(pk);
085: }
086:
087: public long getContentSearchId() {
088: return _contentSearchId;
089: }
090:
091: public void setContentSearchId(long contentSearchId) {
092: _contentSearchId = contentSearchId;
093: }
094:
095: public long getGroupId() {
096: return _groupId;
097: }
098:
099: public void setGroupId(long groupId) {
100: _groupId = groupId;
101: }
102:
103: public long getCompanyId() {
104: return _companyId;
105: }
106:
107: public void setCompanyId(long companyId) {
108: _companyId = companyId;
109: }
110:
111: public boolean getPrivateLayout() {
112: return _privateLayout;
113: }
114:
115: public boolean isPrivateLayout() {
116: return _privateLayout;
117: }
118:
119: public void setPrivateLayout(boolean privateLayout) {
120: _privateLayout = privateLayout;
121: }
122:
123: public long getLayoutId() {
124: return _layoutId;
125: }
126:
127: public void setLayoutId(long layoutId) {
128: _layoutId = layoutId;
129: }
130:
131: public String getPortletId() {
132: return _portletId;
133: }
134:
135: public void setPortletId(String portletId) {
136: _portletId = portletId;
137: }
138:
139: public String getArticleId() {
140: return _articleId;
141: }
142:
143: public void setArticleId(String articleId) {
144: _articleId = articleId;
145: }
146:
147: private long _contentSearchId;
148: private long _groupId;
149: private long _companyId;
150: private boolean _privateLayout;
151: private long _layoutId;
152: private String _portletId;
153: private String _articleId;
154: }
|