001    /**
002     * Copyright (c) 2000-2013 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.service.ServiceWrapper;
020    
021    /**
022     * Provides a wrapper for {@link JournalContentSearchLocalService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see JournalContentSearchLocalService
026     * @generated
027     */
028    @ProviderType
029    public class JournalContentSearchLocalServiceWrapper
030            implements JournalContentSearchLocalService,
031                    ServiceWrapper<JournalContentSearchLocalService> {
032            public JournalContentSearchLocalServiceWrapper(
033                    JournalContentSearchLocalService journalContentSearchLocalService) {
034                    _journalContentSearchLocalService = journalContentSearchLocalService;
035            }
036    
037            /**
038            * Adds the journal content search to the database. Also notifies the appropriate model listeners.
039            *
040            * @param journalContentSearch the journal content search
041            * @return the journal content search that was added
042            * @throws SystemException if a system exception occurred
043            */
044            @Override
045            public com.liferay.portlet.journal.model.JournalContentSearch addJournalContentSearch(
046                    com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch)
047                    throws com.liferay.portal.kernel.exception.SystemException {
048                    return _journalContentSearchLocalService.addJournalContentSearch(journalContentSearch);
049            }
050    
051            /**
052            * Creates a new journal content search with the primary key. Does not add the journal content search to the database.
053            *
054            * @param contentSearchId the primary key for the new journal content search
055            * @return the new journal content search
056            */
057            @Override
058            public com.liferay.portlet.journal.model.JournalContentSearch createJournalContentSearch(
059                    long contentSearchId) {
060                    return _journalContentSearchLocalService.createJournalContentSearch(contentSearchId);
061            }
062    
063            /**
064            * Deletes the journal content search with the primary key from the database. Also notifies the appropriate model listeners.
065            *
066            * @param contentSearchId the primary key of the journal content search
067            * @return the journal content search that was removed
068            * @throws PortalException if a journal content search with the primary key could not be found
069            * @throws SystemException if a system exception occurred
070            */
071            @Override
072            public com.liferay.portlet.journal.model.JournalContentSearch deleteJournalContentSearch(
073                    long contentSearchId)
074                    throws com.liferay.portal.kernel.exception.PortalException,
075                            com.liferay.portal.kernel.exception.SystemException {
076                    return _journalContentSearchLocalService.deleteJournalContentSearch(contentSearchId);
077            }
078    
079            /**
080            * Deletes the journal content search from the database. Also notifies the appropriate model listeners.
081            *
082            * @param journalContentSearch the journal content search
083            * @return the journal content search that was removed
084            * @throws SystemException if a system exception occurred
085            */
086            @Override
087            public com.liferay.portlet.journal.model.JournalContentSearch deleteJournalContentSearch(
088                    com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch)
089                    throws com.liferay.portal.kernel.exception.SystemException {
090                    return _journalContentSearchLocalService.deleteJournalContentSearch(journalContentSearch);
091            }
092    
093            @Override
094            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
095                    return _journalContentSearchLocalService.dynamicQuery();
096            }
097    
098            /**
099            * Performs a dynamic query on the database and returns the matching rows.
100            *
101            * @param dynamicQuery the dynamic query
102            * @return the matching rows
103            * @throws SystemException if a system exception occurred
104            */
105            @Override
106            @SuppressWarnings("rawtypes")
107            public java.util.List dynamicQuery(
108                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
109                    throws com.liferay.portal.kernel.exception.SystemException {
110                    return _journalContentSearchLocalService.dynamicQuery(dynamicQuery);
111            }
112    
113            /**
114            * Performs a dynamic query on the database and returns a range of the matching rows.
115            *
116            * <p>
117            * 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.
118            * </p>
119            *
120            * @param dynamicQuery the dynamic query
121            * @param start the lower bound of the range of model instances
122            * @param end the upper bound of the range of model instances (not inclusive)
123            * @return the range of matching rows
124            * @throws SystemException if a system exception occurred
125            */
126            @Override
127            @SuppressWarnings("rawtypes")
128            public java.util.List dynamicQuery(
129                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
130                    int end) throws com.liferay.portal.kernel.exception.SystemException {
131                    return _journalContentSearchLocalService.dynamicQuery(dynamicQuery,
132                            start, end);
133            }
134    
135            /**
136            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
137            *
138            * <p>
139            * 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.
140            * </p>
141            *
142            * @param dynamicQuery the dynamic query
143            * @param start the lower bound of the range of model instances
144            * @param end the upper bound of the range of model instances (not inclusive)
145            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
146            * @return the ordered range of matching rows
147            * @throws SystemException if a system exception occurred
148            */
149            @Override
150            @SuppressWarnings("rawtypes")
151            public java.util.List dynamicQuery(
152                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
153                    int end,
154                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
155                    throws com.liferay.portal.kernel.exception.SystemException {
156                    return _journalContentSearchLocalService.dynamicQuery(dynamicQuery,
157                            start, end, orderByComparator);
158            }
159    
160            /**
161            * Returns the number of rows that match the dynamic query.
162            *
163            * @param dynamicQuery the dynamic query
164            * @return the number of rows that match the dynamic query
165            * @throws SystemException if a system exception occurred
166            */
167            @Override
168            public long dynamicQueryCount(
169                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
170                    throws com.liferay.portal.kernel.exception.SystemException {
171                    return _journalContentSearchLocalService.dynamicQueryCount(dynamicQuery);
172            }
173    
174            /**
175            * Returns the number of rows that match the dynamic query.
176            *
177            * @param dynamicQuery the dynamic query
178            * @param projection the projection to apply to the query
179            * @return the number of rows that match the dynamic query
180            * @throws SystemException if a system exception occurred
181            */
182            @Override
183            public long dynamicQueryCount(
184                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
185                    com.liferay.portal.kernel.dao.orm.Projection projection)
186                    throws com.liferay.portal.kernel.exception.SystemException {
187                    return _journalContentSearchLocalService.dynamicQueryCount(dynamicQuery,
188                            projection);
189            }
190    
191            @Override
192            public com.liferay.portlet.journal.model.JournalContentSearch fetchJournalContentSearch(
193                    long contentSearchId)
194                    throws com.liferay.portal.kernel.exception.SystemException {
195                    return _journalContentSearchLocalService.fetchJournalContentSearch(contentSearchId);
196            }
197    
198            /**
199            * Returns the journal content search with the primary key.
200            *
201            * @param contentSearchId the primary key of the journal content search
202            * @return the journal content search
203            * @throws PortalException if a journal content search with the primary key could not be found
204            * @throws SystemException if a system exception occurred
205            */
206            @Override
207            public com.liferay.portlet.journal.model.JournalContentSearch getJournalContentSearch(
208                    long contentSearchId)
209                    throws com.liferay.portal.kernel.exception.PortalException,
210                            com.liferay.portal.kernel.exception.SystemException {
211                    return _journalContentSearchLocalService.getJournalContentSearch(contentSearchId);
212            }
213    
214            @Override
215            public com.liferay.portal.model.PersistedModel getPersistedModel(
216                    java.io.Serializable primaryKeyObj)
217                    throws com.liferay.portal.kernel.exception.PortalException,
218                            com.liferay.portal.kernel.exception.SystemException {
219                    return _journalContentSearchLocalService.getPersistedModel(primaryKeyObj);
220            }
221    
222            /**
223            * Returns a range of all the journal content searchs.
224            *
225            * <p>
226            * 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.
227            * </p>
228            *
229            * @param start the lower bound of the range of journal content searchs
230            * @param end the upper bound of the range of journal content searchs (not inclusive)
231            * @return the range of journal content searchs
232            * @throws SystemException if a system exception occurred
233            */
234            @Override
235            public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> getJournalContentSearchs(
236                    int start, int end)
237                    throws com.liferay.portal.kernel.exception.SystemException {
238                    return _journalContentSearchLocalService.getJournalContentSearchs(start,
239                            end);
240            }
241    
242            /**
243            * Returns the number of journal content searchs.
244            *
245            * @return the number of journal content searchs
246            * @throws SystemException if a system exception occurred
247            */
248            @Override
249            public int getJournalContentSearchsCount()
250                    throws com.liferay.portal.kernel.exception.SystemException {
251                    return _journalContentSearchLocalService.getJournalContentSearchsCount();
252            }
253    
254            /**
255            * Updates the journal content search in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
256            *
257            * @param journalContentSearch the journal content search
258            * @return the journal content search that was updated
259            * @throws SystemException if a system exception occurred
260            */
261            @Override
262            public com.liferay.portlet.journal.model.JournalContentSearch updateJournalContentSearch(
263                    com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch)
264                    throws com.liferay.portal.kernel.exception.SystemException {
265                    return _journalContentSearchLocalService.updateJournalContentSearch(journalContentSearch);
266            }
267    
268            /**
269            * Returns the Spring bean ID for this bean.
270            *
271            * @return the Spring bean ID for this bean
272            */
273            @Override
274            public java.lang.String getBeanIdentifier() {
275                    return _journalContentSearchLocalService.getBeanIdentifier();
276            }
277    
278            /**
279            * Sets the Spring bean ID for this bean.
280            *
281            * @param beanIdentifier the Spring bean ID for this bean
282            */
283            @Override
284            public void setBeanIdentifier(java.lang.String beanIdentifier) {
285                    _journalContentSearchLocalService.setBeanIdentifier(beanIdentifier);
286            }
287    
288            @Override
289            public void checkContentSearches(long companyId)
290                    throws com.liferay.portal.kernel.exception.PortalException,
291                            com.liferay.portal.kernel.exception.SystemException {
292                    _journalContentSearchLocalService.checkContentSearches(companyId);
293            }
294    
295            @Override
296            public void deleteArticleContentSearch(long groupId, boolean privateLayout,
297                    long layoutId, java.lang.String portletId, java.lang.String articleId)
298                    throws com.liferay.portal.kernel.exception.SystemException {
299                    _journalContentSearchLocalService.deleteArticleContentSearch(groupId,
300                            privateLayout, layoutId, portletId, articleId);
301            }
302    
303            @Override
304            public void deleteArticleContentSearches(long groupId,
305                    java.lang.String articleId)
306                    throws com.liferay.portal.kernel.exception.SystemException {
307                    _journalContentSearchLocalService.deleteArticleContentSearches(groupId,
308                            articleId);
309            }
310    
311            @Override
312            public void deleteLayoutContentSearches(long groupId,
313                    boolean privateLayout, long layoutId)
314                    throws com.liferay.portal.kernel.exception.SystemException {
315                    _journalContentSearchLocalService.deleteLayoutContentSearches(groupId,
316                            privateLayout, layoutId);
317            }
318    
319            @Override
320            public void deleteOwnerContentSearches(long groupId, boolean privateLayout)
321                    throws com.liferay.portal.kernel.exception.SystemException {
322                    _journalContentSearchLocalService.deleteOwnerContentSearches(groupId,
323                            privateLayout);
324            }
325    
326            @Override
327            public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> getArticleContentSearches()
328                    throws com.liferay.portal.kernel.exception.SystemException {
329                    return _journalContentSearchLocalService.getArticleContentSearches();
330            }
331    
332            @Override
333            public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> getArticleContentSearches(
334                    long groupId, java.lang.String articleId)
335                    throws com.liferay.portal.kernel.exception.SystemException {
336                    return _journalContentSearchLocalService.getArticleContentSearches(groupId,
337                            articleId);
338            }
339    
340            @Override
341            public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> getArticleContentSearches(
342                    java.lang.String articleId)
343                    throws com.liferay.portal.kernel.exception.SystemException {
344                    return _journalContentSearchLocalService.getArticleContentSearches(articleId);
345            }
346    
347            @Override
348            public java.util.List<java.lang.Long> getLayoutIds(long groupId,
349                    boolean privateLayout, java.lang.String articleId)
350                    throws com.liferay.portal.kernel.exception.SystemException {
351                    return _journalContentSearchLocalService.getLayoutIds(groupId,
352                            privateLayout, articleId);
353            }
354    
355            @Override
356            public int getLayoutIdsCount(long groupId, boolean privateLayout,
357                    java.lang.String articleId)
358                    throws com.liferay.portal.kernel.exception.SystemException {
359                    return _journalContentSearchLocalService.getLayoutIdsCount(groupId,
360                            privateLayout, articleId);
361            }
362    
363            @Override
364            public int getLayoutIdsCount(java.lang.String articleId)
365                    throws com.liferay.portal.kernel.exception.SystemException {
366                    return _journalContentSearchLocalService.getLayoutIdsCount(articleId);
367            }
368    
369            @Override
370            public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> getPortletContentSearches(
371                    java.lang.String portletId)
372                    throws com.liferay.portal.kernel.exception.SystemException {
373                    return _journalContentSearchLocalService.getPortletContentSearches(portletId);
374            }
375    
376            @Override
377            public com.liferay.portlet.journal.model.JournalContentSearch updateContentSearch(
378                    long groupId, boolean privateLayout, long layoutId,
379                    java.lang.String portletId, java.lang.String articleId)
380                    throws com.liferay.portal.kernel.exception.PortalException,
381                            com.liferay.portal.kernel.exception.SystemException {
382                    return _journalContentSearchLocalService.updateContentSearch(groupId,
383                            privateLayout, layoutId, portletId, articleId);
384            }
385    
386            @Override
387            public com.liferay.portlet.journal.model.JournalContentSearch updateContentSearch(
388                    long groupId, boolean privateLayout, long layoutId,
389                    java.lang.String portletId, java.lang.String articleId, boolean purge)
390                    throws com.liferay.portal.kernel.exception.PortalException,
391                            com.liferay.portal.kernel.exception.SystemException {
392                    return _journalContentSearchLocalService.updateContentSearch(groupId,
393                            privateLayout, layoutId, portletId, articleId, purge);
394            }
395    
396            @Override
397            public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> updateContentSearch(
398                    long groupId, boolean privateLayout, long layoutId,
399                    java.lang.String portletId, java.lang.String[] articleIds)
400                    throws com.liferay.portal.kernel.exception.PortalException,
401                            com.liferay.portal.kernel.exception.SystemException {
402                    return _journalContentSearchLocalService.updateContentSearch(groupId,
403                            privateLayout, layoutId, portletId, articleIds);
404            }
405    
406            /**
407             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
408             */
409            public JournalContentSearchLocalService getWrappedJournalContentSearchLocalService() {
410                    return _journalContentSearchLocalService;
411            }
412    
413            /**
414             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
415             */
416            public void setWrappedJournalContentSearchLocalService(
417                    JournalContentSearchLocalService journalContentSearchLocalService) {
418                    _journalContentSearchLocalService = journalContentSearchLocalService;
419            }
420    
421            @Override
422            public JournalContentSearchLocalService getWrappedService() {
423                    return _journalContentSearchLocalService;
424            }
425    
426            @Override
427            public void setWrappedService(
428                    JournalContentSearchLocalService journalContentSearchLocalService) {
429                    _journalContentSearchLocalService = journalContentSearchLocalService;
430            }
431    
432            private JournalContentSearchLocalService _journalContentSearchLocalService;
433    }