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                    java.lang.String articleId) {
074                    getService()
075                            .deleteArticleContentSearch(groupId, privateLayout, layoutId,
076                            portletId, articleId);
077            }
078    
079            public static void deleteArticleContentSearches(long groupId,
080                    java.lang.String articleId) {
081                    getService().deleteArticleContentSearches(groupId, articleId);
082            }
083    
084            /**
085            * Deletes the journal content search with the primary key from the database. Also notifies the appropriate model listeners.
086            *
087            * @param contentSearchId the primary key of the journal content search
088            * @return the journal content search that was removed
089            * @throws PortalException if a journal content search with the primary key could not be found
090            */
091            public static com.liferay.portlet.journal.model.JournalContentSearch deleteJournalContentSearch(
092                    long contentSearchId)
093                    throws com.liferay.portal.kernel.exception.PortalException {
094                    return getService().deleteJournalContentSearch(contentSearchId);
095            }
096    
097            /**
098            * Deletes the journal content search from the database. Also notifies the appropriate model listeners.
099            *
100            * @param journalContentSearch the journal content search
101            * @return the journal content search that was removed
102            */
103            public static com.liferay.portlet.journal.model.JournalContentSearch deleteJournalContentSearch(
104                    com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch) {
105                    return getService().deleteJournalContentSearch(journalContentSearch);
106            }
107    
108            public static void deleteLayoutContentSearches(long groupId,
109                    boolean privateLayout, long layoutId) {
110                    getService()
111                            .deleteLayoutContentSearches(groupId, privateLayout, layoutId);
112            }
113    
114            public static void deleteOwnerContentSearches(long groupId,
115                    boolean privateLayout) {
116                    getService().deleteOwnerContentSearches(groupId, privateLayout);
117            }
118    
119            /**
120            * @throws PortalException
121            */
122            public static com.liferay.portal.model.PersistedModel deletePersistedModel(
123                    com.liferay.portal.model.PersistedModel persistedModel)
124                    throws com.liferay.portal.kernel.exception.PortalException {
125                    return getService().deletePersistedModel(persistedModel);
126            }
127    
128            public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
129                    return getService().dynamicQuery();
130            }
131    
132            /**
133            * Performs a dynamic query on the database and returns the matching rows.
134            *
135            * @param dynamicQuery the dynamic query
136            * @return the matching rows
137            */
138            public static <T> java.util.List<T> dynamicQuery(
139                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
140                    return getService().dynamicQuery(dynamicQuery);
141            }
142    
143            /**
144            * Performs a dynamic query on the database and returns a range of the matching rows.
145            *
146            * <p>
147            * 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.
148            * </p>
149            *
150            * @param dynamicQuery the dynamic query
151            * @param start the lower bound of the range of model instances
152            * @param end the upper bound of the range of model instances (not inclusive)
153            * @return the range of matching rows
154            */
155            public static <T> java.util.List<T> dynamicQuery(
156                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
157                    int end) {
158                    return getService().dynamicQuery(dynamicQuery, start, end);
159            }
160    
161            /**
162            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
163            *
164            * <p>
165            * 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.
166            * </p>
167            *
168            * @param dynamicQuery the dynamic query
169            * @param start the lower bound of the range of model instances
170            * @param end the upper bound of the range of model instances (not inclusive)
171            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
172            * @return the ordered range of matching rows
173            */
174            public static <T> java.util.List<T> dynamicQuery(
175                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
176                    int end,
177                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
178                    return getService()
179                                       .dynamicQuery(dynamicQuery, start, end, orderByComparator);
180            }
181    
182            /**
183            * Returns the number of rows that match the dynamic query.
184            *
185            * @param dynamicQuery the dynamic query
186            * @return the number of rows that match the dynamic query
187            */
188            public static long dynamicQueryCount(
189                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
190                    return getService().dynamicQueryCount(dynamicQuery);
191            }
192    
193            /**
194            * Returns the number of rows that match the dynamic query.
195            *
196            * @param dynamicQuery the dynamic query
197            * @param projection the projection to apply to the query
198            * @return the number of rows that match the dynamic query
199            */
200            public static long dynamicQueryCount(
201                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
202                    com.liferay.portal.kernel.dao.orm.Projection projection) {
203                    return getService().dynamicQueryCount(dynamicQuery, projection);
204            }
205    
206            public static com.liferay.portlet.journal.model.JournalContentSearch fetchJournalContentSearch(
207                    long contentSearchId) {
208                    return getService().fetchJournalContentSearch(contentSearchId);
209            }
210    
211            public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
212                    return getService().getActionableDynamicQuery();
213            }
214    
215            public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> getArticleContentSearches() {
216                    return getService().getArticleContentSearches();
217            }
218    
219            public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> getArticleContentSearches(
220                    java.lang.String articleId) {
221                    return getService().getArticleContentSearches(articleId);
222            }
223    
224            public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> getArticleContentSearches(
225                    long groupId, java.lang.String articleId) {
226                    return getService().getArticleContentSearches(groupId, articleId);
227            }
228    
229            /**
230            * Returns the Spring bean ID for this bean.
231            *
232            * @return the Spring bean ID for this bean
233            */
234            public static java.lang.String getBeanIdentifier() {
235                    return getService().getBeanIdentifier();
236            }
237    
238            /**
239            * Returns the journal content search with the primary key.
240            *
241            * @param contentSearchId the primary key of the journal content search
242            * @return the journal content search
243            * @throws PortalException if a journal content search with the primary key could not be found
244            */
245            public static com.liferay.portlet.journal.model.JournalContentSearch getJournalContentSearch(
246                    long contentSearchId)
247                    throws com.liferay.portal.kernel.exception.PortalException {
248                    return getService().getJournalContentSearch(contentSearchId);
249            }
250    
251            /**
252            * Returns a range of all the journal content searchs.
253            *
254            * <p>
255            * 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.
256            * </p>
257            *
258            * @param start the lower bound of the range of journal content searchs
259            * @param end the upper bound of the range of journal content searchs (not inclusive)
260            * @return the range of journal content searchs
261            */
262            public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> getJournalContentSearchs(
263                    int start, int end) {
264                    return getService().getJournalContentSearchs(start, end);
265            }
266    
267            /**
268            * Returns the number of journal content searchs.
269            *
270            * @return the number of journal content searchs
271            */
272            public static int getJournalContentSearchsCount() {
273                    return getService().getJournalContentSearchsCount();
274            }
275    
276            public static java.util.List<java.lang.Long> getLayoutIds(long groupId,
277                    boolean privateLayout, java.lang.String articleId) {
278                    return getService().getLayoutIds(groupId, privateLayout, articleId);
279            }
280    
281            public static int getLayoutIdsCount(java.lang.String articleId) {
282                    return getService().getLayoutIdsCount(articleId);
283            }
284    
285            public static int getLayoutIdsCount(long groupId, boolean privateLayout,
286                    java.lang.String articleId) {
287                    return getService().getLayoutIdsCount(groupId, privateLayout, articleId);
288            }
289    
290            public static com.liferay.portal.model.PersistedModel getPersistedModel(
291                    java.io.Serializable primaryKeyObj)
292                    throws com.liferay.portal.kernel.exception.PortalException {
293                    return getService().getPersistedModel(primaryKeyObj);
294            }
295    
296            public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> getPortletContentSearches(
297                    java.lang.String portletId) {
298                    return getService().getPortletContentSearches(portletId);
299            }
300    
301            /**
302            * Sets the Spring bean ID for this bean.
303            *
304            * @param beanIdentifier the Spring bean ID for this bean
305            */
306            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
307                    getService().setBeanIdentifier(beanIdentifier);
308            }
309    
310            public static com.liferay.portlet.journal.model.JournalContentSearch updateContentSearch(
311                    long groupId, boolean privateLayout, long layoutId,
312                    java.lang.String portletId, java.lang.String articleId)
313                    throws com.liferay.portal.kernel.exception.PortalException {
314                    return getService()
315                                       .updateContentSearch(groupId, privateLayout, layoutId,
316                            portletId, articleId);
317            }
318    
319            public static com.liferay.portlet.journal.model.JournalContentSearch updateContentSearch(
320                    long groupId, boolean privateLayout, long layoutId,
321                    java.lang.String portletId, java.lang.String articleId, boolean purge)
322                    throws com.liferay.portal.kernel.exception.PortalException {
323                    return getService()
324                                       .updateContentSearch(groupId, privateLayout, layoutId,
325                            portletId, articleId, purge);
326            }
327    
328            public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> updateContentSearch(
329                    long groupId, boolean privateLayout, long layoutId,
330                    java.lang.String portletId, java.lang.String[] articleIds)
331                    throws com.liferay.portal.kernel.exception.PortalException {
332                    return getService()
333                                       .updateContentSearch(groupId, privateLayout, layoutId,
334                            portletId, articleIds);
335            }
336    
337            /**
338            * Updates the journal content search in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
339            *
340            * @param journalContentSearch the journal content search
341            * @return the journal content search that was updated
342            */
343            public static com.liferay.portlet.journal.model.JournalContentSearch updateJournalContentSearch(
344                    com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch) {
345                    return getService().updateJournalContentSearch(journalContentSearch);
346            }
347    
348            public static JournalContentSearchLocalService getService() {
349                    if (_service == null) {
350                            _service = (JournalContentSearchLocalService)PortalBeanLocatorUtil.locate(JournalContentSearchLocalService.class.getName());
351    
352                            ReferenceRegistry.registerReference(JournalContentSearchLocalServiceUtil.class,
353                                    "_service");
354                    }
355    
356                    return _service;
357            }
358    
359            /**
360             * @deprecated As of 6.2.0
361             */
362            @Deprecated
363            public void setService(JournalContentSearchLocalService service) {
364            }
365    
366            private static JournalContentSearchLocalService _service;
367    }