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