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