1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17   * SOFTWARE.
18   */
19  
20  package com.liferay.portlet.journal.model;
21  
22  import java.io.Serializable;
23  
24  import java.util.ArrayList;
25  import java.util.List;
26  
27  /**
28   * <a href="JournalContentSearchSoap.java.html"><b><i>View Source</i></b></a>
29   *
30   * <p>
31   * ServiceBuilder generated this class. Modifications in this class will be
32   * overwritten the next time is generated.
33   * </p>
34   *
35   * <p>
36   * This class is used by
37   * <code>com.liferay.portlet.journal.service.http.JournalContentSearchServiceSoap</code>.
38   * </p>
39   *
40   * @author Brian Wing Shun Chan
41   *
42   * @see com.liferay.portlet.journal.service.http.JournalContentSearchServiceSoap
43   *
44   */
45  public class JournalContentSearchSoap implements Serializable {
46      public static JournalContentSearchSoap toSoapModel(
47          JournalContentSearch model) {
48          JournalContentSearchSoap soapModel = new JournalContentSearchSoap();
49  
50          soapModel.setContentSearchId(model.getContentSearchId());
51          soapModel.setGroupId(model.getGroupId());
52          soapModel.setCompanyId(model.getCompanyId());
53          soapModel.setPrivateLayout(model.getPrivateLayout());
54          soapModel.setLayoutId(model.getLayoutId());
55          soapModel.setPortletId(model.getPortletId());
56          soapModel.setArticleId(model.getArticleId());
57  
58          return soapModel;
59      }
60  
61      public static JournalContentSearchSoap[] toSoapModels(
62          JournalContentSearch[] models) {
63          JournalContentSearchSoap[] soapModels = new JournalContentSearchSoap[models.length];
64  
65          for (int i = 0; i < models.length; i++) {
66              soapModels[i] = toSoapModel(models[i]);
67          }
68  
69          return soapModels;
70      }
71  
72      public static JournalContentSearchSoap[][] toSoapModels(
73          JournalContentSearch[][] models) {
74          JournalContentSearchSoap[][] soapModels = null;
75  
76          if (models.length > 0) {
77              soapModels = new JournalContentSearchSoap[models.length][models[0].length];
78          }
79          else {
80              soapModels = new JournalContentSearchSoap[0][0];
81          }
82  
83          for (int i = 0; i < models.length; i++) {
84              soapModels[i] = toSoapModels(models[i]);
85          }
86  
87          return soapModels;
88      }
89  
90      public static JournalContentSearchSoap[] toSoapModels(
91          List<JournalContentSearch> models) {
92          List<JournalContentSearchSoap> soapModels = new ArrayList<JournalContentSearchSoap>(models.size());
93  
94          for (JournalContentSearch model : models) {
95              soapModels.add(toSoapModel(model));
96          }
97  
98          return soapModels.toArray(new JournalContentSearchSoap[soapModels.size()]);
99      }
100 
101     public JournalContentSearchSoap() {
102     }
103 
104     public long getPrimaryKey() {
105         return _contentSearchId;
106     }
107 
108     public void setPrimaryKey(long pk) {
109         setContentSearchId(pk);
110     }
111 
112     public long getContentSearchId() {
113         return _contentSearchId;
114     }
115 
116     public void setContentSearchId(long contentSearchId) {
117         _contentSearchId = contentSearchId;
118     }
119 
120     public long getGroupId() {
121         return _groupId;
122     }
123 
124     public void setGroupId(long groupId) {
125         _groupId = groupId;
126     }
127 
128     public long getCompanyId() {
129         return _companyId;
130     }
131 
132     public void setCompanyId(long companyId) {
133         _companyId = companyId;
134     }
135 
136     public boolean getPrivateLayout() {
137         return _privateLayout;
138     }
139 
140     public boolean isPrivateLayout() {
141         return _privateLayout;
142     }
143 
144     public void setPrivateLayout(boolean privateLayout) {
145         _privateLayout = privateLayout;
146     }
147 
148     public long getLayoutId() {
149         return _layoutId;
150     }
151 
152     public void setLayoutId(long layoutId) {
153         _layoutId = layoutId;
154     }
155 
156     public String getPortletId() {
157         return _portletId;
158     }
159 
160     public void setPortletId(String portletId) {
161         _portletId = portletId;
162     }
163 
164     public String getArticleId() {
165         return _articleId;
166     }
167 
168     public void setArticleId(String articleId) {
169         _articleId = articleId;
170     }
171 
172     private long _contentSearchId;
173     private long _groupId;
174     private long _companyId;
175     private boolean _privateLayout;
176     private long _layoutId;
177     private String _portletId;
178     private String _articleId;
179 }