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