1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.journal.service;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  
19  /**
20   * <a href="JournalContentSearchLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
21   *
22   * <p>
23   * ServiceBuilder generated this class. Modifications in this class will be
24   * overwritten the next time is generated.
25   * </p>
26   *
27   * <p>
28   * This class provides static methods for the
29   * {@link JournalContentSearchLocalService} bean. The static methods of
30   * this class calls the same methods of the bean instance. It's convenient to be
31   * able to just write one line to call a method on a bean instead of writing a
32   * lookup call and a method call.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       JournalContentSearchLocalService
37   * @generated
38   */
39  public class JournalContentSearchLocalServiceUtil {
40      public static com.liferay.portlet.journal.model.JournalContentSearch addJournalContentSearch(
41          com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch)
42          throws com.liferay.portal.kernel.exception.SystemException {
43          return getService().addJournalContentSearch(journalContentSearch);
44      }
45  
46      public static com.liferay.portlet.journal.model.JournalContentSearch createJournalContentSearch(
47          long contentSearchId) {
48          return getService().createJournalContentSearch(contentSearchId);
49      }
50  
51      public static void deleteJournalContentSearch(long contentSearchId)
52          throws com.liferay.portal.kernel.exception.PortalException,
53              com.liferay.portal.kernel.exception.SystemException {
54          getService().deleteJournalContentSearch(contentSearchId);
55      }
56  
57      public static void deleteJournalContentSearch(
58          com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch)
59          throws com.liferay.portal.kernel.exception.SystemException {
60          getService().deleteJournalContentSearch(journalContentSearch);
61      }
62  
63      public static java.util.List<Object> dynamicQuery(
64          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65          throws com.liferay.portal.kernel.exception.SystemException {
66          return getService().dynamicQuery(dynamicQuery);
67      }
68  
69      public static java.util.List<Object> dynamicQuery(
70          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71          int end) throws com.liferay.portal.kernel.exception.SystemException {
72          return getService().dynamicQuery(dynamicQuery, start, end);
73      }
74  
75      public static java.util.List<Object> dynamicQuery(
76          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
77          int end,
78          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
79          throws com.liferay.portal.kernel.exception.SystemException {
80          return getService()
81                     .dynamicQuery(dynamicQuery, start, end, orderByComparator);
82      }
83  
84      public static int dynamicQueryCount(
85          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
86          throws com.liferay.portal.kernel.exception.SystemException {
87          return getService().dynamicQueryCount(dynamicQuery);
88      }
89  
90      public static com.liferay.portlet.journal.model.JournalContentSearch getJournalContentSearch(
91          long contentSearchId)
92          throws com.liferay.portal.kernel.exception.PortalException,
93              com.liferay.portal.kernel.exception.SystemException {
94          return getService().getJournalContentSearch(contentSearchId);
95      }
96  
97      public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> getJournalContentSearchs(
98          int start, int end)
99          throws com.liferay.portal.kernel.exception.SystemException {
100         return getService().getJournalContentSearchs(start, end);
101     }
102 
103     public static int getJournalContentSearchsCount()
104         throws com.liferay.portal.kernel.exception.SystemException {
105         return getService().getJournalContentSearchsCount();
106     }
107 
108     public static com.liferay.portlet.journal.model.JournalContentSearch updateJournalContentSearch(
109         com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch)
110         throws com.liferay.portal.kernel.exception.SystemException {
111         return getService().updateJournalContentSearch(journalContentSearch);
112     }
113 
114     public static com.liferay.portlet.journal.model.JournalContentSearch updateJournalContentSearch(
115         com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch,
116         boolean merge)
117         throws com.liferay.portal.kernel.exception.SystemException {
118         return getService()
119                    .updateJournalContentSearch(journalContentSearch, merge);
120     }
121 
122     public static void checkContentSearches(long companyId)
123         throws com.liferay.portal.kernel.exception.PortalException,
124             com.liferay.portal.kernel.exception.SystemException {
125         getService().checkContentSearches(companyId);
126     }
127 
128     public static void deleteArticleContentSearch(long groupId,
129         boolean privateLayout, long layoutId, java.lang.String portletId,
130         java.lang.String articleId)
131         throws com.liferay.portal.kernel.exception.PortalException,
132             com.liferay.portal.kernel.exception.SystemException {
133         getService()
134             .deleteArticleContentSearch(groupId, privateLayout, layoutId,
135             portletId, articleId);
136     }
137 
138     public static void deleteArticleContentSearches(long groupId,
139         java.lang.String articleId)
140         throws com.liferay.portal.kernel.exception.SystemException {
141         getService().deleteArticleContentSearches(groupId, articleId);
142     }
143 
144     public static void deleteLayoutContentSearches(long groupId,
145         boolean privateLayout, long layoutId)
146         throws com.liferay.portal.kernel.exception.SystemException {
147         getService()
148             .deleteLayoutContentSearches(groupId, privateLayout, layoutId);
149     }
150 
151     public static void deleteOwnerContentSearches(long groupId,
152         boolean privateLayout)
153         throws com.liferay.portal.kernel.exception.SystemException {
154         getService().deleteOwnerContentSearches(groupId, privateLayout);
155     }
156 
157     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> getArticleContentSearches()
158         throws com.liferay.portal.kernel.exception.SystemException {
159         return getService().getArticleContentSearches();
160     }
161 
162     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> getArticleContentSearches(
163         long groupId, java.lang.String articleId)
164         throws com.liferay.portal.kernel.exception.SystemException {
165         return getService().getArticleContentSearches(groupId, articleId);
166     }
167 
168     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> getArticleContentSearches(
169         java.lang.String articleId)
170         throws com.liferay.portal.kernel.exception.SystemException {
171         return getService().getArticleContentSearches(articleId);
172     }
173 
174     public static java.util.List<Long> getLayoutIds(long groupId,
175         boolean privateLayout, java.lang.String articleId)
176         throws com.liferay.portal.kernel.exception.SystemException {
177         return getService().getLayoutIds(groupId, privateLayout, articleId);
178     }
179 
180     public static int getLayoutIdsCount(long groupId, boolean privateLayout,
181         java.lang.String articleId)
182         throws com.liferay.portal.kernel.exception.SystemException {
183         return getService().getLayoutIdsCount(groupId, privateLayout, articleId);
184     }
185 
186     public static int getLayoutIdsCount(java.lang.String articleId)
187         throws com.liferay.portal.kernel.exception.SystemException {
188         return getService().getLayoutIdsCount(articleId);
189     }
190 
191     public static com.liferay.portlet.journal.model.JournalContentSearch updateContentSearch(
192         long groupId, boolean privateLayout, long layoutId,
193         java.lang.String portletId, java.lang.String articleId)
194         throws com.liferay.portal.kernel.exception.PortalException,
195             com.liferay.portal.kernel.exception.SystemException {
196         return getService()
197                    .updateContentSearch(groupId, privateLayout, layoutId,
198             portletId, articleId);
199     }
200 
201     public static com.liferay.portlet.journal.model.JournalContentSearch updateContentSearch(
202         long groupId, boolean privateLayout, long layoutId,
203         java.lang.String portletId, java.lang.String articleId, boolean purge)
204         throws com.liferay.portal.kernel.exception.PortalException,
205             com.liferay.portal.kernel.exception.SystemException {
206         return getService()
207                    .updateContentSearch(groupId, privateLayout, layoutId,
208             portletId, articleId, purge);
209     }
210 
211     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> updateContentSearch(
212         long groupId, boolean privateLayout, long layoutId,
213         java.lang.String portletId, java.lang.String[] articleIds)
214         throws com.liferay.portal.kernel.exception.PortalException,
215             com.liferay.portal.kernel.exception.SystemException {
216         return getService()
217                    .updateContentSearch(groupId, privateLayout, layoutId,
218             portletId, articleIds);
219     }
220 
221     public static JournalContentSearchLocalService getService() {
222         if (_service == null) {
223             _service = (JournalContentSearchLocalService)PortalBeanLocatorUtil.locate(JournalContentSearchLocalService.class.getName());
224         }
225 
226         return _service;
227     }
228 
229     public void setService(JournalContentSearchLocalService service) {
230         _service = service;
231     }
232 
233     private static JournalContentSearchLocalService _service;
234 }