001    /**
002     * Copyright (c) 2000-2010 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 to add
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 to delete
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 to delete
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 to search with
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 to search with
103            * @param start the lower bound of the range of model instances to return
104            * @param end the upper bound of the range of model instances to return (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 to search with
123            * @param start the lower bound of the range of model instances to return
124            * @param end the upper bound of the range of model instances to return (not inclusive)
125            * @param orderByComparator the comparator to order the results by
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            * Counts the number of rows that match the dynamic query.
141            *
142            * @param dynamicQuery the dynamic query to search with
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            * Gets the journal feed with the primary key.
154            *
155            * @param id the primary key of the journal feed to get
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            /**
167            * Gets the journal feed with the UUID and group id.
168            *
169            * @param uuid the UUID of journal feed to get
170            * @param groupId the group id of the journal feed to get
171            * @return the journal feed
172            * @throws PortalException if a journal feed with the UUID and group id could not be found
173            * @throws SystemException if a system exception occurred
174            */
175            public com.liferay.portlet.journal.model.JournalFeed getJournalFeedByUuidAndGroupId(
176                    java.lang.String uuid, long groupId)
177                    throws com.liferay.portal.kernel.exception.PortalException,
178                            com.liferay.portal.kernel.exception.SystemException {
179                    return _journalFeedLocalService.getJournalFeedByUuidAndGroupId(uuid,
180                            groupId);
181            }
182    
183            /**
184            * Gets a range of all the journal feeds.
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.
188            * </p>
189            *
190            * @param start the lower bound of the range of journal feeds to return
191            * @param end the upper bound of the range of journal feeds to return (not inclusive)
192            * @return the range of journal feeds
193            * @throws SystemException if a system exception occurred
194            */
195            public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getJournalFeeds(
196                    int start, int end)
197                    throws com.liferay.portal.kernel.exception.SystemException {
198                    return _journalFeedLocalService.getJournalFeeds(start, end);
199            }
200    
201            /**
202            * Gets the number of journal feeds.
203            *
204            * @return the number of journal feeds
205            * @throws SystemException if a system exception occurred
206            */
207            public int getJournalFeedsCount()
208                    throws com.liferay.portal.kernel.exception.SystemException {
209                    return _journalFeedLocalService.getJournalFeedsCount();
210            }
211    
212            /**
213            * Updates the journal feed in the database. Also notifies the appropriate model listeners.
214            *
215            * @param journalFeed the journal feed to update
216            * @return the journal feed that was updated
217            * @throws SystemException if a system exception occurred
218            */
219            public com.liferay.portlet.journal.model.JournalFeed updateJournalFeed(
220                    com.liferay.portlet.journal.model.JournalFeed journalFeed)
221                    throws com.liferay.portal.kernel.exception.SystemException {
222                    return _journalFeedLocalService.updateJournalFeed(journalFeed);
223            }
224    
225            /**
226            * Updates the journal feed in the database. Also notifies the appropriate model listeners.
227            *
228            * @param journalFeed the journal feed to update
229            * @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.
230            * @return the journal feed that was updated
231            * @throws SystemException if a system exception occurred
232            */
233            public com.liferay.portlet.journal.model.JournalFeed updateJournalFeed(
234                    com.liferay.portlet.journal.model.JournalFeed journalFeed, boolean merge)
235                    throws com.liferay.portal.kernel.exception.SystemException {
236                    return _journalFeedLocalService.updateJournalFeed(journalFeed, merge);
237            }
238    
239            public com.liferay.portlet.journal.model.JournalFeed addFeed(long userId,
240                    long groupId, java.lang.String feedId, boolean autoFeedId,
241                    java.lang.String name, java.lang.String description,
242                    java.lang.String type, java.lang.String structureId,
243                    java.lang.String templateId, java.lang.String rendererTemplateId,
244                    int delta, java.lang.String orderByCol, java.lang.String orderByType,
245                    java.lang.String targetLayoutFriendlyUrl,
246                    java.lang.String targetPortletId, java.lang.String contentField,
247                    java.lang.String feedType, double feedVersion,
248                    com.liferay.portal.service.ServiceContext serviceContext)
249                    throws com.liferay.portal.kernel.exception.PortalException,
250                            com.liferay.portal.kernel.exception.SystemException {
251                    return _journalFeedLocalService.addFeed(userId, groupId, feedId,
252                            autoFeedId, name, description, type, structureId, templateId,
253                            rendererTemplateId, delta, orderByCol, orderByType,
254                            targetLayoutFriendlyUrl, targetPortletId, contentField, feedType,
255                            feedVersion, serviceContext);
256            }
257    
258            public void addFeedResources(long feedId, boolean addCommunityPermissions,
259                    boolean addGuestPermissions)
260                    throws com.liferay.portal.kernel.exception.PortalException,
261                            com.liferay.portal.kernel.exception.SystemException {
262                    _journalFeedLocalService.addFeedResources(feedId,
263                            addCommunityPermissions, addGuestPermissions);
264            }
265    
266            public void addFeedResources(
267                    com.liferay.portlet.journal.model.JournalFeed feed,
268                    boolean addCommunityPermissions, boolean addGuestPermissions)
269                    throws com.liferay.portal.kernel.exception.PortalException,
270                            com.liferay.portal.kernel.exception.SystemException {
271                    _journalFeedLocalService.addFeedResources(feed,
272                            addCommunityPermissions, addGuestPermissions);
273            }
274    
275            public void addFeedResources(long feedId,
276                    java.lang.String[] communityPermissions,
277                    java.lang.String[] guestPermissions)
278                    throws com.liferay.portal.kernel.exception.PortalException,
279                            com.liferay.portal.kernel.exception.SystemException {
280                    _journalFeedLocalService.addFeedResources(feedId, communityPermissions,
281                            guestPermissions);
282            }
283    
284            public void addFeedResources(
285                    com.liferay.portlet.journal.model.JournalFeed feed,
286                    java.lang.String[] communityPermissions,
287                    java.lang.String[] guestPermissions)
288                    throws com.liferay.portal.kernel.exception.PortalException,
289                            com.liferay.portal.kernel.exception.SystemException {
290                    _journalFeedLocalService.addFeedResources(feed, communityPermissions,
291                            guestPermissions);
292            }
293    
294            public void deleteFeed(long feedId)
295                    throws com.liferay.portal.kernel.exception.PortalException,
296                            com.liferay.portal.kernel.exception.SystemException {
297                    _journalFeedLocalService.deleteFeed(feedId);
298            }
299    
300            public void deleteFeed(long groupId, java.lang.String feedId)
301                    throws com.liferay.portal.kernel.exception.PortalException,
302                            com.liferay.portal.kernel.exception.SystemException {
303                    _journalFeedLocalService.deleteFeed(groupId, feedId);
304            }
305    
306            public void deleteFeed(com.liferay.portlet.journal.model.JournalFeed feed)
307                    throws com.liferay.portal.kernel.exception.PortalException,
308                            com.liferay.portal.kernel.exception.SystemException {
309                    _journalFeedLocalService.deleteFeed(feed);
310            }
311    
312            public com.liferay.portlet.journal.model.JournalFeed getFeed(long feedId)
313                    throws com.liferay.portal.kernel.exception.PortalException,
314                            com.liferay.portal.kernel.exception.SystemException {
315                    return _journalFeedLocalService.getFeed(feedId);
316            }
317    
318            public com.liferay.portlet.journal.model.JournalFeed getFeed(long groupId,
319                    java.lang.String feedId)
320                    throws com.liferay.portal.kernel.exception.PortalException,
321                            com.liferay.portal.kernel.exception.SystemException {
322                    return _journalFeedLocalService.getFeed(groupId, feedId);
323            }
324    
325            public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds()
326                    throws com.liferay.portal.kernel.exception.SystemException {
327                    return _journalFeedLocalService.getFeeds();
328            }
329    
330            public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
331                    long groupId)
332                    throws com.liferay.portal.kernel.exception.SystemException {
333                    return _journalFeedLocalService.getFeeds(groupId);
334            }
335    
336            public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
337                    long groupId, int start, int end)
338                    throws com.liferay.portal.kernel.exception.SystemException {
339                    return _journalFeedLocalService.getFeeds(groupId, start, end);
340            }
341    
342            public int getFeedsCount(long groupId)
343                    throws com.liferay.portal.kernel.exception.SystemException {
344                    return _journalFeedLocalService.getFeedsCount(groupId);
345            }
346    
347            public java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
348                    long companyId, long groupId, java.lang.String keywords, int start,
349                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
350                    throws com.liferay.portal.kernel.exception.SystemException {
351                    return _journalFeedLocalService.search(companyId, groupId, keywords,
352                            start, end, obc);
353            }
354    
355            public java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
356                    long companyId, long groupId, java.lang.String feedId,
357                    java.lang.String name, java.lang.String description,
358                    boolean andOperator, int start, int end,
359                    com.liferay.portal.kernel.util.OrderByComparator obc)
360                    throws com.liferay.portal.kernel.exception.SystemException {
361                    return _journalFeedLocalService.search(companyId, groupId, feedId,
362                            name, description, andOperator, start, end, obc);
363            }
364    
365            public int searchCount(long companyId, long groupId,
366                    java.lang.String keywords)
367                    throws com.liferay.portal.kernel.exception.SystemException {
368                    return _journalFeedLocalService.searchCount(companyId, groupId, keywords);
369            }
370    
371            public int searchCount(long companyId, long groupId,
372                    java.lang.String feedId, java.lang.String name,
373                    java.lang.String description, boolean andOperator)
374                    throws com.liferay.portal.kernel.exception.SystemException {
375                    return _journalFeedLocalService.searchCount(companyId, groupId, feedId,
376                            name, description, andOperator);
377            }
378    
379            public com.liferay.portlet.journal.model.JournalFeed updateFeed(
380                    long groupId, java.lang.String feedId, java.lang.String name,
381                    java.lang.String description, java.lang.String type,
382                    java.lang.String structureId, java.lang.String templateId,
383                    java.lang.String rendererTemplateId, int delta,
384                    java.lang.String orderByCol, java.lang.String orderByType,
385                    java.lang.String targetLayoutFriendlyUrl,
386                    java.lang.String targetPortletId, java.lang.String contentField,
387                    java.lang.String feedType, double feedVersion,
388                    com.liferay.portal.service.ServiceContext serviceContext)
389                    throws com.liferay.portal.kernel.exception.PortalException,
390                            com.liferay.portal.kernel.exception.SystemException {
391                    return _journalFeedLocalService.updateFeed(groupId, feedId, name,
392                            description, type, structureId, templateId, rendererTemplateId,
393                            delta, orderByCol, orderByType, targetLayoutFriendlyUrl,
394                            targetPortletId, contentField, feedType, feedVersion, serviceContext);
395            }
396    
397            public JournalFeedLocalService getWrappedJournalFeedLocalService() {
398                    return _journalFeedLocalService;
399            }
400    
401            private JournalFeedLocalService _journalFeedLocalService;
402    }