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.service;
24  
25  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
26  
27  /**
28   * <a href="JournalContentSearchLocalServiceUtil.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 provides static methods for the
37   * {@link JournalContentSearchLocalService} bean. The static methods of
38   * this class calls the same methods of the bean instance. It's convenient to be
39   * able to just write one line to call a method on a bean instead of writing a
40   * lookup call and a method call.
41   * </p>
42   *
43   * @author    Brian Wing Shun Chan
44   * @see       JournalContentSearchLocalService
45   * @generated
46   */
47  public class JournalContentSearchLocalServiceUtil {
48      public static com.liferay.portlet.journal.model.JournalContentSearch addJournalContentSearch(
49          com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch)
50          throws com.liferay.portal.SystemException {
51          return getService().addJournalContentSearch(journalContentSearch);
52      }
53  
54      public static com.liferay.portlet.journal.model.JournalContentSearch createJournalContentSearch(
55          long contentSearchId) {
56          return getService().createJournalContentSearch(contentSearchId);
57      }
58  
59      public static void deleteJournalContentSearch(long contentSearchId)
60          throws com.liferay.portal.PortalException,
61              com.liferay.portal.SystemException {
62          getService().deleteJournalContentSearch(contentSearchId);
63      }
64  
65      public static void deleteJournalContentSearch(
66          com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch)
67          throws com.liferay.portal.SystemException {
68          getService().deleteJournalContentSearch(journalContentSearch);
69      }
70  
71      public static java.util.List<Object> dynamicQuery(
72          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
73          throws com.liferay.portal.SystemException {
74          return getService().dynamicQuery(dynamicQuery);
75      }
76  
77      public static java.util.List<Object> dynamicQuery(
78          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
79          int end) throws com.liferay.portal.SystemException {
80          return getService().dynamicQuery(dynamicQuery, start, end);
81      }
82  
83      public static com.liferay.portlet.journal.model.JournalContentSearch getJournalContentSearch(
84          long contentSearchId)
85          throws com.liferay.portal.PortalException,
86              com.liferay.portal.SystemException {
87          return getService().getJournalContentSearch(contentSearchId);
88      }
89  
90      public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> getJournalContentSearchs(
91          int start, int end) throws com.liferay.portal.SystemException {
92          return getService().getJournalContentSearchs(start, end);
93      }
94  
95      public static int getJournalContentSearchsCount()
96          throws com.liferay.portal.SystemException {
97          return getService().getJournalContentSearchsCount();
98      }
99  
100     public static com.liferay.portlet.journal.model.JournalContentSearch updateJournalContentSearch(
101         com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch)
102         throws com.liferay.portal.SystemException {
103         return getService().updateJournalContentSearch(journalContentSearch);
104     }
105 
106     public static com.liferay.portlet.journal.model.JournalContentSearch updateJournalContentSearch(
107         com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch,
108         boolean merge) throws com.liferay.portal.SystemException {
109         return getService()
110                    .updateJournalContentSearch(journalContentSearch, merge);
111     }
112 
113     public static void checkContentSearches(long companyId)
114         throws com.liferay.portal.PortalException,
115             com.liferay.portal.SystemException {
116         getService().checkContentSearches(companyId);
117     }
118 
119     public static void deleteArticleContentSearch(long groupId,
120         boolean privateLayout, long layoutId, java.lang.String portletId,
121         java.lang.String articleId)
122         throws com.liferay.portal.PortalException,
123             com.liferay.portal.SystemException {
124         getService()
125             .deleteArticleContentSearch(groupId, privateLayout, layoutId,
126             portletId, articleId);
127     }
128 
129     public static void deleteArticleContentSearches(long groupId,
130         java.lang.String articleId) throws com.liferay.portal.SystemException {
131         getService().deleteArticleContentSearches(groupId, articleId);
132     }
133 
134     public static void deleteLayoutContentSearches(long groupId,
135         boolean privateLayout, long layoutId)
136         throws com.liferay.portal.SystemException {
137         getService()
138             .deleteLayoutContentSearches(groupId, privateLayout, layoutId);
139     }
140 
141     public static void deleteOwnerContentSearches(long groupId,
142         boolean privateLayout) throws com.liferay.portal.SystemException {
143         getService().deleteOwnerContentSearches(groupId, privateLayout);
144     }
145 
146     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> getArticleContentSearches()
147         throws com.liferay.portal.SystemException {
148         return getService().getArticleContentSearches();
149     }
150 
151     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> getArticleContentSearches(
152         long groupId, java.lang.String articleId)
153         throws com.liferay.portal.SystemException {
154         return getService().getArticleContentSearches(groupId, articleId);
155     }
156 
157     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> getArticleContentSearches(
158         java.lang.String articleId) throws com.liferay.portal.SystemException {
159         return getService().getArticleContentSearches(articleId);
160     }
161 
162     public static java.util.List<Long> getLayoutIds(long groupId,
163         boolean privateLayout, java.lang.String articleId)
164         throws com.liferay.portal.SystemException {
165         return getService().getLayoutIds(groupId, privateLayout, articleId);
166     }
167 
168     public static int getLayoutIdsCount(long groupId, boolean privateLayout,
169         java.lang.String articleId) throws com.liferay.portal.SystemException {
170         return getService().getLayoutIdsCount(groupId, privateLayout, articleId);
171     }
172 
173     public static int getLayoutIdsCount(java.lang.String articleId)
174         throws com.liferay.portal.SystemException {
175         return getService().getLayoutIdsCount(articleId);
176     }
177 
178     public static com.liferay.portlet.journal.model.JournalContentSearch updateContentSearch(
179         long groupId, boolean privateLayout, long layoutId,
180         java.lang.String portletId, java.lang.String articleId)
181         throws com.liferay.portal.PortalException,
182             com.liferay.portal.SystemException {
183         return getService()
184                    .updateContentSearch(groupId, privateLayout, layoutId,
185             portletId, articleId);
186     }
187 
188     public static com.liferay.portlet.journal.model.JournalContentSearch updateContentSearch(
189         long groupId, boolean privateLayout, long layoutId,
190         java.lang.String portletId, java.lang.String articleId, boolean purge)
191         throws com.liferay.portal.PortalException,
192             com.liferay.portal.SystemException {
193         return getService()
194                    .updateContentSearch(groupId, privateLayout, layoutId,
195             portletId, articleId, purge);
196     }
197 
198     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> updateContentSearch(
199         long groupId, boolean privateLayout, long layoutId,
200         java.lang.String portletId, java.lang.String[] articleIds)
201         throws com.liferay.portal.PortalException,
202             com.liferay.portal.SystemException {
203         return getService()
204                    .updateContentSearch(groupId, privateLayout, layoutId,
205             portletId, articleIds);
206     }
207 
208     public static JournalContentSearchLocalService getService() {
209         if (_service == null) {
210             _service = (JournalContentSearchLocalService)PortalBeanLocatorUtil.locate(JournalContentSearchLocalService.class.getName());
211         }
212 
213         return _service;
214     }
215 
216     public void setService(JournalContentSearchLocalService service) {
217         _service = service;
218     }
219 
220     private static JournalContentSearchLocalService _service;
221 }