1   /**
2    * Copyright (c) 2000-2010 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   *
12   *
13   */
14  
15  package com.liferay.portlet.journal.model;
16  
17  import java.io.Serializable;
18  
19  import java.util.ArrayList;
20  import java.util.List;
21  
22  /**
23   * <a href="JournalContentSearchSoap.java.html"><b><i>View Source</i></b></a>
24   *
25   * <p>
26   * ServiceBuilder generated this class. Modifications in this class will be
27   * overwritten the next time is generated.
28   * </p>
29   *
30   * <p>
31   * This class is used by
32   * {@link com.liferay.portlet.journal.service.http.JournalContentSearchServiceSoap}.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       com.liferay.portlet.journal.service.http.JournalContentSearchServiceSoap
37   * @generated
38   */
39  public class JournalContentSearchSoap implements Serializable {
40      public static JournalContentSearchSoap toSoapModel(
41          JournalContentSearch model) {
42          JournalContentSearchSoap soapModel = new JournalContentSearchSoap();
43  
44          soapModel.setContentSearchId(model.getContentSearchId());
45          soapModel.setGroupId(model.getGroupId());
46          soapModel.setCompanyId(model.getCompanyId());
47          soapModel.setPrivateLayout(model.getPrivateLayout());
48          soapModel.setLayoutId(model.getLayoutId());
49          soapModel.setPortletId(model.getPortletId());
50          soapModel.setArticleId(model.getArticleId());
51  
52          return soapModel;
53      }
54  
55      public static JournalContentSearchSoap[] toSoapModels(
56          JournalContentSearch[] models) {
57          JournalContentSearchSoap[] soapModels = new JournalContentSearchSoap[models.length];
58  
59          for (int i = 0; i < models.length; i++) {
60              soapModels[i] = toSoapModel(models[i]);
61          }
62  
63          return soapModels;
64      }
65  
66      public static JournalContentSearchSoap[][] toSoapModels(
67          JournalContentSearch[][] models) {
68          JournalContentSearchSoap[][] soapModels = null;
69  
70          if (models.length > 0) {
71              soapModels = new JournalContentSearchSoap[models.length][models[0].length];
72          }
73          else {
74              soapModels = new JournalContentSearchSoap[0][0];
75          }
76  
77          for (int i = 0; i < models.length; i++) {
78              soapModels[i] = toSoapModels(models[i]);
79          }
80  
81          return soapModels;
82      }
83  
84      public static JournalContentSearchSoap[] toSoapModels(
85          List<JournalContentSearch> models) {
86          List<JournalContentSearchSoap> soapModels = new ArrayList<JournalContentSearchSoap>(models.size());
87  
88          for (JournalContentSearch model : models) {
89              soapModels.add(toSoapModel(model));
90          }
91  
92          return soapModels.toArray(new JournalContentSearchSoap[soapModels.size()]);
93      }
94  
95      public JournalContentSearchSoap() {
96      }
97  
98      public long getPrimaryKey() {
99          return _contentSearchId;
100     }
101 
102     public void setPrimaryKey(long pk) {
103         setContentSearchId(pk);
104     }
105 
106     public long getContentSearchId() {
107         return _contentSearchId;
108     }
109 
110     public void setContentSearchId(long contentSearchId) {
111         _contentSearchId = contentSearchId;
112     }
113 
114     public long getGroupId() {
115         return _groupId;
116     }
117 
118     public void setGroupId(long groupId) {
119         _groupId = groupId;
120     }
121 
122     public long getCompanyId() {
123         return _companyId;
124     }
125 
126     public void setCompanyId(long companyId) {
127         _companyId = companyId;
128     }
129 
130     public boolean getPrivateLayout() {
131         return _privateLayout;
132     }
133 
134     public boolean isPrivateLayout() {
135         return _privateLayout;
136     }
137 
138     public void setPrivateLayout(boolean privateLayout) {
139         _privateLayout = privateLayout;
140     }
141 
142     public long getLayoutId() {
143         return _layoutId;
144     }
145 
146     public void setLayoutId(long layoutId) {
147         _layoutId = layoutId;
148     }
149 
150     public String getPortletId() {
151         return _portletId;
152     }
153 
154     public void setPortletId(String portletId) {
155         _portletId = portletId;
156     }
157 
158     public String getArticleId() {
159         return _articleId;
160     }
161 
162     public void setArticleId(String articleId) {
163         _articleId = articleId;
164     }
165 
166     private long _contentSearchId;
167     private long _groupId;
168     private long _companyId;
169     private boolean _privateLayout;
170     private long _layoutId;
171     private String _portletId;
172     private String _articleId;
173 }