001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.journal.model;
016    
017    import java.io.Serializable;
018    
019    import java.util.ArrayList;
020    import java.util.List;
021    
022    /**
023     * This class is used by SOAP remote services.
024     *
025     * @author Brian Wing Shun Chan
026     * @generated
027     */
028    public class JournalContentSearchSoap implements Serializable {
029            public static JournalContentSearchSoap toSoapModel(
030                    JournalContentSearch model) {
031                    JournalContentSearchSoap soapModel = new JournalContentSearchSoap();
032    
033                    soapModel.setContentSearchId(model.getContentSearchId());
034                    soapModel.setGroupId(model.getGroupId());
035                    soapModel.setCompanyId(model.getCompanyId());
036                    soapModel.setPrivateLayout(model.getPrivateLayout());
037                    soapModel.setLayoutId(model.getLayoutId());
038                    soapModel.setPortletId(model.getPortletId());
039                    soapModel.setArticleId(model.getArticleId());
040    
041                    return soapModel;
042            }
043    
044            public static JournalContentSearchSoap[] toSoapModels(
045                    JournalContentSearch[] models) {
046                    JournalContentSearchSoap[] soapModels = new JournalContentSearchSoap[models.length];
047    
048                    for (int i = 0; i < models.length; i++) {
049                            soapModels[i] = toSoapModel(models[i]);
050                    }
051    
052                    return soapModels;
053            }
054    
055            public static JournalContentSearchSoap[][] toSoapModels(
056                    JournalContentSearch[][] models) {
057                    JournalContentSearchSoap[][] soapModels = null;
058    
059                    if (models.length > 0) {
060                            soapModels = new JournalContentSearchSoap[models.length][models[0].length];
061                    }
062                    else {
063                            soapModels = new JournalContentSearchSoap[0][0];
064                    }
065    
066                    for (int i = 0; i < models.length; i++) {
067                            soapModels[i] = toSoapModels(models[i]);
068                    }
069    
070                    return soapModels;
071            }
072    
073            public static JournalContentSearchSoap[] toSoapModels(
074                    List<JournalContentSearch> models) {
075                    List<JournalContentSearchSoap> soapModels = new ArrayList<JournalContentSearchSoap>(models.size());
076    
077                    for (JournalContentSearch model : models) {
078                            soapModels.add(toSoapModel(model));
079                    }
080    
081                    return soapModels.toArray(new JournalContentSearchSoap[soapModels.size()]);
082            }
083    
084            public JournalContentSearchSoap() {
085            }
086    
087            public long getPrimaryKey() {
088                    return _contentSearchId;
089            }
090    
091            public void setPrimaryKey(long pk) {
092                    setContentSearchId(pk);
093            }
094    
095            public long getContentSearchId() {
096                    return _contentSearchId;
097            }
098    
099            public void setContentSearchId(long contentSearchId) {
100                    _contentSearchId = contentSearchId;
101            }
102    
103            public long getGroupId() {
104                    return _groupId;
105            }
106    
107            public void setGroupId(long groupId) {
108                    _groupId = groupId;
109            }
110    
111            public long getCompanyId() {
112                    return _companyId;
113            }
114    
115            public void setCompanyId(long companyId) {
116                    _companyId = companyId;
117            }
118    
119            public boolean getPrivateLayout() {
120                    return _privateLayout;
121            }
122    
123            public boolean isPrivateLayout() {
124                    return _privateLayout;
125            }
126    
127            public void setPrivateLayout(boolean privateLayout) {
128                    _privateLayout = privateLayout;
129            }
130    
131            public long getLayoutId() {
132                    return _layoutId;
133            }
134    
135            public void setLayoutId(long layoutId) {
136                    _layoutId = layoutId;
137            }
138    
139            public String getPortletId() {
140                    return _portletId;
141            }
142    
143            public void setPortletId(String portletId) {
144                    _portletId = portletId;
145            }
146    
147            public String getArticleId() {
148                    return _articleId;
149            }
150    
151            public void setArticleId(String articleId) {
152                    _articleId = articleId;
153            }
154    
155            private long _contentSearchId;
156            private long _groupId;
157            private long _companyId;
158            private boolean _privateLayout;
159            private long _layoutId;
160            private String _portletId;
161            private String _articleId;
162    }