1   /**
2    * Copyright (c) 2000-2008 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   * <p>
43   * <code>com.liferay.portlet.journal.service.JournalContentSearchLocalServiceFactory</code>
44   * is responsible for the lookup of the bean.
45   * </p>
46   *
47   * @author Brian Wing Shun Chan
48   *
49   * @see com.liferay.portlet.journal.service.JournalContentSearchLocalService
50   * @see com.liferay.portlet.journal.service.JournalContentSearchLocalServiceFactory
51   *
52   */
53  public class JournalContentSearchLocalServiceUtil {
54      public static com.liferay.portlet.journal.model.JournalContentSearch addJournalContentSearch(
55          com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch)
56          throws com.liferay.portal.SystemException {
57          JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory.getService();
58  
59          return journalContentSearchLocalService.addJournalContentSearch(journalContentSearch);
60      }
61  
62      public static void deleteJournalContentSearch(long contentSearchId)
63          throws com.liferay.portal.PortalException,
64              com.liferay.portal.SystemException {
65          JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory.getService();
66  
67          journalContentSearchLocalService.deleteJournalContentSearch(contentSearchId);
68      }
69  
70      public static void deleteJournalContentSearch(
71          com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch)
72          throws com.liferay.portal.SystemException {
73          JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory.getService();
74  
75          journalContentSearchLocalService.deleteJournalContentSearch(journalContentSearch);
76      }
77  
78      public static java.util.List<Object> dynamicQuery(
79          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
80          throws com.liferay.portal.SystemException {
81          JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory.getService();
82  
83          return journalContentSearchLocalService.dynamicQuery(dynamicQuery);
84      }
85  
86      public static java.util.List<Object> dynamicQuery(
87          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
88          int end) throws com.liferay.portal.SystemException {
89          JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory.getService();
90  
91          return journalContentSearchLocalService.dynamicQuery(dynamicQuery,
92              start, end);
93      }
94  
95      public static com.liferay.portlet.journal.model.JournalContentSearch getJournalContentSearch(
96          long contentSearchId)
97          throws com.liferay.portal.PortalException,
98              com.liferay.portal.SystemException {
99          JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory.getService();
100 
101         return journalContentSearchLocalService.getJournalContentSearch(contentSearchId);
102     }
103 
104     public static com.liferay.portlet.journal.model.JournalContentSearch updateJournalContentSearch(
105         com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch)
106         throws com.liferay.portal.SystemException {
107         JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory.getService();
108 
109         return journalContentSearchLocalService.updateJournalContentSearch(journalContentSearch);
110     }
111 
112     public static void checkContentSearches(long companyId)
113         throws com.liferay.portal.PortalException,
114             com.liferay.portal.SystemException {
115         JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory.getService();
116 
117         journalContentSearchLocalService.checkContentSearches(companyId);
118     }
119 
120     public static void deleteArticleContentSearch(long groupId,
121         boolean privateLayout, long layoutId, java.lang.String portletId,
122         java.lang.String articleId)
123         throws com.liferay.portal.PortalException,
124             com.liferay.portal.SystemException {
125         JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory.getService();
126 
127         journalContentSearchLocalService.deleteArticleContentSearch(groupId,
128             privateLayout, layoutId, portletId, articleId);
129     }
130 
131     public static void deleteArticleContentSearches(long groupId,
132         java.lang.String articleId) throws com.liferay.portal.SystemException {
133         JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory.getService();
134 
135         journalContentSearchLocalService.deleteArticleContentSearches(groupId,
136             articleId);
137     }
138 
139     public static void deleteLayoutContentSearches(long groupId,
140         boolean privateLayout, long layoutId)
141         throws com.liferay.portal.SystemException {
142         JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory.getService();
143 
144         journalContentSearchLocalService.deleteLayoutContentSearches(groupId,
145             privateLayout, layoutId);
146     }
147 
148     public static void deleteOwnerContentSearches(long groupId,
149         boolean privateLayout) throws com.liferay.portal.SystemException {
150         JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory.getService();
151 
152         journalContentSearchLocalService.deleteOwnerContentSearches(groupId,
153             privateLayout);
154     }
155 
156     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> getArticleContentSearches()
157         throws com.liferay.portal.SystemException {
158         JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory.getService();
159 
160         return journalContentSearchLocalService.getArticleContentSearches();
161     }
162 
163     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> getArticleContentSearches(
164         long groupId, java.lang.String articleId)
165         throws com.liferay.portal.SystemException {
166         JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory.getService();
167 
168         return journalContentSearchLocalService.getArticleContentSearches(groupId,
169             articleId);
170     }
171 
172     public static java.util.List<Long> getLayoutIds(long groupId,
173         boolean privateLayout, java.lang.String articleId)
174         throws com.liferay.portal.SystemException {
175         JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory.getService();
176 
177         return journalContentSearchLocalService.getLayoutIds(groupId,
178             privateLayout, articleId);
179     }
180 
181     public static int getLayoutIdsCount(long groupId, boolean privateLayout,
182         java.lang.String articleId) throws com.liferay.portal.SystemException {
183         JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory.getService();
184 
185         return journalContentSearchLocalService.getLayoutIdsCount(groupId,
186             privateLayout, articleId);
187     }
188 
189     public static com.liferay.portlet.journal.model.JournalContentSearch updateContentSearch(
190         long groupId, boolean privateLayout, long layoutId,
191         java.lang.String portletId, java.lang.String articleId)
192         throws com.liferay.portal.PortalException,
193             com.liferay.portal.SystemException {
194         JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory.getService();
195 
196         return journalContentSearchLocalService.updateContentSearch(groupId,
197             privateLayout, layoutId, portletId, articleId);
198     }
199 
200     public static com.liferay.portlet.journal.model.JournalContentSearch updateContentSearch(
201         long groupId, boolean privateLayout, long layoutId,
202         java.lang.String portletId, java.lang.String articleId, boolean purge)
203         throws com.liferay.portal.PortalException,
204             com.liferay.portal.SystemException {
205         JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory.getService();
206 
207         return journalContentSearchLocalService.updateContentSearch(groupId,
208             privateLayout, layoutId, portletId, articleId, purge);
209     }
210 
211     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> updateContentSearch(
212         long groupId, boolean privateLayout, long layoutId,
213         java.lang.String portletId, java.lang.String[] articleIds)
214         throws com.liferay.portal.PortalException,
215             com.liferay.portal.SystemException {
216         JournalContentSearchLocalService journalContentSearchLocalService = JournalContentSearchLocalServiceFactory.getService();
217 
218         return journalContentSearchLocalService.updateContentSearch(groupId,
219             privateLayout, layoutId, portletId, articleIds);
220     }
221 }