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.blogs.service;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link BlogsEntryLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       BlogsEntryLocalService
024     * @generated
025     */
026    public class BlogsEntryLocalServiceWrapper implements BlogsEntryLocalService {
027            public BlogsEntryLocalServiceWrapper(
028                    BlogsEntryLocalService blogsEntryLocalService) {
029                    _blogsEntryLocalService = blogsEntryLocalService;
030            }
031    
032            /**
033            * Adds the blogs entry to the database. Also notifies the appropriate model listeners.
034            *
035            * @param blogsEntry the blogs entry to add
036            * @return the blogs entry that was added
037            * @throws SystemException if a system exception occurred
038            */
039            public com.liferay.portlet.blogs.model.BlogsEntry addBlogsEntry(
040                    com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
041                    throws com.liferay.portal.kernel.exception.SystemException {
042                    return _blogsEntryLocalService.addBlogsEntry(blogsEntry);
043            }
044    
045            /**
046            * Creates a new blogs entry with the primary key. Does not add the blogs entry to the database.
047            *
048            * @param entryId the primary key for the new blogs entry
049            * @return the new blogs entry
050            */
051            public com.liferay.portlet.blogs.model.BlogsEntry createBlogsEntry(
052                    long entryId) {
053                    return _blogsEntryLocalService.createBlogsEntry(entryId);
054            }
055    
056            /**
057            * Deletes the blogs entry with the primary key from the database. Also notifies the appropriate model listeners.
058            *
059            * @param entryId the primary key of the blogs entry to delete
060            * @throws PortalException if a blogs entry with the primary key could not be found
061            * @throws SystemException if a system exception occurred
062            */
063            public void deleteBlogsEntry(long entryId)
064                    throws com.liferay.portal.kernel.exception.PortalException,
065                            com.liferay.portal.kernel.exception.SystemException {
066                    _blogsEntryLocalService.deleteBlogsEntry(entryId);
067            }
068    
069            /**
070            * Deletes the blogs entry from the database. Also notifies the appropriate model listeners.
071            *
072            * @param blogsEntry the blogs entry to delete
073            * @throws SystemException if a system exception occurred
074            */
075            public void deleteBlogsEntry(
076                    com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
077                    throws com.liferay.portal.kernel.exception.SystemException {
078                    _blogsEntryLocalService.deleteBlogsEntry(blogsEntry);
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 _blogsEntryLocalService.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 _blogsEntryLocalService.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 _blogsEntryLocalService.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 _blogsEntryLocalService.dynamicQueryCount(dynamicQuery);
150            }
151    
152            /**
153            * Gets the blogs entry with the primary key.
154            *
155            * @param entryId the primary key of the blogs entry to get
156            * @return the blogs entry
157            * @throws PortalException if a blogs entry with the primary key could not be found
158            * @throws SystemException if a system exception occurred
159            */
160            public com.liferay.portlet.blogs.model.BlogsEntry getBlogsEntry(
161                    long entryId)
162                    throws com.liferay.portal.kernel.exception.PortalException,
163                            com.liferay.portal.kernel.exception.SystemException {
164                    return _blogsEntryLocalService.getBlogsEntry(entryId);
165            }
166    
167            /**
168            * Gets the blogs entry with the UUID and group id.
169            *
170            * @param uuid the UUID of blogs entry to get
171            * @param groupId the group id of the blogs entry to get
172            * @return the blogs entry
173            * @throws PortalException if a blogs entry with the UUID and group id could not be found
174            * @throws SystemException if a system exception occurred
175            */
176            public com.liferay.portlet.blogs.model.BlogsEntry getBlogsEntryByUuidAndGroupId(
177                    java.lang.String uuid, long groupId)
178                    throws com.liferay.portal.kernel.exception.PortalException,
179                            com.liferay.portal.kernel.exception.SystemException {
180                    return _blogsEntryLocalService.getBlogsEntryByUuidAndGroupId(uuid,
181                            groupId);
182            }
183    
184            /**
185            * Gets a range of all the blogs entries.
186            *
187            * <p>
188            * 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.
189            * </p>
190            *
191            * @param start the lower bound of the range of blogs entries to return
192            * @param end the upper bound of the range of blogs entries to return (not inclusive)
193            * @return the range of blogs entries
194            * @throws SystemException if a system exception occurred
195            */
196            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getBlogsEntries(
197                    int start, int end)
198                    throws com.liferay.portal.kernel.exception.SystemException {
199                    return _blogsEntryLocalService.getBlogsEntries(start, end);
200            }
201    
202            /**
203            * Gets the number of blogs entries.
204            *
205            * @return the number of blogs entries
206            * @throws SystemException if a system exception occurred
207            */
208            public int getBlogsEntriesCount()
209                    throws com.liferay.portal.kernel.exception.SystemException {
210                    return _blogsEntryLocalService.getBlogsEntriesCount();
211            }
212    
213            /**
214            * Updates the blogs entry in the database. Also notifies the appropriate model listeners.
215            *
216            * @param blogsEntry the blogs entry to update
217            * @return the blogs entry that was updated
218            * @throws SystemException if a system exception occurred
219            */
220            public com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
221                    com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
222                    throws com.liferay.portal.kernel.exception.SystemException {
223                    return _blogsEntryLocalService.updateBlogsEntry(blogsEntry);
224            }
225    
226            /**
227            * Updates the blogs entry in the database. Also notifies the appropriate model listeners.
228            *
229            * @param blogsEntry the blogs entry to update
230            * @param merge whether to merge the blogs entry 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.
231            * @return the blogs entry that was updated
232            * @throws SystemException if a system exception occurred
233            */
234            public com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
235                    com.liferay.portlet.blogs.model.BlogsEntry blogsEntry, boolean merge)
236                    throws com.liferay.portal.kernel.exception.SystemException {
237                    return _blogsEntryLocalService.updateBlogsEntry(blogsEntry, merge);
238            }
239    
240            public com.liferay.portlet.blogs.model.BlogsEntry addEntry(long userId,
241                    java.lang.String title, java.lang.String content, int displayDateMonth,
242                    int displayDateDay, int displayDateYear, int displayDateHour,
243                    int displayDateMinute, boolean allowPingbacks, boolean allowTrackbacks,
244                    java.lang.String[] trackbacks,
245                    com.liferay.portal.service.ServiceContext serviceContext)
246                    throws com.liferay.portal.kernel.exception.PortalException,
247                            com.liferay.portal.kernel.exception.SystemException {
248                    return _blogsEntryLocalService.addEntry(userId, title, content,
249                            displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
250                            displayDateMinute, allowPingbacks, allowTrackbacks, trackbacks,
251                            serviceContext);
252            }
253    
254            public void addEntryResources(
255                    com.liferay.portlet.blogs.model.BlogsEntry entry,
256                    boolean addCommunityPermissions, boolean addGuestPermissions)
257                    throws com.liferay.portal.kernel.exception.PortalException,
258                            com.liferay.portal.kernel.exception.SystemException {
259                    _blogsEntryLocalService.addEntryResources(entry,
260                            addCommunityPermissions, addGuestPermissions);
261            }
262    
263            public void addEntryResources(
264                    com.liferay.portlet.blogs.model.BlogsEntry entry,
265                    java.lang.String[] communityPermissions,
266                    java.lang.String[] guestPermissions)
267                    throws com.liferay.portal.kernel.exception.PortalException,
268                            com.liferay.portal.kernel.exception.SystemException {
269                    _blogsEntryLocalService.addEntryResources(entry, communityPermissions,
270                            guestPermissions);
271            }
272    
273            public void addEntryResources(long entryId,
274                    boolean addCommunityPermissions, boolean addGuestPermissions)
275                    throws com.liferay.portal.kernel.exception.PortalException,
276                            com.liferay.portal.kernel.exception.SystemException {
277                    _blogsEntryLocalService.addEntryResources(entryId,
278                            addCommunityPermissions, addGuestPermissions);
279            }
280    
281            public void addEntryResources(long entryId,
282                    java.lang.String[] communityPermissions,
283                    java.lang.String[] guestPermissions)
284                    throws com.liferay.portal.kernel.exception.PortalException,
285                            com.liferay.portal.kernel.exception.SystemException {
286                    _blogsEntryLocalService.addEntryResources(entryId,
287                            communityPermissions, guestPermissions);
288            }
289    
290            public void deleteEntries(long groupId)
291                    throws com.liferay.portal.kernel.exception.PortalException,
292                            com.liferay.portal.kernel.exception.SystemException {
293                    _blogsEntryLocalService.deleteEntries(groupId);
294            }
295    
296            public void deleteEntry(com.liferay.portlet.blogs.model.BlogsEntry entry)
297                    throws com.liferay.portal.kernel.exception.PortalException,
298                            com.liferay.portal.kernel.exception.SystemException {
299                    _blogsEntryLocalService.deleteEntry(entry);
300            }
301    
302            public void deleteEntry(long entryId)
303                    throws com.liferay.portal.kernel.exception.PortalException,
304                            com.liferay.portal.kernel.exception.SystemException {
305                    _blogsEntryLocalService.deleteEntry(entryId);
306            }
307    
308            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
309                    long companyId, int status, int start, int end)
310                    throws com.liferay.portal.kernel.exception.SystemException {
311                    return _blogsEntryLocalService.getCompanyEntries(companyId, status,
312                            start, end);
313            }
314    
315            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
316                    long companyId, int status, int start, int end,
317                    com.liferay.portal.kernel.util.OrderByComparator obc)
318                    throws com.liferay.portal.kernel.exception.SystemException {
319                    return _blogsEntryLocalService.getCompanyEntries(companyId, status,
320                            start, end, obc);
321            }
322    
323            public int getCompanyEntriesCount(long companyId, int status)
324                    throws com.liferay.portal.kernel.exception.SystemException {
325                    return _blogsEntryLocalService.getCompanyEntriesCount(companyId, status);
326            }
327    
328            public com.liferay.portlet.blogs.model.BlogsEntry[] getEntriesPrevAndNext(
329                    long entryId)
330                    throws com.liferay.portal.kernel.exception.PortalException,
331                            com.liferay.portal.kernel.exception.SystemException {
332                    return _blogsEntryLocalService.getEntriesPrevAndNext(entryId);
333            }
334    
335            public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long entryId)
336                    throws com.liferay.portal.kernel.exception.PortalException,
337                            com.liferay.portal.kernel.exception.SystemException {
338                    return _blogsEntryLocalService.getEntry(entryId);
339            }
340    
341            public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long groupId,
342                    java.lang.String urlTitle)
343                    throws com.liferay.portal.kernel.exception.PortalException,
344                            com.liferay.portal.kernel.exception.SystemException {
345                    return _blogsEntryLocalService.getEntry(groupId, urlTitle);
346            }
347    
348            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
349                    long groupId, int status, int start, int end)
350                    throws com.liferay.portal.kernel.exception.SystemException {
351                    return _blogsEntryLocalService.getGroupEntries(groupId, status, start,
352                            end);
353            }
354    
355            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
356                    long groupId, int status, int start, int end,
357                    com.liferay.portal.kernel.util.OrderByComparator obc)
358                    throws com.liferay.portal.kernel.exception.SystemException {
359                    return _blogsEntryLocalService.getGroupEntries(groupId, status, start,
360                            end, obc);
361            }
362    
363            public int getGroupEntriesCount(long groupId, int status)
364                    throws com.liferay.portal.kernel.exception.SystemException {
365                    return _blogsEntryLocalService.getGroupEntriesCount(groupId, status);
366            }
367    
368            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
369                    long companyId, long groupId, int status, int start, int end)
370                    throws com.liferay.portal.kernel.exception.SystemException {
371                    return _blogsEntryLocalService.getGroupsEntries(companyId, groupId,
372                            status, start, end);
373            }
374    
375            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
376                    long groupId, long userId, int status, int start, int end)
377                    throws com.liferay.portal.kernel.exception.SystemException {
378                    return _blogsEntryLocalService.getGroupUserEntries(groupId, userId,
379                            status, start, end);
380            }
381    
382            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
383                    long groupId, long userId, int status, int start, int end,
384                    com.liferay.portal.kernel.util.OrderByComparator obc)
385                    throws com.liferay.portal.kernel.exception.SystemException {
386                    return _blogsEntryLocalService.getGroupUserEntries(groupId, userId,
387                            status, start, end, obc);
388            }
389    
390            public int getGroupUserEntriesCount(long groupId, long userId, int status)
391                    throws com.liferay.portal.kernel.exception.SystemException {
392                    return _blogsEntryLocalService.getGroupUserEntriesCount(groupId,
393                            userId, status);
394            }
395    
396            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getNoAssetEntries()
397                    throws com.liferay.portal.kernel.exception.SystemException {
398                    return _blogsEntryLocalService.getNoAssetEntries();
399            }
400    
401            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
402                    long organizationId, int status, int start, int end)
403                    throws com.liferay.portal.kernel.exception.SystemException {
404                    return _blogsEntryLocalService.getOrganizationEntries(organizationId,
405                            status, start, end);
406            }
407    
408            public int getOrganizationEntriesCount(long organizationId, int status)
409                    throws com.liferay.portal.kernel.exception.SystemException {
410                    return _blogsEntryLocalService.getOrganizationEntriesCount(organizationId,
411                            status);
412            }
413    
414            public void updateAsset(long userId,
415                    com.liferay.portlet.blogs.model.BlogsEntry entry,
416                    long[] assetCategoryIds, java.lang.String[] assetTagNames)
417                    throws com.liferay.portal.kernel.exception.PortalException,
418                            com.liferay.portal.kernel.exception.SystemException {
419                    _blogsEntryLocalService.updateAsset(userId, entry, assetCategoryIds,
420                            assetTagNames);
421            }
422    
423            public com.liferay.portlet.blogs.model.BlogsEntry updateEntry(long userId,
424                    long entryId, java.lang.String title, java.lang.String content,
425                    int displayDateMonth, int displayDateDay, int displayDateYear,
426                    int displayDateHour, int displayDateMinute, boolean allowPingbacks,
427                    boolean allowTrackbacks, java.lang.String[] trackbacks,
428                    com.liferay.portal.service.ServiceContext serviceContext)
429                    throws com.liferay.portal.kernel.exception.PortalException,
430                            com.liferay.portal.kernel.exception.SystemException {
431                    return _blogsEntryLocalService.updateEntry(userId, entryId, title,
432                            content, displayDateMonth, displayDateDay, displayDateYear,
433                            displayDateHour, displayDateMinute, allowPingbacks,
434                            allowTrackbacks, trackbacks, serviceContext);
435            }
436    
437            public void updateEntryResources(
438                    com.liferay.portlet.blogs.model.BlogsEntry entry,
439                    java.lang.String[] communityPermissions,
440                    java.lang.String[] guestPermissions)
441                    throws com.liferay.portal.kernel.exception.PortalException,
442                            com.liferay.portal.kernel.exception.SystemException {
443                    _blogsEntryLocalService.updateEntryResources(entry,
444                            communityPermissions, guestPermissions);
445            }
446    
447            public com.liferay.portlet.blogs.model.BlogsEntry updateStatus(
448                    long userId, long entryId, int status,
449                    com.liferay.portal.service.ServiceContext serviceContext)
450                    throws com.liferay.portal.kernel.exception.PortalException,
451                            com.liferay.portal.kernel.exception.SystemException {
452                    return _blogsEntryLocalService.updateStatus(userId, entryId, status,
453                            serviceContext);
454            }
455    
456            public BlogsEntryLocalService getWrappedBlogsEntryLocalService() {
457                    return _blogsEntryLocalService;
458            }
459    
460            private BlogsEntryLocalService _blogsEntryLocalService;
461    }