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      @SuppressWarnings("unchecked")
64      public static java.util.List dynamicQuery(
65          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66          throws com.liferay.portal.kernel.exception.SystemException {
67          return getService().dynamicQuery(dynamicQuery);
68      }
69  
70      @SuppressWarnings("unchecked")
71      public static java.util.List dynamicQuery(
72          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73          int end) throws com.liferay.portal.kernel.exception.SystemException {
74          return getService().dynamicQuery(dynamicQuery, start, end);
75      }
76  
77      @SuppressWarnings("unchecked")
78      public static java.util.List dynamicQuery(
79          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
80          int end,
81          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
82          throws com.liferay.portal.kernel.exception.SystemException {
83          return getService()
84                     .dynamicQuery(dynamicQuery, start, end, orderByComparator);
85      }
86  
87      public static long dynamicQueryCount(
88          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
89          throws com.liferay.portal.kernel.exception.SystemException {
90          return getService().dynamicQueryCount(dynamicQuery);
91      }
92  
93      public static com.liferay.portlet.journal.model.JournalContentSearch getJournalContentSearch(
94          long contentSearchId)
95          throws com.liferay.portal.kernel.exception.PortalException,
96              com.liferay.portal.kernel.exception.SystemException {
97          return getService().getJournalContentSearch(contentSearchId);
98      }
99  
100     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> getJournalContentSearchs(
101         int start, int end)
102         throws com.liferay.portal.kernel.exception.SystemException {
103         return getService().getJournalContentSearchs(start, end);
104     }
105 
106     public static int getJournalContentSearchsCount()
107         throws com.liferay.portal.kernel.exception.SystemException {
108         return getService().getJournalContentSearchsCount();
109     }
110 
111     public static com.liferay.portlet.journal.model.JournalContentSearch updateJournalContentSearch(
112         com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch)
113         throws com.liferay.portal.kernel.exception.SystemException {
114         return getService().updateJournalContentSearch(journalContentSearch);
115     }
116 
117     public static com.liferay.portlet.journal.model.JournalContentSearch updateJournalContentSearch(
118         com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch,
119         boolean merge)
120         throws com.liferay.portal.kernel.exception.SystemException {
121         return getService()
122                    .updateJournalContentSearch(journalContentSearch, merge);
123     }
124 
125     public static void checkContentSearches(long companyId)
126         throws com.liferay.portal.kernel.exception.PortalException,
127             com.liferay.portal.kernel.exception.SystemException {
128         getService().checkContentSearches(companyId);
129     }
130 
131     public static void deleteArticleContentSearch(long groupId,
132         boolean privateLayout, long layoutId, java.lang.String portletId,
133         java.lang.String articleId)
134         throws com.liferay.portal.kernel.exception.PortalException,
135             com.liferay.portal.kernel.exception.SystemException {
136         getService()
137             .deleteArticleContentSearch(groupId, privateLayout, layoutId,
138             portletId, articleId);
139     }
140 
141     public static void deleteArticleContentSearches(long groupId,
142         java.lang.String articleId)
143         throws com.liferay.portal.kernel.exception.SystemException {
144         getService().deleteArticleContentSearches(groupId, articleId);
145     }
146 
147     public static void deleteLayoutContentSearches(long groupId,
148         boolean privateLayout, long layoutId)
149         throws com.liferay.portal.kernel.exception.SystemException {
150         getService()
151             .deleteLayoutContentSearches(groupId, privateLayout, layoutId);
152     }
153 
154     public static void deleteOwnerContentSearches(long groupId,
155         boolean privateLayout)
156         throws com.liferay.portal.kernel.exception.SystemException {
157         getService().deleteOwnerContentSearches(groupId, privateLayout);
158     }
159 
160     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> getArticleContentSearches()
161         throws com.liferay.portal.kernel.exception.SystemException {
162         return getService().getArticleContentSearches();
163     }
164 
165     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> getArticleContentSearches(
166         long groupId, java.lang.String articleId)
167         throws com.liferay.portal.kernel.exception.SystemException {
168         return getService().getArticleContentSearches(groupId, articleId);
169     }
170 
171     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> getArticleContentSearches(
172         java.lang.String articleId)
173         throws com.liferay.portal.kernel.exception.SystemException {
174         return getService().getArticleContentSearches(articleId);
175     }
176 
177     public static java.util.List<java.lang.Long> getLayoutIds(long groupId,
178         boolean privateLayout, java.lang.String articleId)
179         throws com.liferay.portal.kernel.exception.SystemException {
180         return getService().getLayoutIds(groupId, privateLayout, articleId);
181     }
182 
183     public static int getLayoutIdsCount(long groupId, boolean privateLayout,
184         java.lang.String articleId)
185         throws com.liferay.portal.kernel.exception.SystemException {
186         return getService().getLayoutIdsCount(groupId, privateLayout, articleId);
187     }
188 
189     public static int getLayoutIdsCount(java.lang.String articleId)
190         throws com.liferay.portal.kernel.exception.SystemException {
191         return getService().getLayoutIdsCount(articleId);
192     }
193 
194     public static com.liferay.portlet.journal.model.JournalContentSearch updateContentSearch(
195         long groupId, boolean privateLayout, long layoutId,
196         java.lang.String portletId, java.lang.String articleId)
197         throws com.liferay.portal.kernel.exception.PortalException,
198             com.liferay.portal.kernel.exception.SystemException {
199         return getService()
200                    .updateContentSearch(groupId, privateLayout, layoutId,
201             portletId, articleId);
202     }
203 
204     public static com.liferay.portlet.journal.model.JournalContentSearch updateContentSearch(
205         long groupId, boolean privateLayout, long layoutId,
206         java.lang.String portletId, java.lang.String articleId, boolean purge)
207         throws com.liferay.portal.kernel.exception.PortalException,
208             com.liferay.portal.kernel.exception.SystemException {
209         return getService()
210                    .updateContentSearch(groupId, privateLayout, layoutId,
211             portletId, articleId, purge);
212     }
213 
214     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> updateContentSearch(
215         long groupId, boolean privateLayout, long layoutId,
216         java.lang.String portletId, java.lang.String[] articleIds)
217         throws com.liferay.portal.kernel.exception.PortalException,
218             com.liferay.portal.kernel.exception.SystemException {
219         return getService()
220                    .updateContentSearch(groupId, privateLayout, layoutId,
221             portletId, articleIds);
222     }
223 
224     public static JournalContentSearchLocalService getService() {
225         if (_service == null) {
226             _service = (JournalContentSearchLocalService)PortalBeanLocatorUtil.locate(JournalContentSearchLocalService.class.getName());
227         }
228 
229         return _service;
230     }
231 
232     public void setService(JournalContentSearchLocalService service) {
233         _service = service;
234     }
235 
236     private static JournalContentSearchLocalService _service;
237 }