001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.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
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
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
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
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
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 _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
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 _blogsEntryLocalService.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 _blogsEntryLocalService.dynamicQueryCount(dynamicQuery);
150            }
151    
152            /**
153            * Returns the blogs entry with the primary key.
154            *
155            * @param entryId the primary key of the blogs entry
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            public com.liferay.portal.model.PersistedModel getPersistedModel(
168                    java.io.Serializable primaryKeyObj)
169                    throws com.liferay.portal.kernel.exception.PortalException,
170                            com.liferay.portal.kernel.exception.SystemException {
171                    return _blogsEntryLocalService.getPersistedModel(primaryKeyObj);
172            }
173    
174            /**
175            * Returns the blogs entry with the UUID in the group.
176            *
177            * @param uuid the UUID of blogs entry
178            * @param groupId the group id of the blogs entry
179            * @return the blogs entry
180            * @throws PortalException if a blogs entry with the UUID in the group could not be found
181            * @throws SystemException if a system exception occurred
182            */
183            public com.liferay.portlet.blogs.model.BlogsEntry getBlogsEntryByUuidAndGroupId(
184                    java.lang.String uuid, long groupId)
185                    throws com.liferay.portal.kernel.exception.PortalException,
186                            com.liferay.portal.kernel.exception.SystemException {
187                    return _blogsEntryLocalService.getBlogsEntryByUuidAndGroupId(uuid,
188                            groupId);
189            }
190    
191            /**
192            * Returns a range of all the blogs entries.
193            *
194            * <p>
195            * 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.
196            * </p>
197            *
198            * @param start the lower bound of the range of blogs entries
199            * @param end the upper bound of the range of blogs entries (not inclusive)
200            * @return the range of blogs entries
201            * @throws SystemException if a system exception occurred
202            */
203            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getBlogsEntries(
204                    int start, int end)
205                    throws com.liferay.portal.kernel.exception.SystemException {
206                    return _blogsEntryLocalService.getBlogsEntries(start, end);
207            }
208    
209            /**
210            * Returns the number of blogs entries.
211            *
212            * @return the number of blogs entries
213            * @throws SystemException if a system exception occurred
214            */
215            public int getBlogsEntriesCount()
216                    throws com.liferay.portal.kernel.exception.SystemException {
217                    return _blogsEntryLocalService.getBlogsEntriesCount();
218            }
219    
220            /**
221            * Updates the blogs entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
222            *
223            * @param blogsEntry the blogs entry
224            * @return the blogs entry that was updated
225            * @throws SystemException if a system exception occurred
226            */
227            public com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
228                    com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
229                    throws com.liferay.portal.kernel.exception.SystemException {
230                    return _blogsEntryLocalService.updateBlogsEntry(blogsEntry);
231            }
232    
233            /**
234            * Updates the blogs entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
235            *
236            * @param blogsEntry the blogs entry
237            * @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.
238            * @return the blogs entry that was updated
239            * @throws SystemException if a system exception occurred
240            */
241            public com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
242                    com.liferay.portlet.blogs.model.BlogsEntry blogsEntry, boolean merge)
243                    throws com.liferay.portal.kernel.exception.SystemException {
244                    return _blogsEntryLocalService.updateBlogsEntry(blogsEntry, merge);
245            }
246    
247            /**
248            * Returns the Spring bean ID for this bean.
249            *
250            * @return the Spring bean ID for this bean
251            */
252            public java.lang.String getBeanIdentifier() {
253                    return _blogsEntryLocalService.getBeanIdentifier();
254            }
255    
256            /**
257            * Sets the Spring bean ID for this bean.
258            *
259            * @param beanIdentifier the Spring bean ID for this bean
260            */
261            public void setBeanIdentifier(java.lang.String beanIdentifier) {
262                    _blogsEntryLocalService.setBeanIdentifier(beanIdentifier);
263            }
264    
265            public com.liferay.portlet.blogs.model.BlogsEntry addEntry(long userId,
266                    java.lang.String title, java.lang.String description,
267                    java.lang.String content, int displayDateMonth, int displayDateDay,
268                    int displayDateYear, int displayDateHour, int displayDateMinute,
269                    boolean allowPingbacks, boolean allowTrackbacks,
270                    java.lang.String[] trackbacks, boolean smallImage,
271                    java.lang.String smallImageURL, java.lang.String smallImageFileName,
272                    java.io.InputStream smallImageInputStream,
273                    com.liferay.portal.service.ServiceContext serviceContext)
274                    throws com.liferay.portal.kernel.exception.PortalException,
275                            com.liferay.portal.kernel.exception.SystemException {
276                    return _blogsEntryLocalService.addEntry(userId, title, description,
277                            content, displayDateMonth, displayDateDay, displayDateYear,
278                            displayDateHour, displayDateMinute, allowPingbacks,
279                            allowTrackbacks, trackbacks, smallImage, smallImageURL,
280                            smallImageFileName, smallImageInputStream, serviceContext);
281            }
282    
283            public void addEntryResources(
284                    com.liferay.portlet.blogs.model.BlogsEntry entry,
285                    boolean addGroupPermissions, boolean addGuestPermissions)
286                    throws com.liferay.portal.kernel.exception.PortalException,
287                            com.liferay.portal.kernel.exception.SystemException {
288                    _blogsEntryLocalService.addEntryResources(entry, addGroupPermissions,
289                            addGuestPermissions);
290            }
291    
292            public void addEntryResources(
293                    com.liferay.portlet.blogs.model.BlogsEntry entry,
294                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
295                    throws com.liferay.portal.kernel.exception.PortalException,
296                            com.liferay.portal.kernel.exception.SystemException {
297                    _blogsEntryLocalService.addEntryResources(entry, groupPermissions,
298                            guestPermissions);
299            }
300    
301            public void addEntryResources(long entryId, boolean addGroupPermissions,
302                    boolean addGuestPermissions)
303                    throws com.liferay.portal.kernel.exception.PortalException,
304                            com.liferay.portal.kernel.exception.SystemException {
305                    _blogsEntryLocalService.addEntryResources(entryId, addGroupPermissions,
306                            addGuestPermissions);
307            }
308    
309            public void addEntryResources(long entryId,
310                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
311                    throws com.liferay.portal.kernel.exception.PortalException,
312                            com.liferay.portal.kernel.exception.SystemException {
313                    _blogsEntryLocalService.addEntryResources(entryId, groupPermissions,
314                            guestPermissions);
315            }
316    
317            public void deleteEntries(long groupId)
318                    throws com.liferay.portal.kernel.exception.PortalException,
319                            com.liferay.portal.kernel.exception.SystemException {
320                    _blogsEntryLocalService.deleteEntries(groupId);
321            }
322    
323            public void deleteEntry(com.liferay.portlet.blogs.model.BlogsEntry entry)
324                    throws com.liferay.portal.kernel.exception.PortalException,
325                            com.liferay.portal.kernel.exception.SystemException {
326                    _blogsEntryLocalService.deleteEntry(entry);
327            }
328    
329            public void deleteEntry(long entryId)
330                    throws com.liferay.portal.kernel.exception.PortalException,
331                            com.liferay.portal.kernel.exception.SystemException {
332                    _blogsEntryLocalService.deleteEntry(entryId);
333            }
334    
335            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
336                    long companyId, int status, int start, int end)
337                    throws com.liferay.portal.kernel.exception.SystemException {
338                    return _blogsEntryLocalService.getCompanyEntries(companyId, status,
339                            start, end);
340            }
341    
342            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
343                    long companyId, int status, int start, int end,
344                    com.liferay.portal.kernel.util.OrderByComparator obc)
345                    throws com.liferay.portal.kernel.exception.SystemException {
346                    return _blogsEntryLocalService.getCompanyEntries(companyId, status,
347                            start, end, obc);
348            }
349    
350            public int getCompanyEntriesCount(long companyId, int status)
351                    throws com.liferay.portal.kernel.exception.SystemException {
352                    return _blogsEntryLocalService.getCompanyEntriesCount(companyId, status);
353            }
354    
355            public com.liferay.portlet.blogs.model.BlogsEntry[] getEntriesPrevAndNext(
356                    long entryId)
357                    throws com.liferay.portal.kernel.exception.PortalException,
358                            com.liferay.portal.kernel.exception.SystemException {
359                    return _blogsEntryLocalService.getEntriesPrevAndNext(entryId);
360            }
361    
362            public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long entryId)
363                    throws com.liferay.portal.kernel.exception.PortalException,
364                            com.liferay.portal.kernel.exception.SystemException {
365                    return _blogsEntryLocalService.getEntry(entryId);
366            }
367    
368            public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long groupId,
369                    java.lang.String urlTitle)
370                    throws com.liferay.portal.kernel.exception.PortalException,
371                            com.liferay.portal.kernel.exception.SystemException {
372                    return _blogsEntryLocalService.getEntry(groupId, urlTitle);
373            }
374    
375            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
376                    long groupId, int status, int start, int end)
377                    throws com.liferay.portal.kernel.exception.SystemException {
378                    return _blogsEntryLocalService.getGroupEntries(groupId, status, start,
379                            end);
380            }
381    
382            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
383                    long groupId, 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.getGroupEntries(groupId, status, start,
387                            end, obc);
388            }
389    
390            public int getGroupEntriesCount(long groupId, int status)
391                    throws com.liferay.portal.kernel.exception.SystemException {
392                    return _blogsEntryLocalService.getGroupEntriesCount(groupId, status);
393            }
394    
395            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
396                    long companyId, long groupId, int status, int start, int end)
397                    throws com.liferay.portal.kernel.exception.SystemException {
398                    return _blogsEntryLocalService.getGroupsEntries(companyId, groupId,
399                            status, start, end);
400            }
401    
402            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
403                    long groupId, long userId, int status, int start, int end)
404                    throws com.liferay.portal.kernel.exception.SystemException {
405                    return _blogsEntryLocalService.getGroupUserEntries(groupId, userId,
406                            status, start, end);
407            }
408    
409            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
410                    long groupId, long userId, int status, int start, int end,
411                    com.liferay.portal.kernel.util.OrderByComparator obc)
412                    throws com.liferay.portal.kernel.exception.SystemException {
413                    return _blogsEntryLocalService.getGroupUserEntries(groupId, userId,
414                            status, start, end, obc);
415            }
416    
417            public int getGroupUserEntriesCount(long groupId, long userId, int status)
418                    throws com.liferay.portal.kernel.exception.SystemException {
419                    return _blogsEntryLocalService.getGroupUserEntriesCount(groupId,
420                            userId, status);
421            }
422    
423            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getNoAssetEntries()
424                    throws com.liferay.portal.kernel.exception.SystemException {
425                    return _blogsEntryLocalService.getNoAssetEntries();
426            }
427    
428            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
429                    long organizationId, int status, int start, int end)
430                    throws com.liferay.portal.kernel.exception.SystemException {
431                    return _blogsEntryLocalService.getOrganizationEntries(organizationId,
432                            status, start, end);
433            }
434    
435            public int getOrganizationEntriesCount(long organizationId, int status)
436                    throws com.liferay.portal.kernel.exception.SystemException {
437                    return _blogsEntryLocalService.getOrganizationEntriesCount(organizationId,
438                            status);
439            }
440    
441            public void subscribe(long userId, long groupId)
442                    throws com.liferay.portal.kernel.exception.PortalException,
443                            com.liferay.portal.kernel.exception.SystemException {
444                    _blogsEntryLocalService.subscribe(userId, groupId);
445            }
446    
447            public void unsubscribe(long userId, long groupId)
448                    throws com.liferay.portal.kernel.exception.PortalException,
449                            com.liferay.portal.kernel.exception.SystemException {
450                    _blogsEntryLocalService.unsubscribe(userId, groupId);
451            }
452    
453            public void updateAsset(long userId,
454                    com.liferay.portlet.blogs.model.BlogsEntry entry,
455                    long[] assetCategoryIds, java.lang.String[] assetTagNames,
456                    long[] assetLinkEntryIds)
457                    throws com.liferay.portal.kernel.exception.PortalException,
458                            com.liferay.portal.kernel.exception.SystemException {
459                    _blogsEntryLocalService.updateAsset(userId, entry, assetCategoryIds,
460                            assetTagNames, assetLinkEntryIds);
461            }
462    
463            public com.liferay.portlet.blogs.model.BlogsEntry updateEntry(long userId,
464                    long entryId, java.lang.String title, java.lang.String description,
465                    java.lang.String content, int displayDateMonth, int displayDateDay,
466                    int displayDateYear, int displayDateHour, int displayDateMinute,
467                    boolean allowPingbacks, boolean allowTrackbacks,
468                    java.lang.String[] trackbacks, boolean smallImage,
469                    java.lang.String smallImageURL, java.lang.String smallImageFileName,
470                    java.io.InputStream smallImageInputStream,
471                    com.liferay.portal.service.ServiceContext serviceContext)
472                    throws com.liferay.portal.kernel.exception.PortalException,
473                            com.liferay.portal.kernel.exception.SystemException {
474                    return _blogsEntryLocalService.updateEntry(userId, entryId, title,
475                            description, content, displayDateMonth, displayDateDay,
476                            displayDateYear, displayDateHour, displayDateMinute,
477                            allowPingbacks, allowTrackbacks, trackbacks, smallImage,
478                            smallImageURL, smallImageFileName, smallImageInputStream,
479                            serviceContext);
480            }
481    
482            public void updateEntryResources(
483                    com.liferay.portlet.blogs.model.BlogsEntry entry,
484                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
485                    throws com.liferay.portal.kernel.exception.PortalException,
486                            com.liferay.portal.kernel.exception.SystemException {
487                    _blogsEntryLocalService.updateEntryResources(entry, groupPermissions,
488                            guestPermissions);
489            }
490    
491            public com.liferay.portlet.blogs.model.BlogsEntry updateStatus(
492                    long userId, long entryId, int status,
493                    com.liferay.portal.service.ServiceContext serviceContext)
494                    throws com.liferay.portal.kernel.exception.PortalException,
495                            com.liferay.portal.kernel.exception.SystemException {
496                    return _blogsEntryLocalService.updateStatus(userId, entryId, status,
497                            serviceContext);
498            }
499    
500            public BlogsEntryLocalService getWrappedBlogsEntryLocalService() {
501                    return _blogsEntryLocalService;
502            }
503    
504            public void setWrappedBlogsEntryLocalService(
505                    BlogsEntryLocalService blogsEntryLocalService) {
506                    _blogsEntryLocalService = blogsEntryLocalService;
507            }
508    
509            private BlogsEntryLocalService _blogsEntryLocalService;
510    }