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