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