001    /**
002     * Copyright (c) 2000-present 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 aQute.bnd.annotation.ProviderType;
018    
019    import java.io.Serializable;
020    
021    import java.util.ArrayList;
022    import java.util.List;
023    
024    /**
025     * This class is used by SOAP remote services.
026     *
027     * @author Brian Wing Shun Chan
028     * @generated
029     */
030    @ProviderType
031    public class JournalContentSearchSoap implements Serializable {
032            public static JournalContentSearchSoap toSoapModel(
033                    JournalContentSearch model) {
034                    JournalContentSearchSoap soapModel = new JournalContentSearchSoap();
035    
036                    soapModel.setContentSearchId(model.getContentSearchId());
037                    soapModel.setGroupId(model.getGroupId());
038                    soapModel.setCompanyId(model.getCompanyId());
039                    soapModel.setPrivateLayout(model.getPrivateLayout());
040                    soapModel.setLayoutId(model.getLayoutId());
041                    soapModel.setPortletId(model.getPortletId());
042                    soapModel.setArticleId(model.getArticleId());
043    
044                    return soapModel;
045            }
046    
047            public static JournalContentSearchSoap[] toSoapModels(
048                    JournalContentSearch[] models) {
049                    JournalContentSearchSoap[] soapModels = new JournalContentSearchSoap[models.length];
050    
051                    for (int i = 0; i < models.length; i++) {
052                            soapModels[i] = toSoapModel(models[i]);
053                    }
054    
055                    return soapModels;
056            }
057    
058            public static JournalContentSearchSoap[][] toSoapModels(
059                    JournalContentSearch[][] models) {
060                    JournalContentSearchSoap[][] soapModels = null;
061    
062                    if (models.length > 0) {
063                            soapModels = new JournalContentSearchSoap[models.length][models[0].length];
064                    }
065                    else {
066                            soapModels = new JournalContentSearchSoap[0][0];
067                    }
068    
069                    for (int i = 0; i < models.length; i++) {
070                            soapModels[i] = toSoapModels(models[i]);
071                    }
072    
073                    return soapModels;
074            }
075    
076            public static JournalContentSearchSoap[] toSoapModels(
077                    List<JournalContentSearch> models) {
078                    List<JournalContentSearchSoap> soapModels = new ArrayList<JournalContentSearchSoap>(models.size());
079    
080                    for (JournalContentSearch model : models) {
081                            soapModels.add(toSoapModel(model));
082                    }
083    
084                    return soapModels.toArray(new JournalContentSearchSoap[soapModels.size()]);
085            }
086    
087            public JournalContentSearchSoap() {
088            }
089    
090            public long getPrimaryKey() {
091                    return _contentSearchId;
092            }
093    
094            public void setPrimaryKey(long pk) {
095                    setContentSearchId(pk);
096            }
097    
098            public long getContentSearchId() {
099                    return _contentSearchId;
100            }
101    
102            public void setContentSearchId(long contentSearchId) {
103                    _contentSearchId = contentSearchId;
104            }
105    
106            public long getGroupId() {
107                    return _groupId;
108            }
109    
110            public void setGroupId(long groupId) {
111                    _groupId = groupId;
112            }
113    
114            public long getCompanyId() {
115                    return _companyId;
116            }
117    
118            public void setCompanyId(long companyId) {
119                    _companyId = companyId;
120            }
121    
122            public boolean getPrivateLayout() {
123                    return _privateLayout;
124            }
125    
126            public boolean isPrivateLayout() {
127                    return _privateLayout;
128            }
129    
130            public void setPrivateLayout(boolean privateLayout) {
131                    _privateLayout = privateLayout;
132            }
133    
134            public long getLayoutId() {
135                    return _layoutId;
136            }
137    
138            public void setLayoutId(long layoutId) {
139                    _layoutId = layoutId;
140            }
141    
142            public String getPortletId() {
143                    return _portletId;
144            }
145    
146            public void setPortletId(String portletId) {
147                    _portletId = portletId;
148            }
149    
150            public String getArticleId() {
151                    return _articleId;
152            }
153    
154            public void setArticleId(String articleId) {
155                    _articleId = articleId;
156            }
157    
158            private long _contentSearchId;
159            private long _groupId;
160            private long _companyId;
161            private boolean _privateLayout;
162            private long _layoutId;
163            private String _portletId;
164            private String _articleId;
165    }