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.service.ServiceWrapper;
020    
021    /**
022     * Provides a wrapper for {@link JournalFeedLocalService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see JournalFeedLocalService
026     * @generated
027     */
028    @ProviderType
029    public class JournalFeedLocalServiceWrapper implements JournalFeedLocalService,
030            ServiceWrapper<JournalFeedLocalService> {
031            public JournalFeedLocalServiceWrapper(
032                    JournalFeedLocalService journalFeedLocalService) {
033                    _journalFeedLocalService = journalFeedLocalService;
034            }
035    
036            @Override
037            public com.liferay.portlet.journal.model.JournalFeed addFeed(long userId,
038                    long groupId, java.lang.String feedId, boolean autoFeedId,
039                    java.lang.String name, java.lang.String description,
040                    java.lang.String type, java.lang.String structureId,
041                    java.lang.String templateId, java.lang.String rendererTemplateId,
042                    int delta, java.lang.String orderByCol, java.lang.String orderByType,
043                    java.lang.String targetLayoutFriendlyUrl,
044                    java.lang.String targetPortletId, java.lang.String contentField,
045                    java.lang.String feedFormat, double feedVersion,
046                    com.liferay.portal.service.ServiceContext serviceContext)
047                    throws com.liferay.portal.kernel.exception.PortalException {
048                    return _journalFeedLocalService.addFeed(userId, groupId, feedId,
049                            autoFeedId, name, description, type, structureId, templateId,
050                            rendererTemplateId, delta, orderByCol, orderByType,
051                            targetLayoutFriendlyUrl, targetPortletId, contentField, feedFormat,
052                            feedVersion, serviceContext);
053            }
054    
055            @Override
056            public void addFeedResources(
057                    com.liferay.portlet.journal.model.JournalFeed feed,
058                    boolean addGroupPermissions, boolean addGuestPermissions)
059                    throws com.liferay.portal.kernel.exception.PortalException {
060                    _journalFeedLocalService.addFeedResources(feed, addGroupPermissions,
061                            addGuestPermissions);
062            }
063    
064            @Override
065            public void addFeedResources(
066                    com.liferay.portlet.journal.model.JournalFeed feed,
067                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
068                    throws com.liferay.portal.kernel.exception.PortalException {
069                    _journalFeedLocalService.addFeedResources(feed, groupPermissions,
070                            guestPermissions);
071            }
072    
073            @Override
074            public void addFeedResources(long feedId, boolean addGroupPermissions,
075                    boolean addGuestPermissions)
076                    throws com.liferay.portal.kernel.exception.PortalException {
077                    _journalFeedLocalService.addFeedResources(feedId, addGroupPermissions,
078                            addGuestPermissions);
079            }
080    
081            @Override
082            public void addFeedResources(long feedId,
083                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
084                    throws com.liferay.portal.kernel.exception.PortalException {
085                    _journalFeedLocalService.addFeedResources(feedId, groupPermissions,
086                            guestPermissions);
087            }
088    
089            /**
090            * Adds the journal feed to the database. Also notifies the appropriate model listeners.
091            *
092            * @param journalFeed the journal feed
093            * @return the journal feed that was added
094            */
095            @Override
096            public com.liferay.portlet.journal.model.JournalFeed addJournalFeed(
097                    com.liferay.portlet.journal.model.JournalFeed journalFeed) {
098                    return _journalFeedLocalService.addJournalFeed(journalFeed);
099            }
100    
101            /**
102            * Creates a new journal feed with the primary key. Does not add the journal feed to the database.
103            *
104            * @param id the primary key for the new journal feed
105            * @return the new journal feed
106            */
107            @Override
108            public com.liferay.portlet.journal.model.JournalFeed createJournalFeed(
109                    long id) {
110                    return _journalFeedLocalService.createJournalFeed(id);
111            }
112    
113            @Override
114            public void deleteFeed(com.liferay.portlet.journal.model.JournalFeed feed)
115                    throws com.liferay.portal.kernel.exception.PortalException {
116                    _journalFeedLocalService.deleteFeed(feed);
117            }
118    
119            @Override
120            public void deleteFeed(long feedId)
121                    throws com.liferay.portal.kernel.exception.PortalException {
122                    _journalFeedLocalService.deleteFeed(feedId);
123            }
124    
125            @Override
126            public void deleteFeed(long groupId, java.lang.String feedId)
127                    throws com.liferay.portal.kernel.exception.PortalException {
128                    _journalFeedLocalService.deleteFeed(groupId, feedId);
129            }
130    
131            /**
132            * Deletes the journal feed with the primary key from the database. Also notifies the appropriate model listeners.
133            *
134            * @param id the primary key of the journal feed
135            * @return the journal feed that was removed
136            * @throws PortalException if a journal feed with the primary key could not be found
137            */
138            @Override
139            public com.liferay.portlet.journal.model.JournalFeed deleteJournalFeed(
140                    long id) throws com.liferay.portal.kernel.exception.PortalException {
141                    return _journalFeedLocalService.deleteJournalFeed(id);
142            }
143    
144            /**
145            * Deletes the journal feed from the database. Also notifies the appropriate model listeners.
146            *
147            * @param journalFeed the journal feed
148            * @return the journal feed that was removed
149            */
150            @Override
151            public com.liferay.portlet.journal.model.JournalFeed deleteJournalFeed(
152                    com.liferay.portlet.journal.model.JournalFeed journalFeed) {
153                    return _journalFeedLocalService.deleteJournalFeed(journalFeed);
154            }
155    
156            /**
157            * @throws PortalException
158            */
159            @Override
160            public com.liferay.portal.model.PersistedModel deletePersistedModel(
161                    com.liferay.portal.model.PersistedModel persistedModel)
162                    throws com.liferay.portal.kernel.exception.PortalException {
163                    return _journalFeedLocalService.deletePersistedModel(persistedModel);
164            }
165    
166            @Override
167            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
168                    return _journalFeedLocalService.dynamicQuery();
169            }
170    
171            /**
172            * Performs a dynamic query on the database and returns the matching rows.
173            *
174            * @param dynamicQuery the dynamic query
175            * @return the matching rows
176            */
177            @Override
178            public <T> java.util.List<T> dynamicQuery(
179                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
180                    return _journalFeedLocalService.dynamicQuery(dynamicQuery);
181            }
182    
183            /**
184            * Performs a dynamic query on the database and returns a range of the matching rows.
185            *
186            * <p>
187            * 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.JournalFeedModelImpl}. 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.
188            * </p>
189            *
190            * @param dynamicQuery the dynamic query
191            * @param start the lower bound of the range of model instances
192            * @param end the upper bound of the range of model instances (not inclusive)
193            * @return the range of matching rows
194            */
195            @Override
196            public <T> java.util.List<T> dynamicQuery(
197                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
198                    int end) {
199                    return _journalFeedLocalService.dynamicQuery(dynamicQuery, start, end);
200            }
201    
202            /**
203            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
204            *
205            * <p>
206            * 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.JournalFeedModelImpl}. 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.
207            * </p>
208            *
209            * @param dynamicQuery the dynamic query
210            * @param start the lower bound of the range of model instances
211            * @param end the upper bound of the range of model instances (not inclusive)
212            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
213            * @return the ordered range of matching rows
214            */
215            @Override
216            public <T> java.util.List<T> dynamicQuery(
217                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
218                    int end,
219                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
220                    return _journalFeedLocalService.dynamicQuery(dynamicQuery, start, end,
221                            orderByComparator);
222            }
223    
224            /**
225            * Returns the number of rows that match the dynamic query.
226            *
227            * @param dynamicQuery the dynamic query
228            * @return the number of rows that match the dynamic query
229            */
230            @Override
231            public long dynamicQueryCount(
232                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
233                    return _journalFeedLocalService.dynamicQueryCount(dynamicQuery);
234            }
235    
236            /**
237            * Returns the number of rows that match the dynamic query.
238            *
239            * @param dynamicQuery the dynamic query
240            * @param projection the projection to apply to the query
241            * @return the number of rows that match the dynamic query
242            */
243            @Override
244            public long dynamicQueryCount(
245                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
246                    com.liferay.portal.kernel.dao.orm.Projection projection) {
247                    return _journalFeedLocalService.dynamicQueryCount(dynamicQuery,
248                            projection);
249            }
250    
251            @Override
252            public com.liferay.portlet.journal.model.JournalFeed fetchFeed(
253                    long groupId, java.lang.String feedId) {
254                    return _journalFeedLocalService.fetchFeed(groupId, feedId);
255            }
256    
257            @Override
258            public com.liferay.portlet.journal.model.JournalFeed fetchJournalFeed(
259                    long id) {
260                    return _journalFeedLocalService.fetchJournalFeed(id);
261            }
262    
263            /**
264            * Returns the journal feed matching the UUID and group.
265            *
266            * @param uuid the journal feed's UUID
267            * @param groupId the primary key of the group
268            * @return the matching journal feed, or <code>null</code> if a matching journal feed could not be found
269            */
270            @Override
271            public com.liferay.portlet.journal.model.JournalFeed fetchJournalFeedByUuidAndGroupId(
272                    java.lang.String uuid, long groupId) {
273                    return _journalFeedLocalService.fetchJournalFeedByUuidAndGroupId(uuid,
274                            groupId);
275            }
276    
277            @Override
278            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
279                    return _journalFeedLocalService.getActionableDynamicQuery();
280            }
281    
282            /**
283            * Returns the Spring bean ID for this bean.
284            *
285            * @return the Spring bean ID for this bean
286            */
287            @Override
288            public java.lang.String getBeanIdentifier() {
289                    return _journalFeedLocalService.getBeanIdentifier();
290            }
291    
292            @Override
293            public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
294                    com.liferay.portal.kernel.lar.PortletDataContext portletDataContext) {
295                    return _journalFeedLocalService.getExportActionableDynamicQuery(portletDataContext);
296            }
297    
298            @Override
299            public com.liferay.portlet.journal.model.JournalFeed getFeed(long feedId)
300                    throws com.liferay.portal.kernel.exception.PortalException {
301                    return _journalFeedLocalService.getFeed(feedId);
302            }
303    
304            @Override
305            public com.liferay.portlet.journal.model.JournalFeed getFeed(long groupId,
306                    java.lang.String feedId)
307                    throws com.liferay.portal.kernel.exception.PortalException {
308                    return _journalFeedLocalService.getFeed(groupId, feedId);
309            }
310    
311            @Override
312            public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds() {
313                    return _journalFeedLocalService.getFeeds();
314            }
315    
316            @Override
317            public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
318                    long groupId) {
319                    return _journalFeedLocalService.getFeeds(groupId);
320            }
321    
322            @Override
323            public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
324                    long groupId, int start, int end) {
325                    return _journalFeedLocalService.getFeeds(groupId, start, end);
326            }
327    
328            @Override
329            public int getFeedsCount(long groupId) {
330                    return _journalFeedLocalService.getFeedsCount(groupId);
331            }
332    
333            /**
334            * Returns the journal feed with the primary key.
335            *
336            * @param id the primary key of the journal feed
337            * @return the journal feed
338            * @throws PortalException if a journal feed with the primary key could not be found
339            */
340            @Override
341            public com.liferay.portlet.journal.model.JournalFeed getJournalFeed(long id)
342                    throws com.liferay.portal.kernel.exception.PortalException {
343                    return _journalFeedLocalService.getJournalFeed(id);
344            }
345    
346            /**
347            * Returns the journal feed matching the UUID and group.
348            *
349            * @param uuid the journal feed's UUID
350            * @param groupId the primary key of the group
351            * @return the matching journal feed
352            * @throws PortalException if a matching journal feed could not be found
353            */
354            @Override
355            public com.liferay.portlet.journal.model.JournalFeed getJournalFeedByUuidAndGroupId(
356                    java.lang.String uuid, long groupId)
357                    throws com.liferay.portal.kernel.exception.PortalException {
358                    return _journalFeedLocalService.getJournalFeedByUuidAndGroupId(uuid,
359                            groupId);
360            }
361    
362            /**
363            * Returns a range of all the journal feeds.
364            *
365            * <p>
366            * 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.JournalFeedModelImpl}. 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.
367            * </p>
368            *
369            * @param start the lower bound of the range of journal feeds
370            * @param end the upper bound of the range of journal feeds (not inclusive)
371            * @return the range of journal feeds
372            */
373            @Override
374            public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getJournalFeeds(
375                    int start, int end) {
376                    return _journalFeedLocalService.getJournalFeeds(start, end);
377            }
378    
379            @Override
380            public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getJournalFeedsByUuidAndCompanyId(
381                    java.lang.String uuid, long companyId) {
382                    return _journalFeedLocalService.getJournalFeedsByUuidAndCompanyId(uuid,
383                            companyId);
384            }
385    
386            @Override
387            public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getJournalFeedsByUuidAndCompanyId(
388                    java.lang.String uuid, long companyId, int start, int end,
389                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalFeed> orderByComparator) {
390                    return _journalFeedLocalService.getJournalFeedsByUuidAndCompanyId(uuid,
391                            companyId, start, end, orderByComparator);
392            }
393    
394            /**
395            * Returns the number of journal feeds.
396            *
397            * @return the number of journal feeds
398            */
399            @Override
400            public int getJournalFeedsCount() {
401                    return _journalFeedLocalService.getJournalFeedsCount();
402            }
403    
404            @Override
405            public com.liferay.portal.model.PersistedModel getPersistedModel(
406                    java.io.Serializable primaryKeyObj)
407                    throws com.liferay.portal.kernel.exception.PortalException {
408                    return _journalFeedLocalService.getPersistedModel(primaryKeyObj);
409            }
410    
411            @Override
412            public java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
413                    long companyId, long groupId, java.lang.String feedId,
414                    java.lang.String name, java.lang.String description,
415                    boolean andOperator, int start, int end,
416                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalFeed> obc) {
417                    return _journalFeedLocalService.search(companyId, groupId, feedId,
418                            name, description, andOperator, start, end, obc);
419            }
420    
421            @Override
422            public java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
423                    long companyId, long groupId, java.lang.String keywords, int start,
424                    int end,
425                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalFeed> obc) {
426                    return _journalFeedLocalService.search(companyId, groupId, keywords,
427                            start, end, obc);
428            }
429    
430            @Override
431            public int searchCount(long companyId, long groupId,
432                    java.lang.String feedId, java.lang.String name,
433                    java.lang.String description, boolean andOperator) {
434                    return _journalFeedLocalService.searchCount(companyId, groupId, feedId,
435                            name, description, andOperator);
436            }
437    
438            @Override
439            public int searchCount(long companyId, long groupId,
440                    java.lang.String keywords) {
441                    return _journalFeedLocalService.searchCount(companyId, groupId, keywords);
442            }
443    
444            /**
445            * Sets the Spring bean ID for this bean.
446            *
447            * @param beanIdentifier the Spring bean ID for this bean
448            */
449            @Override
450            public void setBeanIdentifier(java.lang.String beanIdentifier) {
451                    _journalFeedLocalService.setBeanIdentifier(beanIdentifier);
452            }
453    
454            @Override
455            public com.liferay.portlet.journal.model.JournalFeed updateFeed(
456                    long groupId, java.lang.String feedId, java.lang.String name,
457                    java.lang.String description, java.lang.String type,
458                    java.lang.String structureId, java.lang.String templateId,
459                    java.lang.String rendererTemplateId, int delta,
460                    java.lang.String orderByCol, java.lang.String orderByType,
461                    java.lang.String targetLayoutFriendlyUrl,
462                    java.lang.String targetPortletId, java.lang.String contentField,
463                    java.lang.String feedFormat, double feedVersion,
464                    com.liferay.portal.service.ServiceContext serviceContext)
465                    throws com.liferay.portal.kernel.exception.PortalException {
466                    return _journalFeedLocalService.updateFeed(groupId, feedId, name,
467                            description, type, structureId, templateId, rendererTemplateId,
468                            delta, orderByCol, orderByType, targetLayoutFriendlyUrl,
469                            targetPortletId, contentField, feedFormat, feedVersion,
470                            serviceContext);
471            }
472    
473            /**
474            * Updates the journal feed in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
475            *
476            * @param journalFeed the journal feed
477            * @return the journal feed that was updated
478            */
479            @Override
480            public com.liferay.portlet.journal.model.JournalFeed updateJournalFeed(
481                    com.liferay.portlet.journal.model.JournalFeed journalFeed) {
482                    return _journalFeedLocalService.updateJournalFeed(journalFeed);
483            }
484    
485            /**
486             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
487             */
488            @Deprecated
489            public JournalFeedLocalService getWrappedJournalFeedLocalService() {
490                    return _journalFeedLocalService;
491            }
492    
493            /**
494             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
495             */
496            @Deprecated
497            public void setWrappedJournalFeedLocalService(
498                    JournalFeedLocalService journalFeedLocalService) {
499                    _journalFeedLocalService = journalFeedLocalService;
500            }
501    
502            @Override
503            public JournalFeedLocalService getWrappedService() {
504                    return _journalFeedLocalService;
505            }
506    
507            @Override
508            public void setWrappedService(
509                    JournalFeedLocalService journalFeedLocalService) {
510                    _journalFeedLocalService = journalFeedLocalService;
511            }
512    
513            private JournalFeedLocalService _journalFeedLocalService;
514    }