001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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 addCommunityPermissions,
284                    boolean addGuestPermissions)
285                    throws com.liferay.portal.kernel.exception.PortalException,
286                            com.liferay.portal.kernel.exception.SystemException {
287                    _journalFeedLocalService.addFeedResources(feedId,
288                            addCommunityPermissions, addGuestPermissions);
289            }
290    
291            public void addFeedResources(
292                    com.liferay.portlet.journal.model.JournalFeed feed,
293                    boolean addCommunityPermissions, boolean addGuestPermissions)
294                    throws com.liferay.portal.kernel.exception.PortalException,
295                            com.liferay.portal.kernel.exception.SystemException {
296                    _journalFeedLocalService.addFeedResources(feed,
297                            addCommunityPermissions, addGuestPermissions);
298            }
299    
300            public void addFeedResources(long feedId,
301                    java.lang.String[] communityPermissions,
302                    java.lang.String[] guestPermissions)
303                    throws com.liferay.portal.kernel.exception.PortalException,
304                            com.liferay.portal.kernel.exception.SystemException {
305                    _journalFeedLocalService.addFeedResources(feedId, communityPermissions,
306                            guestPermissions);
307            }
308    
309            public void addFeedResources(
310                    com.liferay.portlet.journal.model.JournalFeed feed,
311                    java.lang.String[] communityPermissions,
312                    java.lang.String[] guestPermissions)
313                    throws com.liferay.portal.kernel.exception.PortalException,
314                            com.liferay.portal.kernel.exception.SystemException {
315                    _journalFeedLocalService.addFeedResources(feed, communityPermissions,
316                            guestPermissions);
317            }
318    
319            public void deleteFeed(long feedId)
320                    throws com.liferay.portal.kernel.exception.PortalException,
321                            com.liferay.portal.kernel.exception.SystemException {
322                    _journalFeedLocalService.deleteFeed(feedId);
323            }
324    
325            public void deleteFeed(long groupId, java.lang.String feedId)
326                    throws com.liferay.portal.kernel.exception.PortalException,
327                            com.liferay.portal.kernel.exception.SystemException {
328                    _journalFeedLocalService.deleteFeed(groupId, feedId);
329            }
330    
331            public void deleteFeed(com.liferay.portlet.journal.model.JournalFeed feed)
332                    throws com.liferay.portal.kernel.exception.PortalException,
333                            com.liferay.portal.kernel.exception.SystemException {
334                    _journalFeedLocalService.deleteFeed(feed);
335            }
336    
337            public com.liferay.portlet.journal.model.JournalFeed getFeed(long feedId)
338                    throws com.liferay.portal.kernel.exception.PortalException,
339                            com.liferay.portal.kernel.exception.SystemException {
340                    return _journalFeedLocalService.getFeed(feedId);
341            }
342    
343            public com.liferay.portlet.journal.model.JournalFeed getFeed(long groupId,
344                    java.lang.String feedId)
345                    throws com.liferay.portal.kernel.exception.PortalException,
346                            com.liferay.portal.kernel.exception.SystemException {
347                    return _journalFeedLocalService.getFeed(groupId, feedId);
348            }
349    
350            public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds()
351                    throws com.liferay.portal.kernel.exception.SystemException {
352                    return _journalFeedLocalService.getFeeds();
353            }
354    
355            public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
356                    long groupId)
357                    throws com.liferay.portal.kernel.exception.SystemException {
358                    return _journalFeedLocalService.getFeeds(groupId);
359            }
360    
361            public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
362                    long groupId, int start, int end)
363                    throws com.liferay.portal.kernel.exception.SystemException {
364                    return _journalFeedLocalService.getFeeds(groupId, start, end);
365            }
366    
367            public int getFeedsCount(long groupId)
368                    throws com.liferay.portal.kernel.exception.SystemException {
369                    return _journalFeedLocalService.getFeedsCount(groupId);
370            }
371    
372            public java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
373                    long companyId, long groupId, java.lang.String keywords, int start,
374                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
375                    throws com.liferay.portal.kernel.exception.SystemException {
376                    return _journalFeedLocalService.search(companyId, groupId, keywords,
377                            start, end, obc);
378            }
379    
380            public java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
381                    long companyId, long groupId, java.lang.String feedId,
382                    java.lang.String name, java.lang.String description,
383                    boolean andOperator, int start, int end,
384                    com.liferay.portal.kernel.util.OrderByComparator obc)
385                    throws com.liferay.portal.kernel.exception.SystemException {
386                    return _journalFeedLocalService.search(companyId, groupId, feedId,
387                            name, description, andOperator, start, end, obc);
388            }
389    
390            public int searchCount(long companyId, long groupId,
391                    java.lang.String keywords)
392                    throws com.liferay.portal.kernel.exception.SystemException {
393                    return _journalFeedLocalService.searchCount(companyId, groupId, keywords);
394            }
395    
396            public int searchCount(long companyId, long groupId,
397                    java.lang.String feedId, java.lang.String name,
398                    java.lang.String description, boolean andOperator)
399                    throws com.liferay.portal.kernel.exception.SystemException {
400                    return _journalFeedLocalService.searchCount(companyId, groupId, feedId,
401                            name, description, andOperator);
402            }
403    
404            public com.liferay.portlet.journal.model.JournalFeed updateFeed(
405                    long groupId, java.lang.String feedId, java.lang.String name,
406                    java.lang.String description, java.lang.String type,
407                    java.lang.String structureId, java.lang.String templateId,
408                    java.lang.String rendererTemplateId, int delta,
409                    java.lang.String orderByCol, java.lang.String orderByType,
410                    java.lang.String targetLayoutFriendlyUrl,
411                    java.lang.String targetPortletId, java.lang.String contentField,
412                    java.lang.String feedType, double feedVersion,
413                    com.liferay.portal.service.ServiceContext serviceContext)
414                    throws com.liferay.portal.kernel.exception.PortalException,
415                            com.liferay.portal.kernel.exception.SystemException {
416                    return _journalFeedLocalService.updateFeed(groupId, feedId, name,
417                            description, type, structureId, templateId, rendererTemplateId,
418                            delta, orderByCol, orderByType, targetLayoutFriendlyUrl,
419                            targetPortletId, contentField, feedType, feedVersion, serviceContext);
420            }
421    
422            public JournalFeedLocalService getWrappedJournalFeedLocalService() {
423                    return _journalFeedLocalService;
424            }
425    
426            public void setWrappedJournalFeedLocalService(
427                    JournalFeedLocalService journalFeedLocalService) {
428                    _journalFeedLocalService = journalFeedLocalService;
429            }
430    
431            private JournalFeedLocalService _journalFeedLocalService;
432    }