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          List<JournalContentSearch> models) {
63          List<JournalContentSearchSoap> soapModels = new ArrayList<JournalContentSearchSoap>(models.size());
64  
65          for (JournalContentSearch model : models) {
66              soapModels.add(toSoapModel(model));
67          }
68  
69          return soapModels.toArray(new JournalContentSearchSoap[soapModels.size()]);
70      }
71  
72      public JournalContentSearchSoap() {
73      }
74  
75      public long getPrimaryKey() {
76          return _contentSearchId;
77      }
78  
79      public void setPrimaryKey(long pk) {
80          setContentSearchId(pk);
81      }
82  
83      public long getContentSearchId() {
84          return _contentSearchId;
85      }
86  
87      public void setContentSearchId(long contentSearchId) {
88          _contentSearchId = contentSearchId;
89      }
90  
91      public long getGroupId() {
92          return _groupId;
93      }
94  
95      public void setGroupId(long groupId) {
96          _groupId = groupId;
97      }
98  
99      public long getCompanyId() {
100         return _companyId;
101     }
102 
103     public void setCompanyId(long companyId) {
104         _companyId = companyId;
105     }
106 
107     public boolean getPrivateLayout() {
108         return _privateLayout;
109     }
110 
111     public boolean isPrivateLayout() {
112         return _privateLayout;
113     }
114 
115     public void setPrivateLayout(boolean privateLayout) {
116         _privateLayout = privateLayout;
117     }
118 
119     public long getLayoutId() {
120         return _layoutId;
121     }
122 
123     public void setLayoutId(long layoutId) {
124         _layoutId = layoutId;
125     }
126 
127     public String getPortletId() {
128         return _portletId;
129     }
130 
131     public void setPortletId(String portletId) {
132         _portletId = portletId;
133     }
134 
135     public String getArticleId() {
136         return _articleId;
137     }
138 
139     public void setArticleId(String articleId) {
140         _articleId = articleId;
141     }
142 
143     private long _contentSearchId;
144     private long _groupId;
145     private long _companyId;
146     private boolean _privateLayout;
147     private long _layoutId;
148     private String _portletId;
149     private String _articleId;
150 }