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