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