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 ddmStructureKey, java.lang.String ddmTemplateKey,
041                    java.lang.String ddmRendererTemplateKey, int delta,
042                    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, ddmStructureKey, ddmTemplateKey,
050                            ddmRendererTemplateKey, 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 matching the dynamic query.
226            *
227            * @param dynamicQuery the dynamic query
228            * @return the number of rows matching 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 matching 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 matching 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            /**
380            * Returns all the journal feeds matching the UUID and company.
381            *
382            * @param uuid the UUID of the journal feeds
383            * @param companyId the primary key of the company
384            * @return the matching journal feeds, or an empty list if no matches were found
385            */
386            @Override
387            public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getJournalFeedsByUuidAndCompanyId(
388                    java.lang.String uuid, long companyId) {
389                    return _journalFeedLocalService.getJournalFeedsByUuidAndCompanyId(uuid,
390                            companyId);
391            }
392    
393            /**
394            * Returns a range of journal feeds matching the UUID and company.
395            *
396            * @param uuid the UUID of the journal feeds
397            * @param companyId the primary key of the company
398            * @param start the lower bound of the range of journal feeds
399            * @param end the upper bound of the range of journal feeds (not inclusive)
400            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
401            * @return the range of matching journal feeds, or an empty list if no matches were found
402            */
403            @Override
404            public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getJournalFeedsByUuidAndCompanyId(
405                    java.lang.String uuid, long companyId, int start, int end,
406                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalFeed> orderByComparator) {
407                    return _journalFeedLocalService.getJournalFeedsByUuidAndCompanyId(uuid,
408                            companyId, start, end, orderByComparator);
409            }
410    
411            /**
412            * Returns the number of journal feeds.
413            *
414            * @return the number of journal feeds
415            */
416            @Override
417            public int getJournalFeedsCount() {
418                    return _journalFeedLocalService.getJournalFeedsCount();
419            }
420    
421            @Override
422            public com.liferay.portal.model.PersistedModel getPersistedModel(
423                    java.io.Serializable primaryKeyObj)
424                    throws com.liferay.portal.kernel.exception.PortalException {
425                    return _journalFeedLocalService.getPersistedModel(primaryKeyObj);
426            }
427    
428            @Override
429            public java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
430                    long companyId, long groupId, java.lang.String feedId,
431                    java.lang.String name, java.lang.String description,
432                    boolean andOperator, int start, int end,
433                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalFeed> obc) {
434                    return _journalFeedLocalService.search(companyId, groupId, feedId,
435                            name, description, andOperator, start, end, obc);
436            }
437    
438            @Override
439            public java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
440                    long companyId, long groupId, java.lang.String keywords, int start,
441                    int end,
442                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalFeed> obc) {
443                    return _journalFeedLocalService.search(companyId, groupId, keywords,
444                            start, end, obc);
445            }
446    
447            @Override
448            public int searchCount(long companyId, long groupId,
449                    java.lang.String feedId, java.lang.String name,
450                    java.lang.String description, boolean andOperator) {
451                    return _journalFeedLocalService.searchCount(companyId, groupId, feedId,
452                            name, description, andOperator);
453            }
454    
455            @Override
456            public int searchCount(long companyId, long groupId,
457                    java.lang.String keywords) {
458                    return _journalFeedLocalService.searchCount(companyId, groupId, keywords);
459            }
460    
461            /**
462            * Sets the Spring bean ID for this bean.
463            *
464            * @param beanIdentifier the Spring bean ID for this bean
465            */
466            @Override
467            public void setBeanIdentifier(java.lang.String beanIdentifier) {
468                    _journalFeedLocalService.setBeanIdentifier(beanIdentifier);
469            }
470    
471            @Override
472            public com.liferay.portlet.journal.model.JournalFeed updateFeed(
473                    long groupId, java.lang.String feedId, java.lang.String name,
474                    java.lang.String description, java.lang.String ddmStructureKey,
475                    java.lang.String ddmTemplateKey,
476                    java.lang.String ddmRendererTemplateKey, int delta,
477                    java.lang.String orderByCol, java.lang.String orderByType,
478                    java.lang.String targetLayoutFriendlyUrl,
479                    java.lang.String targetPortletId, java.lang.String contentField,
480                    java.lang.String feedFormat, double feedVersion,
481                    com.liferay.portal.service.ServiceContext serviceContext)
482                    throws com.liferay.portal.kernel.exception.PortalException {
483                    return _journalFeedLocalService.updateFeed(groupId, feedId, name,
484                            description, ddmStructureKey, ddmTemplateKey,
485                            ddmRendererTemplateKey, delta, orderByCol, orderByType,
486                            targetLayoutFriendlyUrl, targetPortletId, contentField, feedFormat,
487                            feedVersion, serviceContext);
488            }
489    
490            /**
491            * Updates the journal feed in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
492            *
493            * @param journalFeed the journal feed
494            * @return the journal feed that was updated
495            */
496            @Override
497            public com.liferay.portlet.journal.model.JournalFeed updateJournalFeed(
498                    com.liferay.portlet.journal.model.JournalFeed journalFeed) {
499                    return _journalFeedLocalService.updateJournalFeed(journalFeed);
500            }
501    
502            /**
503             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
504             */
505            @Deprecated
506            public JournalFeedLocalService getWrappedJournalFeedLocalService() {
507                    return _journalFeedLocalService;
508            }
509    
510            /**
511             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
512             */
513            @Deprecated
514            public void setWrappedJournalFeedLocalService(
515                    JournalFeedLocalService journalFeedLocalService) {
516                    _journalFeedLocalService = journalFeedLocalService;
517            }
518    
519            @Override
520            public JournalFeedLocalService getWrappedService() {
521                    return _journalFeedLocalService;
522            }
523    
524            @Override
525            public void setWrappedService(
526                    JournalFeedLocalService journalFeedLocalService) {
527                    _journalFeedLocalService = journalFeedLocalService;
528            }
529    
530            private JournalFeedLocalService _journalFeedLocalService;
531    }