1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.journal.service;
24  
25  
26  /**
27   * <a href="JournalContentSearchLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This class provides static methods for the
36   * <code>com.liferay.portlet.journal.service.JournalContentSearchLocalService</code>
37   * bean. The static methods of this class calls the same methods of the bean
38   * instance. It's convenient to be able to just write one line to call a method
39   * on a bean instead of writing a lookup call and a method call.
40   * </p>
41   *
42   * @author Brian Wing Shun Chan
43   *
44   * @see com.liferay.portlet.journal.service.JournalContentSearchLocalService
45   *
46   */
47  public class JournalContentSearchLocalServiceUtil {
48      public static com.liferay.portlet.journal.model.JournalContentSearch addJournalContentSearch(
49          com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch)
50          throws com.liferay.portal.SystemException {
51          return getService().addJournalContentSearch(journalContentSearch);
52      }
53  
54      public static com.liferay.portlet.journal.model.JournalContentSearch createJournalContentSearch(
55          long contentSearchId) {
56          return getService().createJournalContentSearch(contentSearchId);
57      }
58  
59      public static void deleteJournalContentSearch(long contentSearchId)
60          throws com.liferay.portal.PortalException,
61              com.liferay.portal.SystemException {
62          getService().deleteJournalContentSearch(contentSearchId);
63      }
64  
65      public static void deleteJournalContentSearch(
66          com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch)
67          throws com.liferay.portal.SystemException {
68          getService().deleteJournalContentSearch(journalContentSearch);
69      }
70  
71      public static java.util.List<Object> dynamicQuery(
72          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
73          throws com.liferay.portal.SystemException {
74          return getService().dynamicQuery(dynamicQuery);
75      }
76  
77      public static java.util.List<Object> dynamicQuery(
78          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
79          int end) throws com.liferay.portal.SystemException {
80          return getService().dynamicQuery(dynamicQuery, start, end);
81      }
82  
83      public static com.liferay.portlet.journal.model.JournalContentSearch getJournalContentSearch(
84          long contentSearchId)
85          throws com.liferay.portal.PortalException,
86              com.liferay.portal.SystemException {
87          return getService().getJournalContentSearch(contentSearchId);
88      }
89  
90      public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> getJournalContentSearchs(
91          int start, int end) throws com.liferay.portal.SystemException {
92          return getService().getJournalContentSearchs(start, end);
93      }
94  
95      public static int getJournalContentSearchsCount()
96          throws com.liferay.portal.SystemException {
97          return getService().getJournalContentSearchsCount();
98      }
99  
100     public static com.liferay.portlet.journal.model.JournalContentSearch updateJournalContentSearch(
101         com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch)
102         throws com.liferay.portal.SystemException {
103         return getService().updateJournalContentSearch(journalContentSearch);
104     }
105 
106     public static void checkContentSearches(long companyId)
107         throws com.liferay.portal.PortalException,
108             com.liferay.portal.SystemException {
109         getService().checkContentSearches(companyId);
110     }
111 
112     public static void deleteArticleContentSearch(long groupId,
113         boolean privateLayout, long layoutId, java.lang.String portletId,
114         java.lang.String articleId)
115         throws com.liferay.portal.PortalException,
116             com.liferay.portal.SystemException {
117         getService()
118             .deleteArticleContentSearch(groupId, privateLayout, layoutId,
119             portletId, articleId);
120     }
121 
122     public static void deleteArticleContentSearches(long groupId,
123         java.lang.String articleId) throws com.liferay.portal.SystemException {
124         getService().deleteArticleContentSearches(groupId, articleId);
125     }
126 
127     public static void deleteLayoutContentSearches(long groupId,
128         boolean privateLayout, long layoutId)
129         throws com.liferay.portal.SystemException {
130         getService()
131             .deleteLayoutContentSearches(groupId, privateLayout, layoutId);
132     }
133 
134     public static void deleteOwnerContentSearches(long groupId,
135         boolean privateLayout) throws com.liferay.portal.SystemException {
136         getService().deleteOwnerContentSearches(groupId, privateLayout);
137     }
138 
139     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> getArticleContentSearches()
140         throws com.liferay.portal.SystemException {
141         return getService().getArticleContentSearches();
142     }
143 
144     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> getArticleContentSearches(
145         long groupId, java.lang.String articleId)
146         throws com.liferay.portal.SystemException {
147         return getService().getArticleContentSearches(groupId, articleId);
148     }
149 
150     public static java.util.List<Long> getLayoutIds(long groupId,
151         boolean privateLayout, java.lang.String articleId)
152         throws com.liferay.portal.SystemException {
153         return getService().getLayoutIds(groupId, privateLayout, articleId);
154     }
155 
156     public static int getLayoutIdsCount(long groupId, boolean privateLayout,
157         java.lang.String articleId) throws com.liferay.portal.SystemException {
158         return getService().getLayoutIdsCount(groupId, privateLayout, articleId);
159     }
160 
161     public static com.liferay.portlet.journal.model.JournalContentSearch updateContentSearch(
162         long groupId, boolean privateLayout, long layoutId,
163         java.lang.String portletId, java.lang.String articleId)
164         throws com.liferay.portal.PortalException,
165             com.liferay.portal.SystemException {
166         return getService()
167                    .updateContentSearch(groupId, privateLayout, layoutId,
168             portletId, articleId);
169     }
170 
171     public static com.liferay.portlet.journal.model.JournalContentSearch updateContentSearch(
172         long groupId, boolean privateLayout, long layoutId,
173         java.lang.String portletId, java.lang.String articleId, boolean purge)
174         throws com.liferay.portal.PortalException,
175             com.liferay.portal.SystemException {
176         return getService()
177                    .updateContentSearch(groupId, privateLayout, layoutId,
178             portletId, articleId, purge);
179     }
180 
181     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> updateContentSearch(
182         long groupId, boolean privateLayout, long layoutId,
183         java.lang.String portletId, java.lang.String[] articleIds)
184         throws com.liferay.portal.PortalException,
185             com.liferay.portal.SystemException {
186         return getService()
187                    .updateContentSearch(groupId, privateLayout, layoutId,
188             portletId, articleIds);
189     }
190 
191     public static JournalContentSearchLocalService getService() {
192         if (_service == null) {
193             throw new RuntimeException(
194                 "JournalContentSearchLocalService is not set");
195         }
196 
197         return _service;
198     }
199 
200     public void setService(JournalContentSearchLocalService service) {
201         _service = service;
202     }
203 
204     private static JournalContentSearchLocalService _service;
205 }