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    /**
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 content, int displayDateMonth,
267                    int displayDateDay, int displayDateYear, int displayDateHour,
268                    int displayDateMinute, boolean allowPingbacks, boolean allowTrackbacks,
269                    java.lang.String[] trackbacks,
270                    com.liferay.portal.service.ServiceContext serviceContext)
271                    throws com.liferay.portal.kernel.exception.PortalException,
272                            com.liferay.portal.kernel.exception.SystemException {
273                    return _blogsEntryLocalService.addEntry(userId, title, content,
274                            displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
275                            displayDateMinute, allowPingbacks, allowTrackbacks, trackbacks,
276                            serviceContext);
277            }
278    
279            public void addEntryResources(
280                    com.liferay.portlet.blogs.model.BlogsEntry entry,
281                    boolean addCommunityPermissions, boolean addGuestPermissions)
282                    throws com.liferay.portal.kernel.exception.PortalException,
283                            com.liferay.portal.kernel.exception.SystemException {
284                    _blogsEntryLocalService.addEntryResources(entry,
285                            addCommunityPermissions, addGuestPermissions);
286            }
287    
288            public void addEntryResources(
289                    com.liferay.portlet.blogs.model.BlogsEntry entry,
290                    java.lang.String[] communityPermissions,
291                    java.lang.String[] guestPermissions)
292                    throws com.liferay.portal.kernel.exception.PortalException,
293                            com.liferay.portal.kernel.exception.SystemException {
294                    _blogsEntryLocalService.addEntryResources(entry, communityPermissions,
295                            guestPermissions);
296            }
297    
298            public void addEntryResources(long entryId,
299                    boolean addCommunityPermissions, boolean addGuestPermissions)
300                    throws com.liferay.portal.kernel.exception.PortalException,
301                            com.liferay.portal.kernel.exception.SystemException {
302                    _blogsEntryLocalService.addEntryResources(entryId,
303                            addCommunityPermissions, addGuestPermissions);
304            }
305    
306            public void addEntryResources(long entryId,
307                    java.lang.String[] communityPermissions,
308                    java.lang.String[] guestPermissions)
309                    throws com.liferay.portal.kernel.exception.PortalException,
310                            com.liferay.portal.kernel.exception.SystemException {
311                    _blogsEntryLocalService.addEntryResources(entryId,
312                            communityPermissions, guestPermissions);
313            }
314    
315            public void deleteEntries(long groupId)
316                    throws com.liferay.portal.kernel.exception.PortalException,
317                            com.liferay.portal.kernel.exception.SystemException {
318                    _blogsEntryLocalService.deleteEntries(groupId);
319            }
320    
321            public void deleteEntry(com.liferay.portlet.blogs.model.BlogsEntry entry)
322                    throws com.liferay.portal.kernel.exception.PortalException,
323                            com.liferay.portal.kernel.exception.SystemException {
324                    _blogsEntryLocalService.deleteEntry(entry);
325            }
326    
327            public void deleteEntry(long entryId)
328                    throws com.liferay.portal.kernel.exception.PortalException,
329                            com.liferay.portal.kernel.exception.SystemException {
330                    _blogsEntryLocalService.deleteEntry(entryId);
331            }
332    
333            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
334                    long companyId, int status, int start, int end)
335                    throws com.liferay.portal.kernel.exception.SystemException {
336                    return _blogsEntryLocalService.getCompanyEntries(companyId, status,
337                            start, end);
338            }
339    
340            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
341                    long companyId, int status, int start, int end,
342                    com.liferay.portal.kernel.util.OrderByComparator obc)
343                    throws com.liferay.portal.kernel.exception.SystemException {
344                    return _blogsEntryLocalService.getCompanyEntries(companyId, status,
345                            start, end, obc);
346            }
347    
348            public int getCompanyEntriesCount(long companyId, int status)
349                    throws com.liferay.portal.kernel.exception.SystemException {
350                    return _blogsEntryLocalService.getCompanyEntriesCount(companyId, status);
351            }
352    
353            public com.liferay.portlet.blogs.model.BlogsEntry[] getEntriesPrevAndNext(
354                    long entryId)
355                    throws com.liferay.portal.kernel.exception.PortalException,
356                            com.liferay.portal.kernel.exception.SystemException {
357                    return _blogsEntryLocalService.getEntriesPrevAndNext(entryId);
358            }
359    
360            public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long entryId)
361                    throws com.liferay.portal.kernel.exception.PortalException,
362                            com.liferay.portal.kernel.exception.SystemException {
363                    return _blogsEntryLocalService.getEntry(entryId);
364            }
365    
366            public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long groupId,
367                    java.lang.String urlTitle)
368                    throws com.liferay.portal.kernel.exception.PortalException,
369                            com.liferay.portal.kernel.exception.SystemException {
370                    return _blogsEntryLocalService.getEntry(groupId, urlTitle);
371            }
372    
373            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
374                    long groupId, int status, int start, int end)
375                    throws com.liferay.portal.kernel.exception.SystemException {
376                    return _blogsEntryLocalService.getGroupEntries(groupId, status, start,
377                            end);
378            }
379    
380            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
381                    long groupId, int status, int start, int end,
382                    com.liferay.portal.kernel.util.OrderByComparator obc)
383                    throws com.liferay.portal.kernel.exception.SystemException {
384                    return _blogsEntryLocalService.getGroupEntries(groupId, status, start,
385                            end, obc);
386            }
387    
388            public int getGroupEntriesCount(long groupId, int status)
389                    throws com.liferay.portal.kernel.exception.SystemException {
390                    return _blogsEntryLocalService.getGroupEntriesCount(groupId, status);
391            }
392    
393            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
394                    long companyId, long groupId, int status, int start, int end)
395                    throws com.liferay.portal.kernel.exception.SystemException {
396                    return _blogsEntryLocalService.getGroupsEntries(companyId, groupId,
397                            status, start, end);
398            }
399    
400            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
401                    long groupId, long userId, int status, int start, int end)
402                    throws com.liferay.portal.kernel.exception.SystemException {
403                    return _blogsEntryLocalService.getGroupUserEntries(groupId, userId,
404                            status, start, end);
405            }
406    
407            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
408                    long groupId, long userId, int status, int start, int end,
409                    com.liferay.portal.kernel.util.OrderByComparator obc)
410                    throws com.liferay.portal.kernel.exception.SystemException {
411                    return _blogsEntryLocalService.getGroupUserEntries(groupId, userId,
412                            status, start, end, obc);
413            }
414    
415            public int getGroupUserEntriesCount(long groupId, long userId, int status)
416                    throws com.liferay.portal.kernel.exception.SystemException {
417                    return _blogsEntryLocalService.getGroupUserEntriesCount(groupId,
418                            userId, status);
419            }
420    
421            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getNoAssetEntries()
422                    throws com.liferay.portal.kernel.exception.SystemException {
423                    return _blogsEntryLocalService.getNoAssetEntries();
424            }
425    
426            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
427                    long organizationId, int status, int start, int end)
428                    throws com.liferay.portal.kernel.exception.SystemException {
429                    return _blogsEntryLocalService.getOrganizationEntries(organizationId,
430                            status, start, end);
431            }
432    
433            public int getOrganizationEntriesCount(long organizationId, int status)
434                    throws com.liferay.portal.kernel.exception.SystemException {
435                    return _blogsEntryLocalService.getOrganizationEntriesCount(organizationId,
436                            status);
437            }
438    
439            public void subscribe(long userId, long groupId)
440                    throws com.liferay.portal.kernel.exception.PortalException,
441                            com.liferay.portal.kernel.exception.SystemException {
442                    _blogsEntryLocalService.subscribe(userId, groupId);
443            }
444    
445            public void unsubscribe(long userId, long groupId)
446                    throws com.liferay.portal.kernel.exception.PortalException,
447                            com.liferay.portal.kernel.exception.SystemException {
448                    _blogsEntryLocalService.unsubscribe(userId, groupId);
449            }
450    
451            public void updateAsset(long userId,
452                    com.liferay.portlet.blogs.model.BlogsEntry entry,
453                    long[] assetCategoryIds, java.lang.String[] assetTagNames)
454                    throws com.liferay.portal.kernel.exception.PortalException,
455                            com.liferay.portal.kernel.exception.SystemException {
456                    _blogsEntryLocalService.updateAsset(userId, entry, assetCategoryIds,
457                            assetTagNames);
458            }
459    
460            public com.liferay.portlet.blogs.model.BlogsEntry updateEntry(long userId,
461                    long entryId, java.lang.String title, java.lang.String content,
462                    int displayDateMonth, int displayDateDay, int displayDateYear,
463                    int displayDateHour, int displayDateMinute, boolean allowPingbacks,
464                    boolean allowTrackbacks, java.lang.String[] trackbacks,
465                    com.liferay.portal.service.ServiceContext serviceContext)
466                    throws com.liferay.portal.kernel.exception.PortalException,
467                            com.liferay.portal.kernel.exception.SystemException {
468                    return _blogsEntryLocalService.updateEntry(userId, entryId, title,
469                            content, displayDateMonth, displayDateDay, displayDateYear,
470                            displayDateHour, displayDateMinute, allowPingbacks,
471                            allowTrackbacks, trackbacks, serviceContext);
472            }
473    
474            public void updateEntryResources(
475                    com.liferay.portlet.blogs.model.BlogsEntry entry,
476                    java.lang.String[] communityPermissions,
477                    java.lang.String[] guestPermissions)
478                    throws com.liferay.portal.kernel.exception.PortalException,
479                            com.liferay.portal.kernel.exception.SystemException {
480                    _blogsEntryLocalService.updateEntryResources(entry,
481                            communityPermissions, guestPermissions);
482            }
483    
484            public com.liferay.portlet.blogs.model.BlogsEntry updateStatus(
485                    long userId, long entryId, int status,
486                    com.liferay.portal.service.ServiceContext serviceContext)
487                    throws com.liferay.portal.kernel.exception.PortalException,
488                            com.liferay.portal.kernel.exception.SystemException {
489                    return _blogsEntryLocalService.updateStatus(userId, entryId, status,
490                            serviceContext);
491            }
492    
493            public BlogsEntryLocalService getWrappedBlogsEntryLocalService() {
494                    return _blogsEntryLocalService;
495            }
496    
497            public void setWrappedBlogsEntryLocalService(
498                    BlogsEntryLocalService blogsEntryLocalService) {
499                    _blogsEntryLocalService = blogsEntryLocalService;
500            }
501    
502            private BlogsEntryLocalService _blogsEntryLocalService;
503    }