001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.journal.service;
016    
017    import com.liferay.portal.service.ServiceWrapper;
018    
019    /**
020     * <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            * Updates the journal feed in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
249            *
250            * @param journalFeed the journal feed
251            * @param merge whether to merge the journal feed 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.
252            * @return the journal feed that was updated
253            * @throws SystemException if a system exception occurred
254            */
255            public com.liferay.portlet.journal.model.JournalFeed updateJournalFeed(
256                    com.liferay.portlet.journal.model.JournalFeed journalFeed, boolean merge)
257                    throws com.liferay.portal.kernel.exception.SystemException {
258                    return _journalFeedLocalService.updateJournalFeed(journalFeed, merge);
259            }
260    
261            /**
262            * Returns the Spring bean ID for this bean.
263            *
264            * @return the Spring bean ID for this bean
265            */
266            public java.lang.String getBeanIdentifier() {
267                    return _journalFeedLocalService.getBeanIdentifier();
268            }
269    
270            /**
271            * Sets the Spring bean ID for this bean.
272            *
273            * @param beanIdentifier the Spring bean ID for this bean
274            */
275            public void setBeanIdentifier(java.lang.String beanIdentifier) {
276                    _journalFeedLocalService.setBeanIdentifier(beanIdentifier);
277            }
278    
279            public com.liferay.portlet.journal.model.JournalFeed addFeed(long userId,
280                    long groupId, java.lang.String feedId, boolean autoFeedId,
281                    java.lang.String name, java.lang.String description,
282                    java.lang.String type, java.lang.String structureId,
283                    java.lang.String templateId, java.lang.String rendererTemplateId,
284                    int delta, java.lang.String orderByCol, java.lang.String orderByType,
285                    java.lang.String targetLayoutFriendlyUrl,
286                    java.lang.String targetPortletId, java.lang.String contentField,
287                    java.lang.String feedType, double feedVersion,
288                    com.liferay.portal.service.ServiceContext serviceContext)
289                    throws com.liferay.portal.kernel.exception.PortalException,
290                            com.liferay.portal.kernel.exception.SystemException {
291                    return _journalFeedLocalService.addFeed(userId, groupId, feedId,
292                            autoFeedId, name, description, type, structureId, templateId,
293                            rendererTemplateId, delta, orderByCol, orderByType,
294                            targetLayoutFriendlyUrl, targetPortletId, contentField, feedType,
295                            feedVersion, serviceContext);
296            }
297    
298            public void addFeedResources(
299                    com.liferay.portlet.journal.model.JournalFeed feed,
300                    boolean addGroupPermissions, boolean addGuestPermissions)
301                    throws com.liferay.portal.kernel.exception.PortalException,
302                            com.liferay.portal.kernel.exception.SystemException {
303                    _journalFeedLocalService.addFeedResources(feed, addGroupPermissions,
304                            addGuestPermissions);
305            }
306    
307            public void addFeedResources(
308                    com.liferay.portlet.journal.model.JournalFeed feed,
309                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
310                    throws com.liferay.portal.kernel.exception.PortalException,
311                            com.liferay.portal.kernel.exception.SystemException {
312                    _journalFeedLocalService.addFeedResources(feed, groupPermissions,
313                            guestPermissions);
314            }
315    
316            public void addFeedResources(long feedId, boolean addGroupPermissions,
317                    boolean addGuestPermissions)
318                    throws com.liferay.portal.kernel.exception.PortalException,
319                            com.liferay.portal.kernel.exception.SystemException {
320                    _journalFeedLocalService.addFeedResources(feedId, addGroupPermissions,
321                            addGuestPermissions);
322            }
323    
324            public void addFeedResources(long feedId,
325                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
326                    throws com.liferay.portal.kernel.exception.PortalException,
327                            com.liferay.portal.kernel.exception.SystemException {
328                    _journalFeedLocalService.addFeedResources(feedId, groupPermissions,
329                            guestPermissions);
330            }
331    
332            public void deleteFeed(com.liferay.portlet.journal.model.JournalFeed feed)
333                    throws com.liferay.portal.kernel.exception.PortalException,
334                            com.liferay.portal.kernel.exception.SystemException {
335                    _journalFeedLocalService.deleteFeed(feed);
336            }
337    
338            public void deleteFeed(long feedId)
339                    throws com.liferay.portal.kernel.exception.PortalException,
340                            com.liferay.portal.kernel.exception.SystemException {
341                    _journalFeedLocalService.deleteFeed(feedId);
342            }
343    
344            public void deleteFeed(long groupId, java.lang.String feedId)
345                    throws com.liferay.portal.kernel.exception.PortalException,
346                            com.liferay.portal.kernel.exception.SystemException {
347                    _journalFeedLocalService.deleteFeed(groupId, feedId);
348            }
349    
350            public com.liferay.portlet.journal.model.JournalFeed getFeed(long feedId)
351                    throws com.liferay.portal.kernel.exception.PortalException,
352                            com.liferay.portal.kernel.exception.SystemException {
353                    return _journalFeedLocalService.getFeed(feedId);
354            }
355    
356            public com.liferay.portlet.journal.model.JournalFeed getFeed(long groupId,
357                    java.lang.String feedId)
358                    throws com.liferay.portal.kernel.exception.PortalException,
359                            com.liferay.portal.kernel.exception.SystemException {
360                    return _journalFeedLocalService.getFeed(groupId, feedId);
361            }
362    
363            public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds()
364                    throws com.liferay.portal.kernel.exception.SystemException {
365                    return _journalFeedLocalService.getFeeds();
366            }
367    
368            public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
369                    long groupId)
370                    throws com.liferay.portal.kernel.exception.SystemException {
371                    return _journalFeedLocalService.getFeeds(groupId);
372            }
373    
374            public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
375                    long groupId, int start, int end)
376                    throws com.liferay.portal.kernel.exception.SystemException {
377                    return _journalFeedLocalService.getFeeds(groupId, start, end);
378            }
379    
380            public int getFeedsCount(long groupId)
381                    throws com.liferay.portal.kernel.exception.SystemException {
382                    return _journalFeedLocalService.getFeedsCount(groupId);
383            }
384    
385            public java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
386                    long companyId, long groupId, java.lang.String keywords, int start,
387                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
388                    throws com.liferay.portal.kernel.exception.SystemException {
389                    return _journalFeedLocalService.search(companyId, groupId, keywords,
390                            start, end, obc);
391            }
392    
393            public java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
394                    long companyId, long groupId, java.lang.String feedId,
395                    java.lang.String name, java.lang.String description,
396                    boolean andOperator, int start, int end,
397                    com.liferay.portal.kernel.util.OrderByComparator obc)
398                    throws com.liferay.portal.kernel.exception.SystemException {
399                    return _journalFeedLocalService.search(companyId, groupId, feedId,
400                            name, description, andOperator, start, end, obc);
401            }
402    
403            public int searchCount(long companyId, long groupId,
404                    java.lang.String keywords)
405                    throws com.liferay.portal.kernel.exception.SystemException {
406                    return _journalFeedLocalService.searchCount(companyId, groupId, keywords);
407            }
408    
409            public int searchCount(long companyId, long groupId,
410                    java.lang.String feedId, java.lang.String name,
411                    java.lang.String description, boolean andOperator)
412                    throws com.liferay.portal.kernel.exception.SystemException {
413                    return _journalFeedLocalService.searchCount(companyId, groupId, feedId,
414                            name, description, andOperator);
415            }
416    
417            public com.liferay.portlet.journal.model.JournalFeed updateFeed(
418                    long groupId, java.lang.String feedId, java.lang.String name,
419                    java.lang.String description, java.lang.String type,
420                    java.lang.String structureId, java.lang.String templateId,
421                    java.lang.String rendererTemplateId, int delta,
422                    java.lang.String orderByCol, java.lang.String orderByType,
423                    java.lang.String targetLayoutFriendlyUrl,
424                    java.lang.String targetPortletId, java.lang.String contentField,
425                    java.lang.String feedType, double feedVersion,
426                    com.liferay.portal.service.ServiceContext serviceContext)
427                    throws com.liferay.portal.kernel.exception.PortalException,
428                            com.liferay.portal.kernel.exception.SystemException {
429                    return _journalFeedLocalService.updateFeed(groupId, feedId, name,
430                            description, type, structureId, templateId, rendererTemplateId,
431                            delta, orderByCol, orderByType, targetLayoutFriendlyUrl,
432                            targetPortletId, contentField, feedType, feedVersion, serviceContext);
433            }
434    
435            /**
436             * @deprecated Renamed to {@link #getWrappedService}
437             */
438            public JournalFeedLocalService getWrappedJournalFeedLocalService() {
439                    return _journalFeedLocalService;
440            }
441    
442            /**
443             * @deprecated Renamed to {@link #setWrappedService}
444             */
445            public void setWrappedJournalFeedLocalService(
446                    JournalFeedLocalService journalFeedLocalService) {
447                    _journalFeedLocalService = journalFeedLocalService;
448            }
449    
450            public JournalFeedLocalService getWrappedService() {
451                    return _journalFeedLocalService;
452            }
453    
454            public void setWrappedService(
455                    JournalFeedLocalService journalFeedLocalService) {
456                    _journalFeedLocalService = journalFeedLocalService;
457            }
458    
459            private JournalFeedLocalService _journalFeedLocalService;
460    }