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