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