001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.journal.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.util.ReferenceRegistry;
021    
022    /**
023     * Provides the local service utility for JournalContentSearch. This utility wraps
024     * {@link com.liferay.portlet.journal.service.impl.JournalContentSearchLocalServiceImpl} and is the
025     * primary access point for service operations in application layer code running
026     * on the local server. Methods of this service will not have security checks
027     * based on the propagated JAAS credentials because this service can only be
028     * accessed from within the same VM.
029     *
030     * @author Brian Wing Shun Chan
031     * @see JournalContentSearchLocalService
032     * @see com.liferay.portlet.journal.service.base.JournalContentSearchLocalServiceBaseImpl
033     * @see com.liferay.portlet.journal.service.impl.JournalContentSearchLocalServiceImpl
034     * @generated
035     */
036    @ProviderType
037    public class JournalContentSearchLocalServiceUtil {
038            /*
039             * NOTE FOR DEVELOPERS:
040             *
041             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.journal.service.impl.JournalContentSearchLocalServiceImpl} and rerun ServiceBuilder to regenerate this class.
042             */
043    
044            /**
045            * Adds the journal content search to the database. Also notifies the appropriate model listeners.
046            *
047            * @param journalContentSearch the journal content search
048            * @return the journal content search that was added
049            */
050            public static com.liferay.portlet.journal.model.JournalContentSearch addJournalContentSearch(
051                    com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch) {
052                    return getService().addJournalContentSearch(journalContentSearch);
053            }
054    
055            public static void checkContentSearches(long companyId)
056                    throws com.liferay.portal.kernel.exception.PortalException {
057                    getService().checkContentSearches(companyId);
058            }
059    
060            /**
061            * Creates a new journal content search with the primary key. Does not add the journal content search to the database.
062            *
063            * @param contentSearchId the primary key for the new journal content search
064            * @return the new journal content search
065            */
066            public static com.liferay.portlet.journal.model.JournalContentSearch createJournalContentSearch(
067                    long contentSearchId) {
068                    return getService().createJournalContentSearch(contentSearchId);
069            }
070    
071            public static void deleteArticleContentSearch(long groupId,
072                    boolean privateLayout, long layoutId, java.lang.String portletId) {
073                    getService()
074                            .deleteArticleContentSearch(groupId, privateLayout, layoutId,
075                            portletId);
076            }
077    
078            public static void deleteArticleContentSearch(long groupId,
079                    boolean privateLayout, long layoutId, java.lang.String portletId,
080                    java.lang.String articleId) {
081                    getService()
082                            .deleteArticleContentSearch(groupId, privateLayout, layoutId,
083                            portletId, articleId);
084            }
085    
086            public static void deleteArticleContentSearches(long groupId,
087                    java.lang.String articleId) {
088                    getService().deleteArticleContentSearches(groupId, articleId);
089            }
090    
091            /**
092            * Deletes the journal content search with the primary key from the database. Also notifies the appropriate model listeners.
093            *
094            * @param contentSearchId the primary key of the journal content search
095            * @return the journal content search that was removed
096            * @throws PortalException if a journal content search with the primary key could not be found
097            */
098            public static com.liferay.portlet.journal.model.JournalContentSearch deleteJournalContentSearch(
099                    long contentSearchId)
100                    throws com.liferay.portal.kernel.exception.PortalException {
101                    return getService().deleteJournalContentSearch(contentSearchId);
102            }
103    
104            /**
105            * Deletes the journal content search from the database. Also notifies the appropriate model listeners.
106            *
107            * @param journalContentSearch the journal content search
108            * @return the journal content search that was removed
109            */
110            public static com.liferay.portlet.journal.model.JournalContentSearch deleteJournalContentSearch(
111                    com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch) {
112                    return getService().deleteJournalContentSearch(journalContentSearch);
113            }
114    
115            public static void deleteLayoutContentSearches(long groupId,
116                    boolean privateLayout, long layoutId) {
117                    getService()
118                            .deleteLayoutContentSearches(groupId, privateLayout, layoutId);
119            }
120    
121            public static void deleteOwnerContentSearches(long groupId,
122                    boolean privateLayout) {
123                    getService().deleteOwnerContentSearches(groupId, privateLayout);
124            }
125    
126            /**
127            * @throws PortalException
128            */
129            public static com.liferay.portal.model.PersistedModel deletePersistedModel(
130                    com.liferay.portal.model.PersistedModel persistedModel)
131                    throws com.liferay.portal.kernel.exception.PortalException {
132                    return getService().deletePersistedModel(persistedModel);
133            }
134    
135            public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
136                    return getService().dynamicQuery();
137            }
138    
139            /**
140            * Performs a dynamic query on the database and returns the matching rows.
141            *
142            * @param dynamicQuery the dynamic query
143            * @return the matching rows
144            */
145            public static <T> java.util.List<T> dynamicQuery(
146                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
147                    return getService().dynamicQuery(dynamicQuery);
148            }
149    
150            /**
151            * Performs a dynamic query on the database and returns a range of the matching rows.
152            *
153            * <p>
154            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalContentSearchModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
155            * </p>
156            *
157            * @param dynamicQuery the dynamic query
158            * @param start the lower bound of the range of model instances
159            * @param end the upper bound of the range of model instances (not inclusive)
160            * @return the range of matching rows
161            */
162            public static <T> java.util.List<T> dynamicQuery(
163                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
164                    int end) {
165                    return getService().dynamicQuery(dynamicQuery, start, end);
166            }
167    
168            /**
169            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
170            *
171            * <p>
172            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalContentSearchModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
173            * </p>
174            *
175            * @param dynamicQuery the dynamic query
176            * @param start the lower bound of the range of model instances
177            * @param end the upper bound of the range of model instances (not inclusive)
178            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
179            * @return the ordered range of matching rows
180            */
181            public static <T> java.util.List<T> dynamicQuery(
182                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
183                    int end,
184                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
185                    return getService()
186                                       .dynamicQuery(dynamicQuery, start, end, orderByComparator);
187            }
188    
189            /**
190            * Returns the number of rows matching the dynamic query.
191            *
192            * @param dynamicQuery the dynamic query
193            * @return the number of rows matching the dynamic query
194            */
195            public static long dynamicQueryCount(
196                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
197                    return getService().dynamicQueryCount(dynamicQuery);
198            }
199    
200            /**
201            * Returns the number of rows matching the dynamic query.
202            *
203            * @param dynamicQuery the dynamic query
204            * @param projection the projection to apply to the query
205            * @return the number of rows matching the dynamic query
206            */
207            public static long dynamicQueryCount(
208                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
209                    com.liferay.portal.kernel.dao.orm.Projection projection) {
210                    return getService().dynamicQueryCount(dynamicQuery, projection);
211            }
212    
213            public static com.liferay.portlet.journal.model.JournalContentSearch fetchJournalContentSearch(
214                    long contentSearchId) {
215                    return getService().fetchJournalContentSearch(contentSearchId);
216            }
217    
218            public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
219                    return getService().getActionableDynamicQuery();
220            }
221    
222            public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> getArticleContentSearches() {
223                    return getService().getArticleContentSearches();
224            }
225    
226            public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> getArticleContentSearches(
227                    java.lang.String articleId) {
228                    return getService().getArticleContentSearches(articleId);
229            }
230    
231            public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> getArticleContentSearches(
232                    long groupId, java.lang.String articleId) {
233                    return getService().getArticleContentSearches(groupId, articleId);
234            }
235    
236            /**
237            * Returns the Spring bean ID for this bean.
238            *
239            * @return the Spring bean ID for this bean
240            */
241            public static java.lang.String getBeanIdentifier() {
242                    return getService().getBeanIdentifier();
243            }
244    
245            /**
246            * Returns the journal content search with the primary key.
247            *
248            * @param contentSearchId the primary key of the journal content search
249            * @return the journal content search
250            * @throws PortalException if a journal content search with the primary key could not be found
251            */
252            public static com.liferay.portlet.journal.model.JournalContentSearch getJournalContentSearch(
253                    long contentSearchId)
254                    throws com.liferay.portal.kernel.exception.PortalException {
255                    return getService().getJournalContentSearch(contentSearchId);
256            }
257    
258            /**
259            * Returns a range of all the journal content searchs.
260            *
261            * <p>
262            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalContentSearchModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
263            * </p>
264            *
265            * @param start the lower bound of the range of journal content searchs
266            * @param end the upper bound of the range of journal content searchs (not inclusive)
267            * @return the range of journal content searchs
268            */
269            public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> getJournalContentSearchs(
270                    int start, int end) {
271                    return getService().getJournalContentSearchs(start, end);
272            }
273    
274            /**
275            * Returns the number of journal content searchs.
276            *
277            * @return the number of journal content searchs
278            */
279            public static int getJournalContentSearchsCount() {
280                    return getService().getJournalContentSearchsCount();
281            }
282    
283            public static java.util.List<java.lang.Long> getLayoutIds(long groupId,
284                    boolean privateLayout, java.lang.String articleId) {
285                    return getService().getLayoutIds(groupId, privateLayout, articleId);
286            }
287    
288            public static int getLayoutIdsCount(java.lang.String articleId) {
289                    return getService().getLayoutIdsCount(articleId);
290            }
291    
292            public static int getLayoutIdsCount(long groupId, boolean privateLayout,
293                    java.lang.String articleId) {
294                    return getService().getLayoutIdsCount(groupId, privateLayout, articleId);
295            }
296    
297            public static com.liferay.portal.model.PersistedModel getPersistedModel(
298                    java.io.Serializable primaryKeyObj)
299                    throws com.liferay.portal.kernel.exception.PortalException {
300                    return getService().getPersistedModel(primaryKeyObj);
301            }
302    
303            public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> getPortletContentSearches(
304                    java.lang.String portletId) {
305                    return getService().getPortletContentSearches(portletId);
306            }
307    
308            /**
309            * Sets the Spring bean ID for this bean.
310            *
311            * @param beanIdentifier the Spring bean ID for this bean
312            */
313            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
314                    getService().setBeanIdentifier(beanIdentifier);
315            }
316    
317            public static com.liferay.portlet.journal.model.JournalContentSearch updateContentSearch(
318                    long groupId, boolean privateLayout, long layoutId,
319                    java.lang.String portletId, java.lang.String articleId)
320                    throws com.liferay.portal.kernel.exception.PortalException {
321                    return getService()
322                                       .updateContentSearch(groupId, privateLayout, layoutId,
323                            portletId, articleId);
324            }
325    
326            public static com.liferay.portlet.journal.model.JournalContentSearch updateContentSearch(
327                    long groupId, boolean privateLayout, long layoutId,
328                    java.lang.String portletId, java.lang.String articleId, boolean purge)
329                    throws com.liferay.portal.kernel.exception.PortalException {
330                    return getService()
331                                       .updateContentSearch(groupId, privateLayout, layoutId,
332                            portletId, articleId, purge);
333            }
334    
335            public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> updateContentSearch(
336                    long groupId, boolean privateLayout, long layoutId,
337                    java.lang.String portletId, java.lang.String[] articleIds)
338                    throws com.liferay.portal.kernel.exception.PortalException {
339                    return getService()
340                                       .updateContentSearch(groupId, privateLayout, layoutId,
341                            portletId, articleIds);
342            }
343    
344            /**
345            * Updates the journal content search in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
346            *
347            * @param journalContentSearch the journal content search
348            * @return the journal content search that was updated
349            */
350            public static com.liferay.portlet.journal.model.JournalContentSearch updateJournalContentSearch(
351                    com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch) {
352                    return getService().updateJournalContentSearch(journalContentSearch);
353            }
354    
355            public static JournalContentSearchLocalService getService() {
356                    if (_service == null) {
357                            _service = (JournalContentSearchLocalService)PortalBeanLocatorUtil.locate(JournalContentSearchLocalService.class.getName());
358    
359                            ReferenceRegistry.registerReference(JournalContentSearchLocalServiceUtil.class,
360                                    "_service");
361                    }
362    
363                    return _service;
364            }
365    
366            /**
367             * @deprecated As of 6.2.0
368             */
369            @Deprecated
370            public void setService(JournalContentSearchLocalService service) {
371            }
372    
373            private static JournalContentSearchLocalService _service;
374    }