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